Skip to content

Create a GameLink Authorization Code

POST /gamelink/token

Creates a six-character authorization code for the current JWT. The code expires after five minutes and can be exchanged by a GameLink client during PIN authentication.

Authorization

Send Authorization: <Twitch Extension Client ID> <Muxy JWT>. The JWT role must satisfy the endpoint requirements shown in the examples.

Responses

200 Response

A short-lived GameLink authorization code.

Content type: application/json

Schema
{
  "type": "object",
  "required": [
    "token"
  ],
  "properties": {
    "token": {
      "type": "string",
      "minLength": 6,
      "maxLength": 6,
      "pattern": "^[A-HJ-KM-NP-Z2-46-9]{6}$",
      "description": "Six-character code using an ambiguity-reduced uppercase alphabet; expires after five minutes."
    }
  }
}
Example
{
  "token": "ABC234"
}

400 Error

The serialized authorization header exceeds 1,024 characters.

Content type: application/json

Schema
{
  "type": "object",
  "properties": {
    "reason": {
      "type": "string"
    }
  }
}
Example
{
  "reason": "Bad request"
}

Generated API reference

This endpoint is generated from rest-v1.yaml.