Nuclia zone management REST API (v1)
API reference for all zone endpoints to manage kbs, nuakeys and service accounts
Get Knowledge Box
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
kb_id required | string (Kb Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
Responses
Response samples
- 200
- 422
{- "id": "string",
- "slug": "string",
- "account_id": "string",
- "zone": "string",
- "title": "string",
- "description": "string",
- "state": "PUBLISHED",
- "created": "2019-08-24T14:15:22Z",
- "admin": true,
- "contrib": true,
- "allowed_origins": [
- "string"
]
}
Delete Knowledge Box
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
kb_id required | string (Kb Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Modify Knowledge Box
Modifies an existing Knowledge Box.
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
kb_id required | string (Kb Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
Request Body schema: application/jsonrequired
slug | string (Slug) ^[a-z0-9_-]+$ |
title | string (Title) non-empty |
state | string (KbState) Enum: "PUBLISHED" "PRIVATE" An enumeration. |
description | string (Description) |
allowed_origins | Array of strings (Allowed Origins) non-empty unique |
Responses
Request samples
- Payload
{- "slug": "string",
- "title": "string",
- "state": "PUBLISHED",
- "description": "string",
- "allowed_origins": [
- "string"
]
}
Response samples
- 200
- 422
{ }
Create Ephemeral Token
Create an ephemeral token to access the Knowledge Box
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
kb_id required | string (Kb Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
Responses
Response samples
- 201
- 422
null
Download Logo
Knowledge Box logo
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
kb_id required | string (Kb Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Upload Logo
Knowledge box logo
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
kb_id required | string (Kb Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
List Knowledge Boxes
List all region Knowledge Boxes that belongs to an specific account that the authenticated user can see
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
Responses
Response samples
- 200
- 422
[- {
- "id": "string",
- "slug": "string",
- "zone": "string",
- "title": "string",
- "state": "PUBLISHED",
- "description": "string",
- "role_on_kb": "SOWNER",
- "allowed_origins": [
- "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
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
Request Body schema: application/jsonrequired
slug required | string (Slug) ^[a-z0-9_-]+$ |
title required | string (Title) non-empty |
description | string (Description) |
sentence_embedder | string (Sentence Embedder) |
anonymization | string (Anonymization) |
object (Learning Configuration) Default: {} | |
allowed_origins | Array of strings (Allowed Origins) non-empty unique |
Responses
Request samples
- Payload
{- "slug": "string",
- "title": "string",
- "description": "string",
- "sentence_embedder": "string",
- "anonymization": "string",
- "learning_configuration": { },
- "allowed_origins": [
- "string"
]
}
Response samples
- 201
- 422
{- "id": "string"
}
Invite To Knowledge Box
Invite somebody to join a Knowledge Box by email
path Parameters
account_id required | string (Account Id) |
kb_id required | string (Kb Id) |
Request Body schema: application/jsonrequired
email required | string <email> (Email) |
role required | string (KbRole) Enum: "SOWNER" "SMEMBER" "SCONTRIBUTOR" An enumeration. |
Responses
Request samples
- Payload
{- "email": "user@example.com",
- "role": "SOWNER"
}
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Delete Invite
Invalidate an invite to join a Knowledge Box
path Parameters
account_id required | string (Account Id) |
kb_id required | string (Kb Id) |
query Parameters
email required | string <email> (Email) |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Update Users
Assign or remove users from a Knowledge Box
path Parameters
account_id required | string (Account Id) |
kb_id required | string (Kb Id) |
Request Body schema: application/jsonrequired
Array of objects (Add) | |
Array of objects (Update) | |
delete | Array of strings (Delete) |
Responses
Request samples
- Payload
{- "add": [
- {
- "id": "string",
- "role": "SOWNER"
}
], - "update": [
- {
- "id": "string",
- "role": "SOWNER"
}
], - "delete": [
- "string"
]
}
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Delete Service Account
Delete a new Service Account for a Knowledge Box
path Parameters
account_id required | string (Account Id) |
kb_id required | string (Kb Id) |
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
path Parameters
account_id required | string (Account Id) |
kb_id required | string (Kb Id) |
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
path Parameters
account_id required | string (Account Id) |
kb_id required | string (Kb Id) |
sa_id required | string (Sa Id) |
Request Body schema: application/jsonrequired
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 a Knowledge Box
path Parameters
account_id required | string (Account Id) |
kb_id required | string (Kb Id) |
Responses
Response samples
- 200
- 422
[- {
- "id": "string",
- "title": "string",
- "role": "SOWNER",
- "keys": [
- {
- "id": "string",
- "created": "2019-08-24T14:15:22Z",
- "expires": "2019-08-24T14:15:22Z"
}
]
}
]
Add Service Account
Create a new Service Account for a Knowledge Box
path Parameters
account_id required | string (Account Id) |
kb_id required | string (Kb Id) |
Request Body schema: application/jsonrequired
title required | string (Title) non-empty |
role required | string (KbRole) Enum: "SOWNER" "SMEMBER" "SCONTRIBUTOR" An enumeration. |
Responses
Request samples
- Payload
{- "title": "string",
- "role": "SOWNER"
}
Response samples
- 201
- 422
{- "id": "string"
}
Get Nua Client By Id
Gets the metadata of an existing Nuclia Understanding API
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
client_id required | string (Client Id) ^[a-z0-9_-]+$ |
Responses
Response samples
- 200
- 422
{- "title": "string",
- "description": "",
- "contact": "string",
- "created": "2019-08-24T14:15:22Z",
- "partitions": 0,
- "client_id": "string",
- "account_id": "string",
- "processing_webhook": {
- "uri": "string",
- "headers": { }
}
}
Delete Nua Client By Id
Deletes an existing Nuclia Understanding API client
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
client_id required | string (Client Id) ^[a-z0-9_-]+$ |
Responses
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Set Account Nua Client Key
Recreates a new session key for an existing Nuclia Understanding API client
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
client_id required | string (Client Id) ^[a-z0-9_-]+$ |
Responses
Response samples
- 201
- 422
{- "token": "string",
- "client_id": "string"
}
Get Account Nua Clients
Gets the list of Nuclia Understanding API clients of an account
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
query Parameters
client_id | string (Client Id) |
Responses
Response samples
- 200
- 422
{- "clients": [
- {
- "title": "string",
- "description": "",
- "contact": "string",
- "created": "2019-08-24T14:15:22Z",
- "partitions": 0,
- "client_id": "string",
- "account_id": "string",
- "processing_webhook": {
- "uri": "string",
- "headers": { }
}
}
]
}
Create Account Nua Client
Create a new Nuclia Understanding API client for an account
path Parameters
account_id required | string (Account Id) ^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[08... |
Request Body schema: application/jsonrequired
contact required | string (Contact) |
title required | string (Title) non-empty |
description | string (Description) Default: "" |
client_id | string (Client Id) ^[a-z0-9_-]+$ |
object (ProcessingWebhook) | |
allow_kb_management | boolean (Allow Kb Management) Default: false |
Responses
Request samples
- Payload
{- "contact": "string",
- "title": "string",
- "description": "",
- "client_id": "string",
- "processing_webhook": {
- "uri": "string",
- "headers": { }
}, - "allow_kb_management": false
}
Response samples
- 201
- 422
{- "token": "string",
- "client_id": "string"
}