User Management
List of user API keys
API Key for use with completions API
nexos-3****-56iupo3240v22Unique identifier for the API key
123e4567-e89b-12d3-a456-426614174000Display name for the API key
Production API KeyWhether the API key is enabled.
trueWhether the API key has been soft-deleted
falseThe time the key was created.
2024-11-19T10:00:00ZThe time the key was last updated.
2024-11-19T12:00:00ZThe time the key was last used.
2024-11-19T12:00:00ZThe date when the key expires. Null if the key does not expire.
2025-11-19T12:00:00ZGET /v1/user/api_keys HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
List of user API keys
[
{
"api_key": "nexos-3****-56iupo3240v22",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production API Key",
"enabled": true,
"removed": false,
"created_at": "2024-11-19T10:00:00Z",
"updated_at": "2024-11-19T12:00:00Z",
"last_used_at": "2024-11-19T12:00:00Z",
"expiration_date": "2025-11-19T12:00:00Z"
}
]The name of the key (needs to be unique).
My API KeyWhether the API key is enabled. Only applicable when updating a key.
trueThe date when the key expires. Null means no expiration.
2027-01-01T12:00:00ZUser API Key
API Key for use with completions API
nexos-3****-56iupo3240v22Unique identifier for the API key
123e4567-e89b-12d3-a456-426614174000Display name for the API key
Production API KeyWhether the API key is enabled.
trueWhether the API key has been soft-deleted
falseThe time the key was created.
2024-11-19T10:00:00ZThe time the key was last updated.
2024-11-19T12:00:00ZThe time the key was last used.
2024-11-19T12:00:00ZThe date when the key expires. Null if the key does not expire.
2025-11-19T12:00:00ZPOST /v1/user/api_keys HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 77
{
"name": "My API Key",
"enabled": true,
"expiration_date": "2027-01-01T12:00:00Z"
}User API Key
{
"api_key": "nexos-3****-56iupo3240v22",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production API Key",
"enabled": true,
"removed": false,
"created_at": "2024-11-19T10:00:00Z",
"updated_at": "2024-11-19T12:00:00Z",
"last_used_at": "2024-11-19T12:00:00Z",
"expiration_date": "2025-11-19T12:00:00Z"
}Updated API keys
API Key for use with completions API
nexos-3****-56iupo3240v22Unique identifier for the API key
123e4567-e89b-12d3-a456-426614174000Display name for the API key
Production API KeyWhether the API key is enabled.
trueWhether the API key has been soft-deleted
falseThe time the key was created.
2024-11-19T10:00:00ZThe time the key was last updated.
2024-11-19T12:00:00ZThe time the key was last used.
2024-11-19T12:00:00ZThe date when the key expires. Null if the key does not expire.
2025-11-19T12:00:00ZPOST /v1/user/api_keys/bulk HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 145
{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"enabled": true,
"expiration_date": "2026-01-01T00:00:00.000Z",
"remove": true
}
]
}Updated API keys
[
{
"api_key": "nexos-3****-56iupo3240v22",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production API Key",
"enabled": true,
"removed": false,
"created_at": "2024-11-19T10:00:00Z",
"updated_at": "2024-11-19T12:00:00Z",
"last_used_at": "2024-11-19T12:00:00Z",
"expiration_date": "2025-11-19T12:00:00Z"
}
]The ID of the key.
API key deleted successfully.
No content
Bad request
User/Key not found.
DELETE /v1/user/api_keys/{keyId} HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
The ID of the key.
The name of the key (needs to be unique).
My API KeyWhether the API key is enabled. Only applicable when updating a key.
trueThe date when the key expires. Null means no expiration.
2027-01-01T12:00:00ZUser API Key
API Key for use with completions API
nexos-3****-56iupo3240v22Unique identifier for the API key
123e4567-e89b-12d3-a456-426614174000Display name for the API key
Production API KeyWhether the API key is enabled.
trueWhether the API key has been soft-deleted
falseThe time the key was created.
2024-11-19T10:00:00ZThe time the key was last updated.
2024-11-19T12:00:00ZThe time the key was last used.
2024-11-19T12:00:00ZThe date when the key expires. Null if the key does not expire.
2025-11-19T12:00:00ZInvalid request.
User/Key not found.
PATCH /v1/user/api_keys/{keyId} HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 77
{
"name": "My API Key",
"enabled": true,
"expiration_date": "2027-01-01T12:00:00Z"
}{
"api_key": "nexos-3****-56iupo3240v22",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production API Key",
"enabled": true,
"removed": false,
"created_at": "2024-11-19T10:00:00Z",
"updated_at": "2024-11-19T12:00:00Z",
"last_used_at": "2024-11-19T12:00:00Z",
"expiration_date": "2025-11-19T12:00:00Z"
}The ID of the key.
User API Key
API Key for use with completions API
nexos-3****-56iupo3240v22Unique identifier for the API key
123e4567-e89b-12d3-a456-426614174000Display name for the API key
Production API KeyWhether the API key is enabled.
trueWhether the API key has been soft-deleted
falseThe time the key was created.
2024-11-19T10:00:00ZThe time the key was last updated.
2024-11-19T12:00:00ZThe time the key was last used.
2024-11-19T12:00:00ZThe date when the key expires. Null if the key does not expire.
2025-11-19T12:00:00ZInvalid request.
User/Key not found.
PATCH /v1/user/api_keys/{keyId}/regenerate HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"api_key": "nexos-3****-56iupo3240v22",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production API Key",
"enabled": true,
"removed": false,
"created_at": "2024-11-19T10:00:00Z",
"updated_at": "2024-11-19T12:00:00Z",
"last_used_at": "2024-11-19T12:00:00Z",
"expiration_date": "2025-11-19T12:00:00Z"
}Last updated

