ApiAccess tokens
Create an Access token
Create a scoped Access token Admins and Owners, in a session (tokens cannot make tokens). 90 days unless `expires_in_days` (1–365) or `never_expires` says otherwise. The secret is returned once.
POST
Create a scoped Access token
Admins and Owners, in a session (tokens cannot make tokens). 90 days unless expires_in_days (1–365) or never_expires says otherwise. The secret is returned once.
header
AuthorizationBearer <token>qlt_… Access token (kind api)
account_id*stringapplication/json- body
name*stringLength
length <= 60scopes*array<|>Items
1 <= itemsexpires_in_days?integerRange
1 <= value <= 365never_expires?booleanCreated
application/json- response
id?stringname?stringscopes?array<string>last_used_at?|Format
date-timeexpires_at?|Format
date-timecreated_at?stringFormat
date-timesecret?stringqlt_…, shown once
curl -X POST 'https://tiltas.openpanel.sh/api/v1/accounts/string/access-tokens' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "scopes": [ "read" ]}'Example Response
{ "id": "string", "name": "string", "scopes": [ "string" ], "last_used_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "secret": "string"}