Agents
Create Bearer Token
Requires agents:CreateBearerToken permission.
post/agents/{agentKey}/bearerToken
Request
- Base URLhttps://eu-west-1.api.silverflow.com/v1
- Auth
- HTTP basic
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Example request
{
"expires": "P3Y6M4DT12H30M5S",
"scope": {
"merchantKey": "mct-123dinkqFqfq3q2f2adfa"
}
}Response
The created Bearer Token
Example response
{
"key": "apk-l1nd1jn3j2njnkqkn"
}Changes
No recorded changes to this operation across all 1 revision of this API.