{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Token",
  "title": "Token",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "The unique ID of this token."
    },
    "scopes": {
      "type": "string",
      "description": "The OAuth scopes for this token."
    },
    "label": {
      "type": "string",
      "description": "The label for this token."
    },
    "token": {
      "type": "string",
      "description": "The token string. Only returned at creation time."
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "When this token was created."
    },
    "expiry": {
      "type": "string",
      "format": "date-time",
      "description": "When this token expires."
    }
  }
}