ChakraHQ APIs
Home
Sign In
Home
Sign In
  1. Partner Access
  • API Keys
  • Response Format
  • Inbound Events Webhook
  • How to figure out pluginId and whatsappPhoneNumberId
  • Send Template Messages
    • Send Whatsapp Template Message For Process
      POST
    • Send Whatsapp Template Message For A Phone Number
      POST
    • Send Template Message (Meta API Format)
      POST
  • Send Session Messages
    • WhatsApp Messages API (pass-through)
      POST
    • Send WhatsApp session message (pass-through)
      POST
  • Message Templates - Create & Manage
    • Create WhatsApp Message Template (pass-through)
      POST
    • List WhatsApp Message Templates (pass-through)
      GET
    • Update WhatsApp Message Template (pass-through)
      POST
  • Media - Upload & Manage
    • Upload Public Media
      POST
    • Show Whatsapp Media API
      GET
    • Fetch Whatsapp Media API
      GET
    • Show Whatsapp Media Attachments API
      GET
  • Flows - Create & Manage
    • Set Business Public Key
      POST
    • Get Business Public Key
      GET
  • Leads - Create & Manage
    • Create a lead
      POST
  • Chat & Chat Messages
    • List chats
      POST
    • List chat messages for a chat
      POST
    • List previous messages for a phone number
      POST
  • Campaigns - Manage
    • Add a phone number to a lead campaign
  • Partner Access
    • Create Connect Token
      POST
  • Platform
    • Process
      • Fetch Process By Id
      • List Processes
      • Create Process
      • Update Process
      • Update Process By Primary Key
      • Delete Process
      • Delete Process By Primary Key Value
      • Bulk Create Process API
      • Bulk Update Process API
    • Task
      • Create Task API
    • User
      • List Users API
      • List Users API (V2)
      • Fetch User API
      • Fetch User API (V2)
      • Update User API
    • Photo
      • Fetch Photo API
      • Upload Photo API
      • Upload Photo API With Id
    • Background Job
      • Fetch Background Job
      • Fetch Background Job Entries API
    • Fetch Config
  • Schemas
    • Whatsapp
      • MappingType
Home
Sign In
Home
Sign In
  1. Partner Access

Create Connect Token

Developing
POST
/v1/ext/whatsapp-partner/create-connect-token
If you want to enable your customers to connect their WhatsApp phone numbers via your Chakra Account, you will need to generate a connect token first.
This API takes the pluginId as input and generates a connect token.
Further details about the integration can be found here - https://help.chakrahq.com/chat/partner/embed-whatsapp-connect-for-your-customers
Do note that these tokens are only valid for an hour.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/ext/whatsapp-partner/create-connect-token' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "pluginId": "d83e1d23-50b8-4d87-8f92-842a0ac516f6"
}'
Response Response Example
{
  "_data": {
    "connectToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NzE0MDc4NzcuMzAxLCJkYXRhIjp7InRlYW1JZCI6IjVmYzlmOGUzLWFmNGEtNGYyOS1iZmQ4LTZjMDJlM2FiZTNlZSIsInBsdWdpbklkIjoiZDgzZTFkMjMtNTBiOC00ZDg3LThmOTItODQyYTBhYzUxNmY2IiwiY2xpZW50UmVmZXJlbmNlSWQiOiJqb2huLXdheW5lIn0sInJhbmRvbVN0cmluZyI6IjgzZmMyODgwLTY1NzUtNGQ1Yy04OGEzLTVhOTA0NmJkNTg4NyIsImV4cCI6MTc3MTQxMTQ3N30.d80ZhS6Tcvkrjvhk_0rCezklcNCSQXG7CTuNpWhZje4"
  }
}
Modified at 2026-02-18 15:34:35
Previous
Add a phone number to a lead campaign
Next
Fetch Process By Id
Built with