Skip to main content
POST
/
installations
/
{installation_id}
/
token
Create an installation-scoped access token
curl --request POST \
  --url https://api-dev.narrative.io/installations/{installation_id}/token \
  --header 'Authorization: Bearer <token>'
{
  "access_token": "xxxxxxxxxxx",
  "access_token_expires_in": 3600,
  "refresh_token": "yyyyyyyyyyy",
  "refresh_token_expires_in": 14400
}

Authorizations

Authorization
string
header
required

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

Path Parameters

installation_id
integer<int64>
required

The unique identifier for the installation.

Response

Successfully created an installation-scoped access token.

access_token
string
required

The access token

Example:

"xxxxxxxxxxx"

access_token_expires_in
integer
required

The TTL of the access_token in seconds

Example:

3600

refresh_token
string
required

The refresh token

Example:

"yyyyyyyyyyy"

refresh_token_expires_in
integer
required

The TTL of the refresh_token in seconds

Example:

14400