API referenceAPI keys
POST /api-keys
POST /api-keys: OrkStage Control API v1 endpoint reference.
POST
header
AuthorizationBearer <token>Organization API key (scoped). Sessions use the cookie instead.
x-orkstage-csrf?unknownCookie sessions: send "1" on POST/PATCH/PUT/DELETE. Not needed with an API key.
application/json- body
name*stringLength
2 <= length <= 80tenantId?stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidrole*stringValue in
"PlatformAdmin""PlatformOperator""CustomerAdmin""CustomerDeveloper""CustomerViewer"scopes*array<>Items
1 <= itemsexpiresAt?stringMatch
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$Format
date-timeenvironment?stringDefault
"live"Value in
"live""test"curl -X POST 'http://localhost:4300/api/v1/api-keys' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "role": "PlatformAdmin", "scopes": [ "instances:read" ]}'Empty