v1

latestOpenAPI 3.1.02026-07-245531,0212.1 MB
Customers

Generate API access token for a customer

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.

post/msp/v2/customers/{customerID}/token

Path parameters

customerIDstring required

Specify the unique ID of the customer for whom you wish to generate the API access token. Get the ID of the customer using the 'List all customers' API.

Headers

Authorizationstring required

Specify the Bearer access token

Response

Ok

access_tokenstring

API access token for specified customer.

token_typestring

Type of the token. This will always be a bearer token.

expires_ininteger

The token expiry time in seconds.

Example response

{
  "access_token": "MWFkOTdjNzFkMmI2ZTEwZjc1ZTlDMjY2Njp2Y1NZeTN3azdCaVgzUHlZNjNZMzFBPT06MA==",
  "token_type": "bearer",
  "expires_in": 1800
}