M2M Tokens
Create a M2M Token
Changed onCreates a new M2M Token. Must be authenticated via a Machine Secret Key.
post/m2m_tokens
Request
- Base URL: https://api.clerk.com/v1
- URL: https://api.clerk.com/v1/m2m_tokens
- Auth: HTTP bearer
Request body
Example request
{
"min_remaining_ttl_seconds": 240
}Response
201 Created
Example response
{
"id": "mt_f7f0ba8c3b4843ce7d85fcdd5e71853e",
"subject": "mch_2xhFjEI5X2qWRvtV13BzSj8H6Dk",
"claims": {
"important_metadata": "Some useful data"
},
"scopes": [
"mch_2xhFjEI5X2qWRvtV13BzSj8H6Dk",
"mch_2yGkLpQ7Y3rXSwtU24CzTk9I7Em"
],
"token": "mt_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"revocation_reason": "Revoked by user",
"expiration": 1716883200000,
"last_used_at": 1716883200000,
"created_at": 1716883200000,
"updated_at": 1716883200000
}Changes
- info
added the new optional request property
- info
- info
added the new optional request property
- info