Make a browser login code

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/code

Make a one-time code for the current user. A desktop app or a script on the same computer uses this code to get its own tokens. The code is linked to the PKCE challenge in the body. The code expires after 60 seconds. A bot cannot make a code. A user who must set up two-factor authentication first cannot make a code.

application/json

Body Required

  • code_challenge string Required

    SHA-256 of the PKCE code verifier, encoded in base64url without padding (43 characters)

    Format should match the following pattern: ^[A-Za-z0-9_-]{43}$.

Responses

  • 201 application/json

    The one-time login code

    Hide response attribute Show response attribute object
    • code string

      One-time login code

  • 400

    The code challenge is not correct

  • 403

    The token belongs to a bot, or the user must set up two-factor authentication first

POST /auth/app-login/code
curl \
 --request POST '/api/auth/app-login/code' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{
  "code_challenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"
}'
Request examples
{
  "code_challenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"
}
Response examples (201)
{
  "code": "string"
}