Skip to content

Create Integration Token

Request

Create an adhoc integration token restricted to a single integration. The token used to call this API must have the necessary permissions to create tokens and have access to the account and integration IDs. Permissions may not be escalated, so any operation that the invocation token does not have access to cannot be granted.

Operation ID: tokens_create_integration_token

Security
BearerAuth
Path
accountIdstring(Id)required
integrationIdstring(Id)required
Bodyapplication/jsonrequired
namestring or null

Unique name token. If not provided, defaults to generated newly created refresh token id.

token_ttlstring or null

Token time-to-live. If not provided, defaults to 10 minutes. Use the format "1h", "1m", "1s" for hours, minutes, and seconds respectively, e.g., "2h" for 2 hours.

curl
curl -i -X POST \
  'https://api.synqly.com/v1/tokens/{accountId}/{integrationId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Responses

Bodyapplication/json
resultobject(Token)required
Response
{ "result": { "secret": "string", "expires": "2019-08-24T14:15:22Z", "permissions": { … }, "claims": {} } }