post
https://partner.gupshup.io/partner/bizgate/app//token
Creates an app token for this app.
Request parameters
Path parameters
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| appId | Identifier of the WhatsApp app the call acts on. | 6f414190-d45c-4671-bca1-fb6c3018cb13 | String | Required |
Body
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| name | Label for the token, 1..128 characters, unique among the app's active tokens | support-bot | — | Optional |
| expiry | Optional absolute expiry, epoch milliseconds: 1..24 hours from now. Defaults to 24 hours. | 1791631227000 | — | Optional |
Sample cURL — Create an app token (UAT).
curl --request POST \
--url 'https://partner.gupshup.io/partner/bizgate/app/6f414190-d45c-4671-bca1-fb6c3018cb13/token' \
--header 'Authorization: Bearer <UT>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name" : "support-bot",
"expiry" : 1791631227000
}'Sample success response (200)
{
"status": "success",
"data": {
"id": "a2f6c0de-1b2c-4d5e-8f90-1234567890ab",
"token": "<JWT>"
}
}Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…