{"revision":"0ed62d2c742f8e20","language":"en","entry":{"id":"oauth-callback","kind":"endpoint","group":"manage","title":"Return from an OAuth provider","method":"GET","path":"/v1/links/callback/{platform}","paths":[],"summary":"Receive the redirect from Veil’s configured Discord or GitHub application.","response":"A callback page that completes the flow in the browser that started it. A callback alone does not publish an account link.","parameters":[{"name":"platform","description":"discord or github, as chosen when the flow started.","in":"path","required":true},{"name":"code, state","description":"Parameters supplied by the OAuth provider. Keep them private.","in":"query","required":false}],"sample":"/v1/links/callback/github","access":"provider-callback","base":"directory","notes":[],"errors":["400 invalid_parameter","404 not_found","409 callback_used","410 proof_expired","422 proof_failed","429 rate_limited","500 internal_error","503 busy","503 provider_not_configured"],"related":[],"sections":[{"kind":"code","language":"shell","code":"curl -fsS 'https://veil.rip/v1/links/callback/github'"}],"live":false,"responses":[{"status":200,"contentType":"text/html","description":"A callback page that completes the flow in the browser that started it. A callback alone does not publish an account link.","fields":[]}],"responseObjects":[],"errorFormat":"html","errorDetails":[{"status":400,"code":"invalid_parameter","description":"A path, query or body field is missing, malformed or outside its accepted range.","action":"Correct the field named in `error.message` before sending again.","scope":"endpoint"},{"status":404,"code":"not_found","description":"The requested card, key, alias, code or resource was not found.","action":"Check the identifier. Temporary codes and previews may already have expired or been used.","scope":"endpoint"},{"status":409,"code":"callback_used","description":"This OAuth sign-in already returned once.","action":"Resume the original browser flow or start a fresh linking session.","scope":"endpoint"},{"status":410,"code":"proof_expired","description":"The temporary account-proof session has expired.","action":"Start a new linking session.","scope":"endpoint"},{"status":422,"code":"proof_failed","description":"The provider, code or published proof did not verify.","action":"Read `error.message`, correct the proof and retry while the session remains valid.","scope":"endpoint"},{"status":429,"code":"rate_limited","description":"An anonymous, signed-request or API-key allowance was exceeded.","action":"Wait at least `Retry-After` seconds. Share a queue and retry budget across your workers.","scope":"common"},{"status":500,"code":"internal_error","description":"An unexpected server error occurred. Internal details are not returned.","action":"Retry reads with bounded backoff. Check write results before sending a new signed operation.","scope":"common"},{"status":503,"code":"busy","description":"The application has reached a temporary concurrency or database limit.","action":"Wait `Retry-After` seconds and retry with bounded backoff.","scope":"common"},{"status":503,"code":"provider_not_configured","description":"The selected proof provider is unavailable on this server.","action":"Read /v1/platforms for available methods.","scope":"endpoint"}],"responseHeaders":[{"name":"Content-Type","value":"text/html","description":"Use the declared media type before choosing a parser."},{"name":"Date","value":"HTTP date","description":"Server time. Compare it with your clock when signing requests."},{"name":"Cache-Control","value":"no-store","description":"Do not persist private or temporary responses in a shared cache."},{"name":"Retry-After","value":"integer seconds, on rate_limited or busy","description":"Wait at least this long before retrying. Other 429/503 codes do not necessarily include it."}],"documentationUrl":"https://veil.rip/docs/oauth-callback","supportsBrowserFetch":false,"browserMode":"local-or-server"}}