POST
/
portal
/
token
curl --request POST \
  --url https://api.togai.com/portal/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customerId": "acme_cust",
  "allAccountsAccess": true,
  "expiry": 60000
}'

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request to get delegate token for customer portal

customerId
string
required

Identifier of the customer

accountIds
string[]

Identifier of the accounts under the customer for which access is requested. Maximum of 5 account ids can be provided

allAccountsAccess
boolean

Flag to specify if access for every account under the customer is required

expiry
integer

Expiry in seconds from the time of generation. If not provided, generated token will have the expiry of the token used for requesting.

Response

200 - application/json
token
string
required