Create an app token (UAT)

Creates an app token for this app.

Request parameters

Path parameters

KeyDescriptionValuesData TypeRequired/Optional
appIdIdentifier of the WhatsApp app the call acts on.6f414190-d45c-4671-bca1-fb6c3018cb13StringRequired

Body

KeyDescriptionValuesData TypeRequired/Optional
nameLabel for the token, 1..128 characters, unique among the app's active tokenssupport-bot—Optional
expiryOptional 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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Identifier of the WhatsApp app the call acts on.

Body Params
string

Label for the token, 1..128 characters, unique among the app's active tokens

int64

Optional absolute expiry, epoch milliseconds: 1..24 hours from now. Defaults to 24 hours.

Responses

Language
Credentials
Bearer
Universal Token (UT)
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json