Required Configuration
Brand Token
- Get ticket system ID from this endpoint:
- Create Brand Token by sending post request to this endpoint:
Generate Helpdesk Brand Token
- Get system type id
- Generate a Brand Token
Token usage
A token is used to authenticate requests to the helpdesk. Each brand may have only 1 active token. You can get a token on the Emotive dashboard page (UI is in progress, use above mentioned API to getbrand_token ).
Once a token is created, use it for all requests to Helpdesk API. Pass it as an X-Api-Key header value:
Brand webhooks
Brand should create a webhook endpoint that the helpdesk will call. These webhooks would be called for the following events:- Ticket creation
- Note addition (Once a ticket for brand user is created - all next ticket events will be passed as ticket notes.)
Define webhooks
Webhooks will be used to notify the brand’s platform about new tickets or ticket messages. A brand must provide 2 endpoints:- Ticket creation - once a ticket is created in the helpdesk, this endpoint will be notified
- Ticket update - notification on a message from the user (for an existing ticket)
Ticket creation webhook
Once a ticket is created, a brand must send a request to the helpdesk ticket update endpoint:Ticket note callback
If a brand wants to send a message to the user, this endpoint can be used:Ticket actions:
Unsubscribe User
A brand can unsubscribe a user by sending a#optout or #opt-out message. This message won’t be delivered to the user but will unsubscribe a user from the platform.