---
title: "Generate API access token for a customer"
method: POST
path: "/msp/v2/customers/{customerID}/token"
tags: ["Customers"]
---

# Generate API access token for a customer

`POST /msp/v2/customers/{customerID}/token`

Use this API to generate an API access token that is unique to the customer. Use this token for accessing Druva APIs relevant to the specific customer.

## Path parameters

- `customerID` string, required

## Headers

- `Authorization` string, required

## Response `200`

Ok

- GenerateTokenResponse
  - `access_token` string — API access token for specified customer.
  - `token_type` string — Type of the token. This will always be a bearer token.
  - `expires_in` integer — The token expiry time in seconds.

## Other responses

- `400` — Bad Request
- `404` — The requested resource was not found.
- `500` — The request was not processed due to an internal error in MSP Portal Service.

---

[API](https://skmtc.net/druva/apis/authentication.md) · [All operations](https://skmtc.net/druva/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/druva/authentication/revisions/2af2bf148b25/schema)
