---
title: "Get delegate token for customer portal"
method: POST
path: "/portal/token"
tags: ["Customer Portal"]
---

# Get delegate token for customer portal

`POST /portal/token`

Get delegate token for customer portal

## Request body

- GetCustomerPortalDelegateTokenRequest — 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`

OK

- TokenResponse
  - `token` string, required

## Other responses

- `400` — Error response
- `401` — Error response
- `403` — Error response
- `404` — Error response
- `429` — Error response
- `default` — Error response

---

[API](https://skmtc.net/togaihq/apis/togai-apis.md) · [All operations](https://skmtc.net/togaihq/apis/togai-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/togaihq/togai-apis/revisions/442f5d8f4aa0/schema)
