API referenceOrganizations
Create an API token
POST
cookie
lb_session<token>Dashboard session cookie, set by the sign-in endpoints.
org*stringOrganization slug
application/json- body
name*stringLength
1 <= length <= 64role*stringValue in
"admin""developer""viewer"expiresInDays*|Range
1 <= value <= 365Created; token is returned once
application/json- response
id*stringname*stringrole*RoleValue in
"owner""admin""developer""viewer"prefix*stringcreatedBy*stringlastUsedAt*string|nullexpiresAt*string|nullcreatedAt*stringtoken?stringcurl -X POST "https://example.com/v1/orgs/string/tokens" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "role": "admin", "expiresInDays": 1 }'{ "id": "string", "name": "string", "role": "owner", "prefix": "string", "createdBy": "string", "lastUsedAt": "string", "expiresAt": "string", "createdAt": "string", "token": "string"}