clerk.create_m2m_token
ActiveTool of Vee3
Create an M2M token in a connected Clerk instance. **Sensitive** — the returned token is a high-privilege secret; do not log or expose it. Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account. Returns the created M2M token. Cost = 15 tokens.
Parameters schema
{
"type": "object",
"title": "create_clerk_m2m_tokenArguments",
"required": [
"machine_secret_key"
],
"properties": {
"claims": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"title": "Claims",
"default": null,
"description": "Optional custom claims embedded in the token."
},
"token_format": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Token Format",
"default": null,
"description": "Token format: \"opaque\" (default) or \"jwt\"."
},
"clerk_instance_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Clerk Instance Id",
"default": null,
"description": "Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account."
},
"machine_secret_key": {
"type": "string",
"title": "Machine Secret Key",
"description": "Machine secret key (msk_...) used to authenticate the create request."
},
"seconds_until_expiration": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "null"
}
],
"title": "Seconds Until Expiration",
"default": null,
"description": "Token lifetime in seconds."
},
"min_remaining_ttl_seconds": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
],
"title": "Min Remaining Ttl Seconds",
"default": null,
"description": "For opaque tokens, reuse an existing token with at least this TTL remaining."
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
Vee3
https://github.com/Vee3io/Vee3
1/7 registries