Download OpenAPI specification:Download
This API verifies Discord users to Roblox users. This allows one to link their Discord account to their Roblox account. You can then retrieve verified accounts via the API.
Every response has the following:
Attribute | Description |
---|---|
code | The status code |
errorCode | A custom error code (refer to table below) |
messages | If there is an error, this is a list of messages describing what went wrong |
result | This contains data based on the request |
status | Either "ok" or "error" |
To retrieve users from the API via GET /v1/users/{discordId}, no API key is required. The other endpoints require an API key.
To include one, put it in the headers as api-key
errorCode
is included in every response. It is an integer corresponding to an enum:
Value | Title | Description | result |
---|---|---|---|
0 | None | No error occurred. | Refer to endpoint documentation |
1 | Default | An error occurred. This is a catch all. | empty |
2 | Already Verified | Tried to verify a user that was already verified. | robloxId |
3 | Phrase Not Found | Could not verify a user because their verification phrase was missing. | phrase , expiresIn , robloxDescription , robloxId , robloxUsername |
4 | Verification Inactive | Could not verify a user because they do not have verification active. | empty |
Retrieve a verified user's Roblox ID from their Discord ID. This endpoint has a rate limit of up to 300 per hour, and up to 3000 per day.
discordId required | integer <int64> Example: 161981786354745340 A discord user's ID (snowflake) |
{- "code": 200,
- "errorCode": 0,
- "messages": [
- "string"
], - "result": {
- "robloxId": 20005988
}, - "status": "ok"
}
Retrieve a list of Discord user IDs that are linked to the given Roblox user ID.
robloxId required | integer <int64> Example: 20005988 A roblox user's ID |
{- "code": 200,
- "errorCode": 0,
- "messages": [
- "string"
], - "result": {
- "discordIds": [
- 161981786354745340
]
}, - "status": "ok"
}
Begin the verification process for a user. Creates a unique phrase that users put into their About section on Roblox. POST /v1/verify/users/{discordId} can be used to verify that they have the phrase. Can give error code 2.
discordId required | integer <int64> A discord user's ID (snowflake) |
robloxId required | integer <int64> The roblox ID that the user wants to authenticate |
{- "code": 200,
- "errorCode": 0,
- "messages": [
- "string"
], - "result": {
- "phrase": "taxi habit capable skate bounce hire patrol daring zebra teach glass because remove victory garment paddle gift extra develop effort",
- "expiresIn": 900
}, - "status": "ok"
}
Try to verify a user. The user must have had verification started via GET /v1/verify/users/{discordId}. This will check if their description contains the phrase needed for verification, and register them if so. Can give error codes 2-4.
discordId required | integer <int64> A discord user's ID (snowflake) |
{- "code": 200,
- "errorCode": 0,
- "messages": [
- "string"
], - "result": {
- "phrase": "taxi habit capable skate bounce hire patrol daring zebra teach glass because remove victory garment paddle gift extra develop effort",
- "expiresIn": 900,
- "robloxDescription": "Hello! This is my About me.",
- "robloxId": 20005988,
- "robloxUsername": "fiveman1"
}, - "status": "ok"
}
discordId required | integer <int64> A discord user's ID (snowflake) |
{- "code": 200,
- "errorCode": 0,
- "messages": [
- "string"
], - "result": {
- "robloxId": 20005988,
- "robloxUsername": "fiveman1"
}, - "status": "ok"
}