List Clerk M2M tokens

List opaque M2M tokens for a machine in a connected Clerk instance.

← All Clerk endpoints · Capability overview

GET/v1/clerk/m2m-tokens

https://api.vee3.io/v1/clerk/m2m-tokens

5 tokens

List opaque M2M tokens for a machine in a connected Clerk instance.

Authorization

Send your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

MCP

The same capability is available as an MCP tool on Vee3 hosted MCP.

Tool name

clerk.list_m2m_tokens
Parameters6 fields
clerk_instance_idstringOptional

Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account.

subjectstringRequired

Machine id (mch_...) whose tokens to list.

revokedbooleanOptional

Include revoked tokens (default false).

expiredbooleanOptional

Include expired tokens (default false).

limitintegerOptional

Maximum number of results to return (1–500).

Default: 10 · min 1, max 500

offsetintegerOptional

Number of results to skip before returning.

Default: 0 · min 0

Response10 fields
m2m_tokensarrayitems
8 fields

M2M tokens for the requested page.

idstring

M2M token id (mt_...).

subjectstring

Machine id (mch_...) that created or owns the token.

tokenstring

M2M token secret when returned on creation. Treat as high-privilege — do not log.

revokedboolean

Whether the token has been revoked.

expiredboolean

Whether the token has expired.

expirationinteger

Unix timestamp in milliseconds when the token expires.

created_atinteger

Unix timestamp in milliseconds when the token was created.

updated_atinteger

Unix timestamp in milliseconds when the token was last updated.

total_countinteger

Total number of matching M2M tokens.

HTTP errors: clerk_connection_required, clerk_connection_not_found, clerk_connection_invalid, validation_error, unauthorized, payment_required