Skip to main content
POST
Create

Authorizations

Authorization
string
header
required

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

Headers

ngrok-version
integer
default:2
required

Body

application/json
description
string

human-readable description of this token. Optional, max 255 bytes.

expires_at
string

optional expiration time for this token. If unset the token does not expire.

scopes
string[]

scopes this token can use, for example ["endpoints:read"]. Each must be a scope you can grant.

Response

Create a new access token. The token value is returned only in this response and can't be retrieved later. If you lose it, create a new token.

id
string

unique identifier of the access token

uri
string

URI of this access token API resource

description
string

human-readable description of this token

token
string

opaque bearer token secret. Only present in the Create response.

created_at
string

timestamp when the token was created, RFC 3339 format

expires_at
string

optional expiration time, RFC 3339 format. Omitted if the token does not expire.

revoked_at
string

optional timestamp when the token was revoked, RFC 3339 format. Omitted if not revoked.

scopes
string[]

scopes this token was granted. Effective access is also limited by the owner's current role.