veil

Read the linked roles settings

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.

GET/v1/discord/linked-roles
Access
Public access
Client
Local or server client

Request examples#

cURL
curl -fsS 'https://veil.pub/v1/discord/linked-roles'

Response#

HTTP 200application/json

{available, application, platformName, scopes, widget, verificationUrl, metadata}.

FieldTypeMeaning
availablebooleanWhether the server offers it.
applicationstring | nullThe Discord application id.
platformNamestringVeil: the connection's name on Discord.
scopesarray<string>The OAuth2 scopes the consent asks for.
widgetbooleanWhether the profile widget is on.
verificationUrlstringThe page to set as the Linked Roles Verification URL.
metadataarray<object>The five fields: {type, key, name, name_localizations, description, description_localizations}.

Response headers#

HeaderValueMeaning
Content-Typeapplication/jsonJSON, also for errors.
Cache-Controlpublic, max-age=300Changes only with the server's settings.

Errors#

API errors return an error object. Use error.code for program logic; error.message is English text for people and can change. Response and error guide

HTTPCodeMeaning and next step
429rate_limited

An anonymous, signed-request or API-key allowance was exceeded.

Wait at least Retry-After seconds. Share a queue and retry budget across your workers.

500internal_error

An unexpected server error occurred. Internal details are not returned.

Retry reads with bounded backoff. Check write results before sending a new signed operation.

503busy

The application has reached a temporary concurrency or database limit.

Wait Retry-After seconds and retry with bounded backoff.