Get Partner Token

Use this API to get the partner token

❗️

Attention

This guide is no longer maintained from 31st Jan 2025. Please refer the updated one here.


The partner token will be used as authorization in other Partner APIs. Currently, the expiry for the token is 24 hours. You can read more about client secret here.

📘

Note

For older partner portal users, who have been onboarded before 20th Nov, we have configured their current partner portal password as their client secret, they can continue to pass their current password, in the GET partner token API to generate partner token. This has been done to ensure that there is no impact to our older partners.

However, in case you change your password, you will need to generate the client secret via the settings page.

Parameters

KeyValueDescription
Email{{EMAIL}}Email address through partner has signed up on partner portal
Password{{PASSWORD/CLIENT_SECRET}}Password set by the partner on the partner portal OR use the client secret if generated. Read how to generate client secret

Sample Request

curl --location --request POST 'https://partner.gupshup.io/partner/account/login' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'email={{EMAIL}}' \
--data-urlencode 'password={{PASSWORD/CLIENT_SECRET}}'

Sample Response

{
  "token": "{{PARTNER_TOKEN}}",
  "id": 1**3,
  "name": "gupshup",
  "terms_read": true,
  "admin": true,
  "email": "peter.parker@zylker.com",
  "activationRead": false,
  "billingType": "PREPAID",
  "contactName": "peter",
  "phoneNumber": "898",
  "enableCustomer": false,
  "enableWallet": true,
  "enableInrWallet": false,
  "enableLoaderWallet": false,
  "enableAppOnboarding": true,
  "isTpp": false,
  "onboardEnabled": false
}
Language
Click Try It! to start a request and see the response here!