Account REST API (v1)
API documentation for managing Nuclia accounts, including all related endpoints. Requires Personal Access Key.
Get Usage
Retrieve statistics for a knowledgebox or account
path Parameters
| account_id required | string <uuid> (Account Id) |
query Parameters
| aggregation | string (Aggregation) Default: "millennium" Enum: "hour" "day" "week" "month" "quarter" "year" "millennium" |
Knowledgebox (string) or Knowledgebox (null) (Knowledgebox) | |
Nua Key Id (string) or Nua Key Id (null) (Nua Key Id) | |
| from required | string <date-time> (From) |
To (string) or To (null) (To) Default: "2026-07-13T09:19:51.561595" |
Responses
Response samples
- 200
- 422
Content type
application/json
[- {
- "timestamp": "2019-08-24T14:15:22Z",
- "metrics": [
- {
- "name": "pre_processing_time",
- "value": 0,
- "details": [ ]
}
]
}
]Response samples
- 200
- 422
Content type
application/json
{- "id": "string",
- "slug": "string",
- "title": "string",
- "type": "stash-trial",
- "zone_visibility": "DEFAULT",
- "description": "string",
- "can_manage_account": true,
- "current_users": 0,
- "max_users": 0,
- "current_kbs": 0,
- "max_kbs": 0,
- "current_agents": 0,
- "max_agents": 0,
- "current_memories": 0,
- "max_memories": 0,
- "current_arags": 0,
- "max_arags": 0,
- "blocking_state": "unblocked",
- "blocked_features": [ ],
- "limits": {
- "upload": {
- "upload_limit_max_media_file_size": 0,
- "upload_limit_max_non_media_file_size": 0
}, - "usage": {
- "monthly_limit_paragraphs_processed": 0,
- "monthly_limit_docs_no_media_processed": 0,
- "monthly_limit_media_seconds_processed": 0,
- "monthly_limit_paragraphs_stored": 0,
- "monthly_limit_hosted_searches_performed": 0,
- "monthly_limit_hosted_answers_generated": 0,
- "monthly_limit_self_hosted_searches_performed": 0,
- "monthly_limit_self_hosted_answers_generated": 0,
- "storage_limit_max_bytes_per_kb": 0,
- "storage_limit_max_resources_per_kb": 0,
- "monthly_limit_non_media_files_processed": 0,
- "monthly_limit_chars_processed": 0
}, - "processing": {
- "monthly_limit_paragraphs_processed": 0,
- "monthly_limit_docs_no_media_processed": 0,
- "monthly_limit_media_seconds_processed": 0,
- "monthly_limit_paragraphs_stored": 0,
- "monthly_limit_hosted_searches_performed": 0,
- "monthly_limit_hosted_answers_generated": 0,
- "monthly_limit_self_hosted_searches_performed": 0,
- "monthly_limit_self_hosted_answers_generated": 0,
- "storage_limit_max_bytes_per_kb": 0,
- "storage_limit_max_resources_per_kb": 0,
- "monthly_limit_non_media_files_processed": 0,
- "monthly_limit_chars_processed": 0
}
}, - "creation_date": "2019-08-24T14:15:22Z",
- "trial_expiration_date": "2019-08-24T14:15:22Z",
- "domain": "string",
- "saml_entity_id": "string",
- "saml_sso_url": "string",
- "saml_x509_cert": "string",
- "saml_config": {
- "domains": [
- "string"
], - "sso_url": "string",
- "entity_id": "string",
- "x509_cert": "string",
- "authn_context": "exact"
}, - "workflow": "classic",
- "eula_accepted": false
}Modify Account
path Parameters
| account_slug required | string (Account Slug) |
Request Body schema: application/jsonrequired
Title (string) or Title (null) (Title) | |
Description (string) or Description (null) (Description) | |
OldSAMLConfig (object) or null | |
SAMLConfig (object) or null | |
Slug (string) or Slug (null) (Slug) | |
WorkflowMode (string) or null | |
Eula Accepted (boolean) or Eula Accepted (null) (Eula Accepted) |
Responses
Request samples
- Payload
Content type
application/json
{- "title": "string",
- "description": "string",
- "saml": {
- "domain": "string",
- "sso_url": "string",
- "entity_id": "string",
- "x509_cert": "string"
}, - "saml_config": {
- "domains": [
- "string"
], - "sso_url": "string",
- "entity_id": "string",
- "x509_cert": "string",
- "authn_context": "exact"
}, - "slug": "string",
- "workflow": "classic",
- "eula_accepted": true
}Response samples
- 200
- 422
Content type
application/json
nullUpload Account Logo
Account logo
query Parameters
| account_id required | string (Account Id) |
Request Body schema: multipart/form-datarequired
| file required | string <application/octet-stream> (File) |
Responses
Response samples
- 422
Content type
application/json
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string",
- "input": null,
- "ctx": { }
}
]
}Create Account
Request Body schema: application/jsonrequired
Slug (string) or Slug (null) (Slug) | |
| title required | string (Title) non-empty |
Description (string) or Description (null) (Description) | |
Email (string) or Email (null) (Email) | |
Zone (string) or Zone (null) (Zone) | |
| workflow | string (WorkflowMode) Default: "classic" Enum: "classic" "cowork" |
| eula_accepted | boolean (Eula Accepted) Default: false |
Responses
Request samples
- Payload
Content type
application/json
{- "slug": "string",
- "title": "string",
- "description": "string",
- "email": "user@example.com",
- "zone": "string",
- "workflow": "classic",
- "eula_accepted": false
}Response samples
- 201
- 422
Content type
application/json
{- "id": "string"
}Modify User Profile
Set information about user
Request Body schema: application/jsonrequired
Name (string) or Name (null) (Name) | |
Avatar (string) or Avatar (null) (Avatar) | |
Email (string) or Email (null) (Email) | |
Languages (string) or null |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "avatar": "string",
- "email": "user@example.com",
- "language": "CA"
}Response samples
- 200
- 422
Content type
application/json
nullResponse samples
- 200
Content type
application/json
{- "preferences": {
- "last_login": "2019-08-24T14:15:22Z",
- "email": "string",
- "name": "string",
- "type": "ROOT",
- "language": "CA"
}, - "accounts": [
- "string"
], - "create": true,
- "can_be_deleted": true,
- "dependant_accounts": [
- {
- "id": "string",
- "slug": "string"
}
]
}Update Users
Account user modification
path Parameters
| account_slug required | string (Account Slug) |
Request Body schema: application/jsonrequired
Array of Add (objects) or Add (null) (Add) | |
Array of Delete (strings) or Delete (null) (Delete) |
Responses
Request samples
- Payload
Content type
application/json
{- "add": [
- {
- "id": "string",
- "role": "AOWNER"
}
], - "delete": [
- "string"
]
}Response samples
- 422
Content type
application/json
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string",
- "input": null,
- "ctx": { }
}
]
}Search Account Users
Search account users
path Parameters
| account_slug required | string (Account Slug) |
query Parameters
| query required | string (Query) |
Responses
Response samples
- 200
- 422
Content type
application/json
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "email": "string",
- "role": "AOWNER"
}
]List Account Zones
List zones visible to a specific account. Accepts either the account slug or UUID.
path Parameters
| account_slug_or_id required | string (Account Slug Or Id) |
Responses
Response samples
- 200
- 422
Content type
application/json
[- {
- "id": "string",
- "slug": "string",
- "title": "string",
- "cloud_provider": "AWS",
- "private": true,
- "origin": "string"
}
]Invite To Account
Invite somebody by email
path Parameters
| account_slug required | string (Account Slug) |
Request Body schema: application/jsonrequired
| email required | string <email> (Email) |
| role | string (AccountRole) Default: "AMEMBER" Enum: "AOWNER" "AMEMBER" |
Came From (string) or Came From (null) (Came From) |
Responses
Request samples
- Payload
Content type
application/json
{- "email": "user@example.com",
- "role": "AOWNER",
- "came_from": "string"
}Response samples
- 200
- 422
Content type
application/json
nullCreate Token
Create a new personal access token
Request Body schema: application/jsonrequired
| description required | string (Description) |
Expiration Date (string) or Expiration Date (null) (Expiration Date) |
Responses
Request samples
- Payload
Content type
application/json
{- "description": "string",
- "expiration_date": "2019-08-24T14:15:22Z"
}Response samples
- 201
- 422
Content type
application/json
{- "id": "string",
- "token": "string",
- "expires": "2019-08-24T14:15:22Z"
}