{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/akahu/main/json-schema/akahu-token-schema.json",
  "title": "Token",
  "description": "Granted token details",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/akahu-auth-api-openapi.yml#/components/schemas/Token",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "access_token": {
      "type": "string",
      "description": "Authorised **User Access Token** used to authenticate the user upon additional resource request."
    },
    "token_type": {
      "type": "string",
      "description": "Type of authentication"
    },
    "scope": {
      "type": "string",
      "description": "whitespace separated string specifying the granted permissions and resources the given token has access to."
    }
  }
}