EaserixDocs
DevelopersAPI referenceAuth & accountsApi keys

Create an org API key

Full sessions only; team orgs only; org.settings.manage. role honored (member/billing/admin, never owner). 200 with show-once secret.

View as Markdown
POST
/v1/orgs/{id}/api-keys
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/orgs/string/api-keys" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "api_key": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "kind": "string",    "name": "string",    "org_id": "string",    "token_prefix": "string",    "role": "string",    "tools": [      "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"  }}