Create Api Key

Authentication

AuthorizationBearer
Your RRay API key.

Headers

RRay-Workspace-Idstring or nullOptional

The workspace to act on. Required when your credential is account-level; rejected (not silently ignored) for workspace-scoped API keys, which already carry their workspace and accept no header at all.

Request

This endpoint expects an object.
namestringRequired1-100 characters
modestringOptionalDefaults to live

Response

Successful Response
idstring
namestring
displaystring
modestring
scopestring
revokedboolean
created_atdatetime
keystring
object"api_key"OptionalDefaults to api_key
last_used_atdatetime or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error