Agents

Create Bearer Token

Requires agents:CreateBearerToken permission.

post/agents/{agentKey}/bearerToken

Request

Path parameters

agentKeystring required

Uniquely identifies an Agent

Example:cgt-1UF2NafdfrdPMf2XrS2

Uniquely identifies an Agent. When called by an Agent the literal value "current" can be used instead of the actual Agent Key.

Request body

expiresstring required

A duration expressed in ISO 8601 "period" format.

permissionsPermission[] required
ipRangesIpRange[]

A list of IP ranges

Example request

{
  "expires": "P3Y6M4DT12H30M5S",
  "scope": {
    "merchantKey": "mct-123dinkqFqfq3q2f2adfa"
  }
}

Response

The created Bearer Token

keystring required

Uniquely identifies a Token

tokenstring required

Example response

{
  "key": "apk-l1nd1jn3j2njnkqkn"
}

Changes

No recorded changes to this operation across all 1 revision of this API.