Open a Salesforce chat
Build a request to copy
This page never sends a request. Fill in the fields, then copy the request and run it from your server.
curl -X POST 'https://api.whatsable.app/v1/salesforce/session' \
-H 'Content-Type: application/json' \
-d '{
"phone": "+8801712345678"
}'Returns a five-minute URL for the chat with this phone, on a number the key may use.
Both scopes. The key needs
messages:sendandmessages:read. The account is the key.
A copied URL stops working after five minutes. An open chat page keeps going. A reply in the last 24 hours sends as text. Otherwise the page sends an approved template.
bearerAuthAuthorizationBearer <nfy_live_<32 characters>>An API key from Settings > API keys, sent as Authorization: Bearer <key>.
application/json- body
The phone on the Salesforce record.
phone*stringThe person whose chat to open. A +, spaces and dashes may be omitted. The country code is not guessed.
The chat URL.
application/json- response
A short-lived link to one phone's chat.
object*stringurl*stringThe chat page. The token in the query is the credential for this phone, and it is not an API key. It works for five minutes.
uriexpires_in*integerHow many seconds the URL works.
-9007199254740991 <= value <= 9007199254740991conversation_id*|The newest conversation with this phone on a number the key may use, or null when there is none yet.
curl -X POST 'https://api.whatsable.app/v1/salesforce/session' \ -H 'Content-Type: application/json' \ -d '{ "phone": "+8801712345678"}'{ "object": "salesforce_session", "url": "https://app.example.com/salesforce/chat?token=opaque", "expires_in": 300, "conversation_id": null}