POST
/
v2
/
users
/
api_keys
Create Api Key
curl --request POST \
  --url https://api.galileo.ai/v2/users/api_keys \
  --header 'Content-Type: application/json' \
  --header 'Galileo-API-Key: <api-key>' \
  --data '{
  "description": "My cool api_key",
  "expires_at": "2025-04-01 09:00:00+00:00"
}'
{
  "id": "<string>",
  "description": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "last_used": "2023-11-07T05:31:56Z",
  "project_id": "<string>",
  "project_role": "owner",
  "created_by": "<string>",
  "truncated": "<string>",
  "api_key": "<string>"
}

Authorizations

Galileo-API-Key
string
header
required

Body

application/json
description
string
required
expires_at
string<date-time> | null

Expiry date for the API key

project_id
string<uuid4> | null
project_role
enum<string> | null
Available options:
owner,
editor,
annotator,
viewer

Response

Successful Response

id
string<uuid4>
required
description
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
created_by
string<uuid4>
required
truncated
string
required
api_key
string
required
expires_at
string<date-time> | null
last_used
string<date-time> | null
project_id
string<uuid4> | null
project_role
enum<string> | null
Available options:
owner,
editor,
annotator,
viewer