clerk.list_m2m_tokens
List M2M tokens for a machine in a connected Clerk instance.
Sensitive — returns token metadata for active machine credentials.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Returns M2M token summaries plus total_count. JWT-format tokens are not listed.
Cost = 5 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (1–500). | |
| offset | No | Number of results to skip before returning. | |
| expired | No | Include expired tokens (default false). | |
| revoked | No | Include revoked tokens (default false). | |
| subject | Yes | Machine id (mch_...) whose tokens to list. | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| m2m_tokens | No | M2M tokens for the requested page. | |
| total_count | No | Total number of matching M2M tokens. |