Skip to main content
POST
/
organization-integration-tokens
Create a new OrganizationIntegrationToken
curl --request POST \
  --url https://app.ledger.ai/api/organization-integration-tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

filters
string

JSON post body:

{
"access_token_expires_at": timestamp
"access_token_expires_in": integer
"encrypted_access_token": string
"encrypted_refresh_token": string
"integration": integer
"organization_id": integer
"realm_id": string
"refresh_token_expires_at"?: timestamp
"refresh_token_expires_in"?: integer
"token_type": string
"user_id": integer
}

Possible errors:

Field "access_token_expires_at": "Access Token Expires At is required"

Field "access_token_expires_in": "Access Token Expires In is required"

Field "encrypted_access_token": "Encrypted Access Token is required"

Field "encrypted_refresh_token": "Encrypted Refresh Token is required"

Field "integration": "Integration is required"

Field "organization_id": "Organization ID is required"

Field "realm_id": "Realm ID is required"

Field "token_type": "Token Type is required"

Field "user_id": "User ID is required"

Body

application/json

Request payload

The body is of type object.

Response

Successful response

The response is of type object.