---
title: "list_tokens"
description: "Generated reference for the management action list_tokens: its description, access metadata, payload contract, and registration status."
slug: /reference/actions/list-tokens
order: 52
visibility: public
redirects_from: ["/reference/actions/list-connections"]
---

# list\_tokens

Generated automatically from the [published contract sources](/cloud/reference/about/#contract-sources).

A script calls this action over HTTPS at `POST https://dev.turnzero.ai/api/v1/list_tokens`, with a bearer credential and the action's payload as the JSON body. It also accepts `GET`. An MCP connection lists this action as the tool `list_tokens`.

OAuth access tokens and minted tokens, including the turnzero command's computer token, are bearer credentials. The action determines which kinds, scopes and grants it accepts ([Sign-in, sessions, and tokens](/cloud/concepts/sign-in-sessions-and-tokens/)).

**Build metadata:** Registered in this build. Registration describes the default dispatcher in this build. It does not guarantee that a caller has the required credential or grant, that a tool is listed for that connection, or that the required service is configured.

## Contract description

List your account's API tokens\. Credentials without a bounding grant also get live sign\-in connections\.

Tokens give ID, scope, grants, label, and creation, expiry, revocation and last\-use times\. `authorized_computer: true` marks a token the turnzero command keeps on a computer it authorized\. Its label defaults to the host name\. Values are never returned\. A product token's last\-use time counts calls to this platform\. A null `last_used_at` can accompany use on the product’s own service\.

Connections give ID, client, address, sign\-in time, last renewal and expiry\. `revoke_token` takes `id` for a token or `connection` for a sign\-in connection\.

## More about this action

A credential without a bounding grant also receives the account's live sign\-in connections\. Each row gives its id, client, address, sign\-in time, last renewal and expiry\.

## Access and action metadata

```json
{
  "name": "list_tokens",
  "resource": "token",
  "tier": "observe",
  "surface": "account",
  "addresses": [
    "tzcloud"
  ],
  "clients": [
    "bearer",
    "browser_session"
  ],
  "admits": [
    "synthetic_estate",
    "issues",
    "tzmesh",
    "tztrack"
  ],
  "summary": "The account's minted tokens: identities, scopes, grants, labels, stamps, and a space grant's space and level, and `authorized_computer`, true on an authorized computer's token, never values. If no bounding grant limits the credential, it also returns the account's live connections. Each row gives the tool's refresh family, client, sign-in, last renewal and expiry, never a token.",
  "annotations": {
    "readOnlyHint": true,
    "destructiveHint": false,
    "openWorldHint": false,
    "idempotentHint": true
  }
}
```

## MCP catalog entry

```json
{
  "name": "list_tokens",
  "title": "List access tokens",
  "tier": "observe",
  "summary": "List your account's API tokens. Credentials without a bounding grant also get live sign-in connections.\n\nTokens give ID, scope, grants, label, and creation, expiry, revocation and last-use times. `authorized_computer: true` marks a token the turnzero command keeps on a computer it authorized. Its label defaults to the host name. Values are never returned. A product token's last-use time counts calls to this platform. A null `last_used_at` can accompany use on the product’s own service.\n\nConnections give ID, client, address, sign-in time, last renewal and expiry. `revoke_token` takes `id` for a token or `connection` for a sign-in connection.",
  "owners": [
    "API-L0-05",
    "MAPI-14",
    "API-L0-21",
    "ACS-L0-11",
    "MCP-10"
  ],
  "scenario": "API-L0-05"
}
```

## request

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | Type: object |

## response

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | Type: object<br>Required fields: \["contract\_version","tokens"\]<br>Additional properties: false |
| /<wbr>properties/<wbr>contract\_version | Required value: 1 |
| /<wbr>properties/<wbr>tokens | Type: array |
| /<wbr>properties/<wbr>tokens/<wbr>items | Type: object<br>Required fields: \["id","scope\_kind","application","grants","label","created\_at","expires\_at","revoked\_at","last\_used\_at"\]<br>Additional properties: false |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>id | Type: string |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>scope\_kind | Allowed values: \["account","application"\] |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>application | Type: \["string","null"\] |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>grants | Type: array |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>grants/<wbr>items | Allowed values: \["destructive","super\_admin","synthetic\_seed\_purge","synthetic\_estate","publication","feedback\_queue","issues","tzmesh","tztrack","test\_end\_users","support\_read"\] |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>label | Type: \["string","null"\] |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>authorized\_computer | Whether the token is an authorized computer's: true on a token the turnzero command keeps on a computer it authorized, false on every other\.<br><br>Type: boolean |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>space | The space the issues grant applies to; you get it only on a token that holds the grant\.<br><br>Type: string<br>Pattern: ^\[0\-9a\-f\]\{8\}\-\[0\-9a\-f\]\{4\}\-\[0\-9a\-f\]\{4\}\-\[0\-9a\-f\]\{4\}\-\[0\-9a\-f\]\{12\}$ |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>level | The level the issues grant reaches its space at, report, contribute, or owner, or a `tzmesh` or `tztrack` token's level, read, chat, or admin, a mark that bounds no call of its product\. You get it only on a token that holds one of the three grants\.<br><br>Allowed values: \["report","contribute","owner","read","chat","admin"\] |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>created\_at | Type: string |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>expires\_at | Type: \["string","null"\] |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>revoked\_at | Type: \["string","null"\] |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>last\_used\_at | Type: \["string","null"\] |
| /<wbr>properties/<wbr>tokens/<wbr>items/<wbr>properties/<wbr>last\_used\_note | On a product token alone, one holding the `tzmesh` or `tztrack` grant: a sentence saying the last\-use time counts only requests made to this platform\. The product's own service checks the token without asking this platform, so its uses there are not recorded and a null time does not mean the token is unused\.<br><br>Type: string |
| /<wbr>properties/<wbr>connections | Your account's connections, each with its ID, client, address, sign\-in time, last renewal and expiry\. It returns no token\. Absent under a credential with a bounding grant\.<br><br>Type: array |
| /<wbr>properties/<wbr>connections/<wbr>items | Type: object<br>Required fields: \["id","client\_id","client\_name","client\_host","signed\_in\_at","renewed\_at","expires\_at","address"\]<br>Additional properties: false |
| /<wbr>properties/<wbr>connections/<wbr>items/<wbr>properties/<wbr>id | The connection's identity: its refresh family, which you pass to `revoke_token` with `connection`\.<br><br>Type: string |
| /<wbr>properties/<wbr>connections/<wbr>items/<wbr>properties/<wbr>client\_id | The registered client the connection was issued to\.<br><br>Type: string |
| /<wbr>properties/<wbr>connections/<wbr>items/<wbr>properties/<wbr>client\_name | The name the client's tool registered, or null where it registered none\.<br><br>Type: \["string","null"\] |
| /<wbr>properties/<wbr>connections/<wbr>items/<wbr>properties/<wbr>client\_host | The host of the address the client's tool registered, or null where it registered none\.<br><br>Type: \["string","null"\] |
| /<wbr>properties/<wbr>connections/<wbr>items/<wbr>properties/<wbr>signed\_in\_at | The instant of the sign\-in that opened the connection\.<br><br>Type: string |
| /<wbr>properties/<wbr>connections/<wbr>items/<wbr>properties/<wbr>renewed\_at | The instant of the last renewal, or null where none was made\.<br><br>Type: \["string","null"\] |
| /<wbr>properties/<wbr>connections/<wbr>items/<wbr>properties/<wbr>expires\_at | When the connection's newest refresh credential expires\.<br><br>Type: string |
| /<wbr>properties/<wbr>connections/<wbr>items/<wbr>properties/<wbr>address | The address the connection was made at: `turnzero` for turnzero\.ai/mcp, `tzcloud`, or `tztools`\. `tzop` is the address Turn Zero's own operators use; no customer account shows it\.<br><br>Type: string<br>Allowed values: \["turnzero","tzcloud","tztools","tzop"\] |

## Complete payload contract

```json
{
  "request": {
    "type": "object",
    "properties": {}
  },
  "response": {
    "type": "object",
    "required": [
      "contract_version",
      "tokens"
    ],
    "properties": {
      "contract_version": {
        "const": 1
      },
      "tokens": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "id",
            "scope_kind",
            "application",
            "grants",
            "label",
            "created_at",
            "expires_at",
            "revoked_at",
            "last_used_at"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "scope_kind": {
              "enum": [
                "account",
                "application"
              ]
            },
            "application": {
              "type": [
                "string",
                "null"
              ]
            },
            "grants": {
              "type": "array",
              "items": {
                "enum": [
                  "destructive",
                  "super_admin",
                  "synthetic_seed_purge",
                  "synthetic_estate",
                  "publication",
                  "feedback_queue",
                  "issues",
                  "tzmesh",
                  "tztrack",
                  "test_end_users",
                  "support_read"
                ]
              }
            },
            "label": {
              "type": [
                "string",
                "null"
              ]
            },
            "authorized_computer": {
              "type": "boolean",
              "description": "Whether the token is an authorized computer's: true on a token the turnzero command keeps on a computer it authorized, false on every other."
            },
            "space": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
              "description": "The space the issues grant applies to; you get it only on a token that holds the grant."
            },
            "level": {
              "enum": [
                "report",
                "contribute",
                "owner",
                "read",
                "chat",
                "admin"
              ],
              "description": "The level the issues grant reaches its space at, report, contribute, or owner, or a `tzmesh` or `tztrack` token's level, read, chat, or admin, a mark that bounds no call of its product. You get it only on a token that holds one of the three grants."
            },
            "created_at": {
              "type": "string"
            },
            "expires_at": {
              "type": [
                "string",
                "null"
              ]
            },
            "revoked_at": {
              "type": [
                "string",
                "null"
              ]
            },
            "last_used_at": {
              "type": [
                "string",
                "null"
              ]
            },
            "last_used_note": {
              "type": "string",
              "description": "On a product token alone, one holding the `tzmesh` or `tztrack` grant: a sentence saying the last-use time counts only requests made to this platform. The product's own service checks the token without asking this platform, so its uses there are not recorded and a null time does not mean the token is unused."
            }
          },
          "additionalProperties": false
        }
      },
      "connections": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "id",
            "client_id",
            "client_name",
            "client_host",
            "signed_in_at",
            "renewed_at",
            "expires_at",
            "address"
          ],
          "properties": {
            "id": {
              "type": "string",
              "description": "The connection's identity: its refresh family, which you pass to `revoke_token` with `connection`."
            },
            "client_id": {
              "type": "string",
              "description": "The registered client the connection was issued to."
            },
            "client_name": {
              "type": [
                "string",
                "null"
              ],
              "description": "The name the client's tool registered, or null where it registered none."
            },
            "client_host": {
              "type": [
                "string",
                "null"
              ],
              "description": "The host of the address the client's tool registered, or null where it registered none."
            },
            "signed_in_at": {
              "type": "string",
              "description": "The instant of the sign-in that opened the connection."
            },
            "renewed_at": {
              "type": [
                "string",
                "null"
              ],
              "description": "The instant of the last renewal, or null where none was made."
            },
            "expires_at": {
              "type": "string",
              "description": "When the connection's newest refresh credential expires."
            },
            "address": {
              "type": "string",
              "enum": [
                "turnzero",
                "tzcloud",
                "tztools",
                "tzop"
              ],
              "description": "The address the connection was made at: `turnzero` for turnzero.ai/mcp, `tzcloud`, or `tztools`. `tzop` is the address Turn Zero's own operators use; no customer account shows it."
            }
          },
          "additionalProperties": false
        },
        "description": "Your account's connections, each with its ID, client, address, sign-in time, last renewal and expiry. It returns no token. Absent under a credential with a bounding grant."
      }
    },
    "additionalProperties": false
  }
}
```

## Shared contracts

- [Refusals](/cloud/reference/refusals/): every refusal, by surface, with its cause and its remedy
- [schemas/wire\_error\.schema\.json](/cloud/reference/sources/schemas/wire-error-schema/)
- [schemas/wire\_errors\.json](/cloud/reference/sources/schemas/wire-errors/)
- [schemas/action\_payloads\.json](/cloud/reference/sources/schemas/action-payloads/) (includes shared shapes)
- [management\_api\_contract\.md](/cloud/reference/sources/management-api-contract/)
