Mint client token
Required scopes (all): sessions:manage · messages:write · contacts:read · presence:read · presence:observe · mcp
Authorizations
Send your team API key or project token as Authorization: Bearer <token>. The credential must have the required permissions. Project tokens can access only their own project.
Body
Your identifier for the browser or mobile user receiving this token.
Value constraints
1ID of the session this token can access. Provide exactly one of session or customer.
Value constraints
1Polymorfa Customer ID. The token covers the numbers this Customer owns when it is minted, and only while the Customer still owns each one. Provide exactly one of session or customer. Requires the customers:read scope and enrollment in the Customer-scoped client tokens beta.
Value constraints
Actions this Customer-scoped token may use. Each request is also limited by the session's client rules. Omit to use the client rules alone. Only valid with customer.
Allowed item values
Value constraints
1 - 7 elementssend_message, send_reaction, send_typing, send_seen, read_presence, subscribe_presence, read_contact Token lifetime in seconds. Must be at least 1 and within the maximum allowed lifetime. Omit to use that maximum.