Trade a browser login code for tokens

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api-docs.kitsu.cloud/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Kitsu API MCP server": {
    "url": "https://api-docs.kitsu.cloud/mcp"
  }
}

Close
POST /auth/app-login/token

Exchange a one-time code minted through the browser for a new access and refresh token pair. The code can be used once, and only with the PKCE code verifier matching its challenge. The response has the same shape as a successful login and never sets cookies.

application/json

Body Required

  • code string Required

    One-time login code

  • code_verifier string Required

    PKCE code verifier (43 to 128 characters)

Responses

  • 200

    Login successful

  • 400

    Unknown, expired or already used code, wrong verifier or inactive user

POST /auth/app-login/token
curl \
 --request POST 'http://api.example.com/auth/app-login/token' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{
  "code": "string",
  "code_verifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
}'
Request examples
{
  "code": "string",
  "code_verifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
}