POST
/
v2
/
users
/
api_keys
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

Response

200
application/json

Successful Response

The response is of type object.