post
https://partner.gupshup.io/partner/bizgate/partner//auth/token
Exchanges a partner admin's email and client secret for a universal token.
Request parameters
Path parameters
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| partnerId | Identifier of the partner account. Must be the partner the token authenticates. | 13824 | Integer | Required |
Body
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| Email of the partner admin the token is minted for | [email protected] | — | Optional | |
| clientSecret | That admin's client secret | cs_•••••••• | — | Optional |
| name | Label for the token, 1..128 characters, unique among the admin's active tokens | ci-pipeline | — | Optional |
| expiry | Optional absolute expiry, epoch milliseconds: at least 24 hours and at most 60 days from now. Defaults to 60 days. | 1796408962000 | — | Optional |
Sample cURL — Create a universal token (UT).
curl --request POST \
--url 'https://partner.gupshup.io/partner/bizgate/partner/13824/auth/token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"email" : "[email protected]",
"clientSecret" : "<CLIENT_SECRET>",
"name" : "ci-pipeline",
"expiry" : 1796408962000
}'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…