Skip to main content
POST
/
workspaces
/
{workspace_id}
/
api-keys
Create Api Key
curl --request POST \
  --url https://api.example.com/workspaces/{workspace_id}/api-keys/ \
  --header 'Authorization: Bearer <token>'
{
  "key": "<string>",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "deleted_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
string<uuid>
required

Query Parameters

name
string
required

Response

Successful Response

key
string
required
user_id
string<uuid>
required
workspace_id
string<uuid>
required
deleted_at
string<date-time> | null
created_at
string<date-time>
updated_at
string<date-time>
id
string<uuid>
name
string | null