List Clerk M2M tokens
List opaque M2M tokens for a machine in a connected Clerk instance.
← All Clerk endpoints · Capability overview
/v1/clerk/m2m-tokenshttps://api.vee3.io/v1/clerk/m2m-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_tokensParameters6 fields
clerk_instance_idstringOptionalClerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account.
subjectstringRequiredMachine id (mch_...) whose tokens to list.
revokedbooleanOptionalInclude revoked tokens (default false).
expiredbooleanOptionalInclude expired tokens (default false).
limitintegerOptionalMaximum number of results to return (1–500).
Default: 10 · min 1, max 500
offsetintegerOptionalNumber of results to skip before returning.
Default: 0 · min 0
Response10 fields
m2m_tokensarrayitems8 fieldsM2M tokens for the requested page.
m2m_tokensarrayitemsidstringM2M token id (mt_...).
subjectstringMachine id (mch_...) that created or owns the token.
tokenstringM2M token secret when returned on creation. Treat as high-privilege — do not log.
revokedbooleanWhether the token has been revoked.
expiredbooleanWhether the token has expired.
expirationintegerUnix timestamp in milliseconds when the token expires.
created_atintegerUnix timestamp in milliseconds when the token was created.
updated_atintegerUnix timestamp in milliseconds when the token was last updated.
total_countintegerTotal number of matching M2M tokens.
HTTP errors: clerk_connection_required, clerk_connection_not_found, clerk_connection_invalid, validation_error, unauthorized, payment_required