Create a short-lived user session token
Authentication API
Create a short-lived user session token
Use your API key to mint a scoped, short-lived JWT for agent calls.
POST
Create a short-lived user session token
Documentation Index
Fetch the complete documentation index at: https://docs.machines.cash/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Headers
Return Open Responses-compatible output when set (replaces the default response envelope).
Available options:
1, true Tool call id used for function_call_output items when Open Responses mode is enabled.
Minimum string length:
1Body
application/json
Your user id (must match users.resolve).
Required string length:
1 - 120Example:
"user-123"
Scopes to grant to the session token. Deposits and balances do not require extra scopes.
Minimum array length:
1Available options:
users.read, users.write, kyc.read, kyc.write, cards.read, cards.write, cards.secrets.read, encryption.read, encryption.write, deposits.read, deposits.write, transactions.read, withdrawals.write Example:
["kyc.read", "kyc.write"]Pattern:
^0x[a-fA-F0-9]{40}$Example:
"0x2b0f7f2f7c8e4c3d2d3b3f6a8f9b0c1d2e3f4a5b"
Time-to-live in seconds (default 900).
Required range:
60 <= x <= 86400Example:
900
Optional label for auditing.
Maximum string length:
120