# List Tokens

`GET /v1/tokens`

List personal access tokens: your own, or every one in the organization
if you are an admin.

Who holds which credential is organization-admin information, so an EDITOR
or VIEWER sees only what they created. Plaintext token values are never
returned. A token with `kind: mcp` was issued automatically for the
dashboard's MCP setup; the rest were created by hand.

Authenticate with `Authorization: Bearer $TALQING_API_KEY`. Errors use the shared envelope: https://docs.talqing.com/api-reference/errors.md

## OpenAPI

```json
{
 "openapi":"3.1.0",
 "servers":[
  {
   "description":"Talqing API",
   "url":"https://api.talqing.com"
  }
 ],
 "paths":{
  "/v1/tokens":{
   "get":{
    "description":"List personal access tokens: your own, or every one in the organization\nif you are an admin.\n\nWho holds which credential is organization-admin information, so an EDITOR\nor VIEWER sees only what they created. Plaintext token values are never\nreturned. A token with `kind: mcp` was issued automatically for the\ndashboard's MCP setup; the rest were created by hand.",
    "operationId":"tokens.list",
    "parameters":[
     {
      "in":"query",
      "name":"limit",
      "required":false,
      "schema":{
       "default":200,
       "maximum":200,
       "minimum":1,
       "title":"Limit",
       "type":"integer"
      }
     },
     {
      "in":"query",
      "name":"offset",
      "required":false,
      "schema":{
       "default":0,
       "minimum":0,
       "title":"Offset",
       "type":"integer"
      }
     }
    ],
    "responses":{
     "200":{
      "content":{
       "application/json":{
        "schema":{
         "$ref":"#/components/schemas/PageTokenResponse"
        }
       }
      },
      "description":"Successful Response"
     },
     "401":{
      "$ref":"#/components/responses/Unauthorized"
     },
     "422":{
      "$ref":"#/components/responses/ValidationFailed"
     },
     "default":{
      "$ref":"#/components/responses/Error"
     }
    },
    "security":[
     {
      "BearerAuth":[]
     },
     {
      "SessionCookie":[]
     }
    ],
    "summary":"List Tokens",
    "tags":[
     "tokens"
    ]
   }
  }
 },
 "components":{
  "responses":{
   "Error":{
    "content":{
     "application/json":{
      "schema":{
       "$ref":"#/components/schemas/ErrorResponse"
      }
     }
    },
    "description":"Unexpected error. Every error this API returns carries this body."
   },
   "Unauthorized":{
    "content":{
     "application/json":{
      "schema":{
       "$ref":"#/components/schemas/ErrorResponse"
      }
     }
    },
    "description":"Missing credential, or one that is revoked or no longer a member of this organization."
   },
   "ValidationFailed":{
    "content":{
     "application/json":{
      "schema":{
       "$ref":"#/components/schemas/ErrorResponse"
      }
     }
    },
    "description":"The request did not match this operation's schema; `detail.errors` lists each field."
   }
  },
  "schemas":{
   "ErrorBody":{
    "description":"The structured half of our error contract: a human `message` plus a list\nof individual `errors` (used wherever we surface many problems at once,\nincluding tool publish, op-tree checks, and request validation). The global\nexception handlers normalize every API error to\n`{detail: {message, errors, code}}`, so SDKs can parse one shape consistently.",
    "properties":{
     "code":{
      "anyOf":[
       {
        "type":"string"
       },
       {
        "type":"null"
       }
      ],
      "default":null,
      "description":"A stable identifier for this error, when it has one.",
      "title":"Code"
     },
     "errors":{
      "items":{
       "type":"string"
      },
      "title":"Errors",
      "type":"array"
     },
     "message":{
      "title":"Message",
      "type":"string"
     }
    },
    "required":[
     "message",
     "errors"
    ],
    "title":"ErrorBody",
    "type":"object"
   },
   "ErrorResponse":{
    "description":"The body of every error response, at every status code.",
    "properties":{
     "detail":{
      "$ref":"#/components/schemas/ErrorBody"
     }
    },
    "required":[
     "detail"
    ],
    "title":"ErrorResponse",
    "type":"object"
   },
   "PageTokenResponse":{
    "properties":{
     "has_more":{
      "title":"Has More",
      "type":"boolean"
     },
     "items":{
      "items":{
       "$ref":"#/components/schemas/TokenResponse"
      },
      "title":"Items",
      "type":"array"
     },
     "limit":{
      "title":"Limit",
      "type":"integer"
     },
     "offset":{
      "title":"Offset",
      "type":"integer"
     }
    },
    "required":[
     "items",
     "has_more",
     "limit",
     "offset"
    ],
    "title":"Page[TokenResponse]",
    "type":"object"
   },
   "TokenResponse":{
    "properties":{
     "created_at":{
      "format":"date-time",
      "title":"Created At",
      "type":"string"
     },
     "id":{
      "format":"uuid",
      "title":"Id",
      "type":"string"
     },
     "kind":{
      "enum":[
       "manual",
       "mcp"
      ],
      "title":"Kind",
      "type":"string"
     },
     "name":{
      "title":"Name",
      "type":"string"
     },
     "user_email":{
      "title":"User Email",
      "type":"string"
     },
     "user_id":{
      "format":"uuid",
      "title":"User Id",
      "type":"string"
     }
    },
    "required":[
     "id",
     "name",
     "kind",
     "user_id",
     "user_email",
     "created_at"
    ],
    "title":"TokenResponse",
    "type":"object"
   }
  }
 }
}
```
