{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-evangelist/zesty/blob/main/json-schema/token.json",
  "title": "Zesty Token",
  "description": "A Zesty.io access token provides programmatic API authentication tied to a specific role, used as an alternative to session-based authentication.",
  "type": "object",
  "properties": {
    "ZUID": {
      "type": "string",
      "description": "The Zesty Universal Identifier for the token."
    },
    "name": {
      "type": "string",
      "description": "A descriptive name for the token."
    },
    "roleZUID": {
      "type": "string",
      "description": "The role ZUID this token is associated with."
    },
    "token": {
      "type": "string",
      "description": "The access token value."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the token was created."
    }
  },
  "required": ["ZUID", "name", "roleZUID"]
}