Create a universal token (UT)

Exchanges a partner admin's email and client secret for a universal token.

Request parameters

Path parameters

KeyDescriptionValuesData TypeRequired/Optional
partnerIdIdentifier of the partner account. Must be the partner the token authenticates.13824IntegerRequired

Body

KeyDescriptionValuesData TypeRequired/Optional
emailEmail of the partner admin the token is minted for[email protected]—Optional
clientSecretThat admin's client secretcs_••••••••—Optional
nameLabel for the token, 1..128 characters, unique among the admin's active tokensci-pipeline—Optional
expiryOptional 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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required

Identifier of the partner account. Must be the partner the token authenticates.

Body Params
string

Email of the partner admin the token is minted for

string

That admin's client secret

string

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

int64

Optional absolute expiry, epoch milliseconds: at least 24 hours and at most 60 days from now. Defaults to 60 days.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json