---
updatedAt: 2026-04-30T09:53:36.000Z
---

# Get agent token by id

Returns details for a specific agent token. Returns null if not found.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/public/v1/agentTokens/{id}": {
      "get": {
        "description": "Returns details for a specific agent token. Returns null if not found.",
        "operationId": "AgentTokens_show",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "format": "uuid",
              "example": "00000000-0000-0000-0000-000000000000",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentTokenResponseSchema"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Get agent token by id",
        "tags": [
          "Public",
          "Agent Tokens"
        ]
      }
    }
  },
  "info": {
    "title": "Entitle API",
    "description": "Entitle API documentation",
    "version": "1.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.entitle.io"
    },
    {
      "url": "https://api.us.entitle.io"
    },
    {
      "url": "https://api.ca.entitle.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      },
      "csrf-token": {
        "type": "apiKey",
        "in": "header",
        "name": "csrf-token",
        "description": "CSRF token required for state-changing requests"
      }
    },
    "schemas": {
      "AgentTokenResultSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "00000000-0000-0000-0000-000000000000",
            "description": "Unique identifier for the agent token"
          },
          "name": {
            "type": "string",
            "description": "Display name for the agent token"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "AgentTokenResponseSchema": {
        "type": "object",
        "properties": {
          "result": {
            "description": "Agent token metadata without sensitive values",
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentTokenResultSchema"
              }
            ]
          }
        },
        "required": [
          "result"
        ]
      }
    }
  },
  "security": [
    {
      "csrf-token": []
    }
  ]
}
```