Get the authentication status

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
GET /auth/authenticated

Get the current user and the organisation if the token is valid. A browser frontend or a third-party tool uses this route to know if the user is still logged in. The organisation has the chat tokens only for an administrator.

Responses

  • 200 application/json

    The user is authenticated

    Hide response attributes Show response attributes object
    • authenticated boolean
    • user object

      Current user, with relations and FIDO devices

    • organisation object
  • 401

    The token is missing, not valid or expired

GET /auth/authenticated
curl -X GET "http://api.example.com/auth/authenticated" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
import requests

url = "http://api.example.com/auth/authenticated"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
params = {}
payload = None

response = requests.get(
    url,
    headers=headers,
    params=params,
    json=payload
)

response.raise_for_status()

if response.content:
    print(response.json())
Response examples (200)
{
  "authenticated": true,
  "user": {},
  "organisation": {}
}