Skip to main content
You can find developer documentation here.

Required Configuration

Brand Token

  • Get ticket system ID from this endpoint:
https://api-gw.emotiveapp.co/helpdesk/ui/#/default/controllers.ticket_systems.get
  • Create Brand Token by sending post request to this endpoint:
https://api-gw.emotiveapp.co/helpdesk/ui/#/default/controllers.connections.post

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 get brand_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.)
SMS Subscriber can only have 1 active ticket at time.

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)
Example:

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.

Close ticket/conversation

Once the conversation was resolved and the brand decided to close it. Helpdesk API would need to receive a request to this endpoint: