SnozeDevelopers
API referenceDiscord accounts

Complete your Discord account link

Completes an authorized linking session using its state and the original browser-held verifier, returning the linked Discord account. Requires the same signed-in Snoze user that started the unexpired session. Rejects mismatched browser proof and accounts already linked to another identity. Repeating a completed request can only return its original link.

POST
/v1/me/discord/link/complete

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Request Body

application/json
  1. body
state*string
verifier*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/me/discord/link/complete' \  -H 'Content-Type: application/json' \  -d '{  "state": "string",  "verifier": "string"}'
Example Response
{  "data": {    "discordUserId": "string",    "username": "string"  }}