{"revision":"25c04798c52757c2","language":"en","entry":{"id":"discord-roles-info","kind":"endpoint","group":"manage","title":"Read the linked roles settings","method":"GET","path":"/v1/discord/linked-roles","paths":[],"summary":"Whether this server offers Discord linked roles, the Discord app, the scopes it asks for, the verification URL, and the five metadata fields exactly as registered on Discord.","response":"{available, application, platformName, scopes, widget, verificationUrl, metadata}.","parameters":[],"sample":"/v1/discord/linked-roles","access":"public","base":"directory","notes":[],"errors":["429 rate_limited","500 internal_error","503 busy"],"related":["discord-app"],"sections":[{"kind":"code","language":"shell","code":"curl -fsS 'https://veil.pub/v1/discord/linked-roles'"}],"live":false,"responses":[{"status":200,"contentType":"application/json","description":"{available, application, platformName, scopes, widget, verificationUrl, metadata}.","fields":[{"name":"available","type":"boolean","description":"Whether the server offers it."},{"name":"application","type":"string | null","description":"The Discord application id."},{"name":"platformName","type":"string","description":"Veil: the connection's name on Discord."},{"name":"scopes","type":"array<string>","description":"The OAuth2 scopes the consent asks for."},{"name":"widget","type":"boolean","description":"Whether the profile widget is on."},{"name":"verificationUrl","type":"string","description":"The page to set as the Linked Roles Verification URL."},{"name":"metadata","type":"array<object>","description":"The five fields: {type, key, name, name_localizations, description, description_localizations}."}]}],"responseObjects":[],"errorFormat":"json","errorDetails":[{"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"}],"responseHeaders":[{"name":"Content-Type","value":"application/json","description":"JSON, also for errors."},{"name":"Cache-Control","value":"public, max-age=300","description":"Changes only with the server's settings."}],"documentationUrl":"https://veil.pub/docs/discord-roles-info","supportsBrowserFetch":false,"browserMode":"local-or-server"}}