Nuclia management REST API (v1)
API reference for Nuclia account, covering all the endpoints related to account, user and knowledge box management
Delete Account
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Get Account
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
AMEMBER
path Parameters
account_slug required | string (Account slug) Identifier to use as the account identifier in all account resources and subresources. This is a mutable field, unique, but independent of the account id |
Responses
Response samples
- 200
- 422
{- "blocked_features": [ ],
- "blocking_state": "unblocked",
- "can_manage_account": true,
- "config": {
- "g_speech_to_text": true,
- "indexer_slow_replicas": 0
}, - "current_kbs": 0,
- "current_users": 0,
- "description": "string",
- "id": "string",
- "limits": {
- "processing": {
- "monthly_limit_chars_processed": 0,
- "monthly_limit_docs_no_media_processed": 0,
- "monthly_limit_media_seconds_processed": 0,
- "monthly_limit_non_media_files_processed": 0,
- "monthly_limit_paragraphs_processed": 0,
- "monthly_limit_paragraphs_stored": 0,
- "monthly_limit_searches_performed": 0
}, - "upload": {
- "upload_limit_max_media_file_size": 0,
- "upload_limit_max_non_media_file_size": 0
}, - "usage": {
- "monthly_limit_chars_processed": 0,
- "monthly_limit_docs_no_media_processed": 0,
- "monthly_limit_media_seconds_processed": 0,
- "monthly_limit_non_media_files_processed": 0,
- "monthly_limit_paragraphs_processed": 0,
- "monthly_limit_paragraphs_stored": 0,
- "monthly_limit_searches_performed": 0
}
}, - "max_kbs": 0,
- "max_users": 0,
- "slug": "string",
- "title": "string",
- "type": "stash-basic",
- "zone": "string"
}
Modify Account
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account slug) Identifier to use as the account identifier in all account resources and subresources. This is a mutable field, unique, but independent of the account id |
Request Body schema: application/json
description | string (Description) |
g_speech_to_text | boolean (G Speech To Text) |
indexer_slow_replicas | integer (Indexer Slow Replicas) |
object (SAMLConfig) | |
title | string (Title) non-empty |
Responses
Request samples
- Payload
{- "description": "string",
- "g_speech_to_text": true,
- "indexer_slow_replicas": 0,
- "saml": {
- "domain": "string",
- "entity_id": "string",
- "sso_url": "string",
- "x509_cert": "string"
}, - "title": "string"
}
Response samples
- 200
- 422
null
Invite To Account
Invite somebody by email
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AMEMBER
AOWNER
path Parameters
account_slug required | string (Account Slug) |
Request Body schema: application/json
email required | string (Email) |
Responses
Request samples
- Payload
{- "email": "string"
}
Response samples
- 200
- 422
null
Download Account Logo
Account logo
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
AMEMBER
query Parameters
account_id required | string (Account Id) |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Upload Account Logo
Account logo
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
query Parameters
account_id required | string (Account Id) |
Request Body schema: multipart/form-data
file required | string <binary> (File) |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Get Account Permissions
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
AMEMBER
query Parameters
account_id required | string (Account Id) |
stash_id required | string (Stash Id) |
Responses
Response samples
- 200
- 422
null
Processing Stats
Retrive statistics for a knowledgebox or account
path Parameters
account_slug required | string (Account Slug) |
query Parameters
period | string (StatsPeriod) Default: "day" Enum: "day" "week" "month" "year" An enumeration. |
knowledgebox | string (Knowledgebox) |
stats | string (StatsQueryFields) Default: "searches" Enum: "processing_time" "searches" "chars" "media_seconds" "bytes" "resources" "pages" "paragraphs" "train_seconds" "suggestions" "predictions" "docs_no_media" An enumeration. |
utctime | string <date-time> (Utctime) |
Responses
Response samples
- 200
- 422
{- "data": [
- {
- "time_period": "2019-08-24T14:15:22Z",
- "stats": 0
}
]
}
List Accounts
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
Authenticated
Responses
Response samples
- 200
[- {
- "id": "string",
- "slug": "string",
- "title": "string",
- "type": "stash-basic",
- "zone": "string"
}
]
Create Account
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
Authenticated
Request Body schema: application/json
description | string (Description) |
string (Email) | |
slug required | string (Account slug) ^[a-z0-9_-]+$ Identifier to use as the account identifier in all account resources and subresources. This is a mutable field, unique, but independent of the account id |
title required | string (Title) non-empty |
zone | string (Zone) |
Responses
Request samples
- Payload
{- "description": "string",
- "email": "string",
- "slug": "string",
- "title": "string",
- "zone": "string"
}
Response samples
- 201
- 422
{- "id": "string"
}
Get Account User Details
Account user
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AMEMBER
AOWNER
path Parameters
account_slug required | string (Account Slug) |
user_id required | string (User Id) |
Responses
Response samples
- 200
- 422
{- "email": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "role": "AOWNER"
}
List Account Users
Account user
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
Responses
Response samples
- 200
- 422
[- {
- "email": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "role": "AOWNER"
}
]
Update Users
Account user modification
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
Request Body schema: application/json
Array of objects (Add) | |
delete | Array of strings (Delete) |
Responses
Request samples
- Payload
{- "add": [
- {
- "id": "string",
- "role": "AOWNER"
}
], - "delete": [
- "string"
]
}
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Search Account Users
Search account users
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
AMEMBER
path Parameters
account_slug required | string (Account Slug) |
query Parameters
query required | string (Query) |
Responses
Response samples
- 200
- 422
[- {
- "email": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "role": "AOWNER"
}
]
Delete Knowledge Box
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
kb_slug required | string (Kb Slug) |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Get Knowledge Box
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
SOWNER
SCONTRIBUTOR
SMEMBER
path Parameters
account_slug required | string (Account Slug) |
kb_slug required | string (Kb Slug) |
Responses
Response samples
- 200
- 422
{- "admin": true,
- "contrib": true,
- "description": "string",
- "id": "string",
- "slug": "string",
- "state": "PUBLISHED",
- "title": "string",
- "zone": "string"
}
Modify Knowledge Box
Modifies an existing knowledge box. The accepted values for the learning_configuration
ara dynamic and may be dependant of the account used. Accepted field values needs to be checked on the 'Learning configuration schema' endpoint
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
SOWNER
SCONTRIBUTOR
path Parameters
account_slug required | string (Account Slug) |
kb_slug required | string (Kb Slug) |
Request Body schema: application/json
anonymization | string (Anonymization) |
description | string (Description) |
object (Learning Configuration) Default: {} | |
slug | string (Slug) ^[a-z0-9_-]+$ |
state | string (StashStates) Enum: "PUBLISHED" "PRIVATE" An enumeration. |
title | string (Title) non-empty |
Responses
Request samples
- Payload
{- "anonymization": "string",
- "description": "string",
- "learning_configuration": { },
- "slug": "string",
- "state": "PUBLISHED",
- "title": "string"
}
Response samples
- 200
- 422
null
Create Ephemeral Token
Create a ephemeral token to access this knowledge box
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
SOWNER
SMEMBER
path Parameters
account_slug required | string (Account Slug) |
kb_slug required | string (Kb Slug) |
Responses
Response samples
- 201
- 422
null
Invite To Knowledge Box
Invite somebody by email
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
SCONTRIBUTOR
SOWNER
AOWNER
path Parameters
account_slug required | string (Account Slug) |
kb_slug required | string (Kb Slug) |
Request Body schema: application/json
email required | string (Email) |
role required | string (StashRoles) Enum: "SOWNER" "SMEMBER" "SCONTRIBUTOR" An enumeration. |
Responses
Request samples
- Payload
{- "email": "string",
- "role": "SOWNER"
}
Response samples
- 200
- 422
null
Download Logo
Knowledge box logo
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
SOWNER
SCONTRIBUTOR
SMEMBER
query Parameters
account_id required | string (Account Id) |
stash_id required | string (Stash Id) |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Upload Logo
Knowledge box logo
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
SOWNER
query Parameters
account_id required | string (Account Id) |
stash_id required | string (Stash Id) |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Get Knowledge Box Permissions
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
SOWNER
SCONTRIBUTOR
SMEMBER
query Parameters
account_id required | string (Account Id) |
stash_id required | string (Stash Id) |
Responses
Response samples
- 200
- 422
null
List Knowledge Boxes
List of knowledge box that user has access on this account
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
AMEMBER
path Parameters
account_slug required | string (Account Slug) |
Responses
Response samples
- 200
- 422
[- {
- "description": "string",
- "id": "string",
- "role_on_kb": "SOWNER",
- "slug": "string",
- "state": "PUBLISHED",
- "title": "string",
- "zone": "string"
}
]
Create Knowledge Box
Creates a new knowledge box. The accepted values for the learning_configuration
ara dynamic and may be dependant of the account used. Accepted field values needs to be checked on the 'Learning configuration schema' endpoint
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
Request Body schema: application/json
anonymization | string (Anonymization) |
description | string (Description) |
object (Learning Configuration) Default: {} | |
sentence_embedder | string (Sentence Embedder) |
slug required | string (Slug) ^[a-z0-9_-]+$ |
title required | string (Title) non-empty |
zone | string (Zone) |
Responses
Request samples
- Payload
{- "anonymization": "string",
- "description": "string",
- "learning_configuration": { },
- "sentence_embedder": "string",
- "slug": "string",
- "title": "string",
- "zone": "string"
}
Response samples
- 201
- 422
null
Users
Stash user
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
kb_slug required | string (Kb Slug) |
Responses
Response samples
- 200
- 422
[- {
- "email": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "role": "SOWNER"
}
]
Update Users
Assign or remove users from a Knowledgebox
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
kb_slug required | string (Kb Slug) |
Request Body schema: application/json
Array of objects (Add) | |
delete | Array of strings (Delete) |
Array of objects (Update) |
Responses
Request samples
- Payload
{- "add": [
- {
- "id": "string",
- "role": "SOWNER"
}
], - "delete": [
- "string"
], - "update": [
- {
- "id": "string",
- "role": "SOWNER"
}
]
}
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Delete Service Account
Delete a new service account for a knowledge box
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
kb_slug required | string (Kb Slug) |
sa_id required | string (Sa Id) |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Delete Service Account Key
Delete a key of a knowledge box service account
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
kb_slug required | string (Kb Slug) |
sa_id required | string (Sa Id) |
sa_key_id required | string (Sa Key Id) |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Add Service Account Key
Create a key for a service account of a knowledge box
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
kb_slug required | string (Kb Slug) |
sa_id required | string (Sa Id) |
Request Body schema: application/json
expires required | string <date-time> (Expires) |
Responses
Request samples
- Payload
{- "expires": "2019-08-24T14:15:22Z"
}
Response samples
- 201
- 422
{- "id": "string",
- "token": "string"
}
List Service Accounts
List of service accounts of this knowledge box
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
kb_slug required | string (Kb Slug) |
Responses
Response samples
- 200
- 422
[- {
- "id": "string",
- "keys": [
- {
- "created": "2019-08-24T14:15:22Z",
- "expires": "2019-08-24T14:15:22Z",
- "id": "string"
}
], - "role": "SOWNER",
- "title": "string"
}
]
Add Service Account
Create a new service account for a knowledge box
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
kb_slug required | string (Kb Slug) |
Request Body schema: application/json
role required | string (StashRoles) Enum: "SOWNER" "SMEMBER" "SCONTRIBUTOR" An enumeration. |
title required | string (Title) non-empty |
Responses
Request samples
- Payload
{- "role": "SOWNER",
- "title": "string"
}
Response samples
- 201
- 422
{- "id": "string"
}
Get Authenticated User
Information about user
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
Authenticated
Responses
Response samples
- 200
{- "avatar": "string",
- "email": "string",
- "id": "string",
- "language": "CA",
- "last_login": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "ROOT"
}
Modify User Profile
Set information about user
Request Body schema: application/json
avatar | string (Avatar) |
string (Email) | |
language | string (Languages) Enum: "CA" "ES" "EN" An enumeration. |
name | string (Name) |
Responses
Request samples
- Payload
{- "avatar": "string",
- "email": "string",
- "language": "CA",
- "name": "string"
}
Response samples
- 200
- 422
null
Welcome
Welcome information for a new user
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
Authenticated
Responses
Response samples
- 200
{- "accounts": [
- "string"
], - "can_be_deleted": true,
- "create": true,
- "dependant_accounts": [
- {
- "id": "string",
- "slug": "string"
}
], - "preferences": {
- "email": "string",
- "language": "CA",
- "last_login": "2019-08-24T14:15:22Z",
- "name": "string",
- "type": "ROOT"
}
}
Delete Nua Client By Id
Deletes an existing Nuclia Understanding API client
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
client_id required | string (Client Id) ^[a-z0-9_-]+$ |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Get Nua Client By Id
Gets the metadata of an existing Nuclia Understanding API
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
client_id required | string (Client Id) ^[a-z0-9_-]+$ |
Responses
Response samples
- 200
- 422
{- "client_id": "string",
- "contact": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "",
- "partitions": 0,
- "processing_webhook": {
- "headers": { },
- "uri": "string"
}, - "title": "string",
- "zone": "string"
}
Set Account Nua Client Key
Recreates a new session key for an existing Nuclia Understanding API client
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
client_id required | string (Client Id) ^[a-z0-9_-]+$ |
Responses
Response samples
- 201
- 422
{- "client_id": "string",
- "token": "string"
}
Get Account Nua Clients
Gets the list of Nuclia Understanding API clients of an account
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
query Parameters
client_id | string (Client Id) |
Responses
Response samples
- 200
- 422
{- "clients": [
- {
- "client_id": "string",
- "contact": "string",
- "created": "2019-08-24T14:15:22Z",
- "description": "",
- "partitions": 0,
- "processing_webhook": {
- "headers": { },
- "uri": "string"
}, - "title": "string",
- "zone": "string"
}
]
}
Create Account Nua Client
Create a new Nuclia Understanding API clients for an account
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
AOWNER
path Parameters
account_slug required | string (Account Slug) |
Request Body schema: application/json
client_id | string (Client Id) ^[a-z0-9_-]+$ |
contact required | string (Contact) |
description | string (Description) Default: "" |
object (ProcessingWebhook) | |
title required | string (Title) non-empty |
Responses
Request samples
- Payload
{- "client_id": "string",
- "contact": "string",
- "description": "",
- "processing_webhook": {
- "headers": { },
- "uri": "string"
}, - "title": "string"
}
Response samples
- 201
- 422
{- "client_id": "string",
- "token": "string"
}
List Zones
Welcome information for a new user
Authorization roles
Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a 403
response.
Authenticated
Responses
Response samples
- 200
[- {
- "id": "string",
- "slug": "string",
- "title": "string"
}
]