Embed
Mint an embed token
Call from your server with a workspace API key. Returns a single-use embedUrl (valid 60 seconds, only from origin) that opens one WhatsApp conversation in an iframe as the given Spur user, for an 8-hour session. Creates the contact from contact.number if needed. channelId (or conversationId) is required unless the workspace has exactly one WhatsApp number. Rate limit: 600 tokens per minute per workspace.
post/embed/tokens
Request
- Base URLhttps://api.spurnow.com
- AuthHTTP bearer
Request body
Example request
{
"user": {
"id": 318,
"email": "crm@acme.com"
},
"contact": {
"number": "+919876543210",
"id": 9812,
"firstName": "Rahul",
"lastName": "Sharma",
"email": "rahul@example.com"
},
"conversationId": 49205067,
"channelId": 1042,
"origin": "https://crm.acme.com",
"codeChallenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM",
"ttl": 60
}Response
Example response
{
"token": "emb_…",
"embedUrl": "https://embed.spurnow.com/auth?token=emb_…",
"expiresAt": "2026-10-20T10:31:04Z",
"userId": 318,
"contactId": 9812,
"conversationId": 49205067,
"channelId": 1042,
"sessionTtl": 28800
}Changes
No recorded changes to this operation across all 1 revision of this API.