The Onna Platform API enables you to programmatically upload your data into our Knowledge Integration Platform. This unlocks the possibility to have all your data in one place and turn it into knowledge—even data we don't support directly with one of our connectors.
Before starting to use the API, we recommend to become familiar with some key concepts. For more information on the key concepts, see API basics.
To use this API, you must have an active account on an Enterprise Plan and have the Developer role assigned.
For more information, see Requirements.
This API requires that all requests are made using HTTPS and must be authenticated with a valid token.
A full list of the response codes returned by this API is available at Response codes.
This API uses semantic versioning to ensure that your client doesn't break. The version is declared in the URL so that you can lock to a specific one by prefix the URL.
When the version declared in the URL is not supported, you will receive a 400 response.
For more information, see Versioning.
This API supports dates and times in ISO 8601 format.
This API uses cursoring to divide large sets of results in multiple pages. For more information, see Pagination.
There are many ways to pass parameters when making requests to this API. For more information, see Parameters.
You can ingest various type of resources. For more information, see Resource types.
Our API uses OAuth 2's Client Credentials Grant to authenticate your requests. This grant type is especially suited for machine-to-machine (M2M) applications, such as the applications you build on top of the Onna platform.
For more information please check our detailed authentication docs.
Login
Exchange credentials for an access token.
Authorizations:
Request Body schema: application/x-www-form-urlencoded
client_id | string (Client ID) Unique client ID, generated in the Platform API app. |
client_secret | string (Client Secret) Unique client secret, generated in the Platform API app. |
grant_type | string (Grant Type) Default: "client_credentials" Use the default value. |
Responses
Request samples
- cURL
curl --request POST \ --url 'https://api.onna.com/v1/oauth/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'client_id=YOUR_CLIENT_ID' \ --data-urlencode 'client_secret=YOUR_CLIENT_SECRET' \ --data-urlencode 'grant_type=client_credentials'
Response samples
- 200
- 422
- 500
{- "access_token": "<BEARER_TOKEN>",
- "expires_in": 3599,
- "token_type": "bearer"
}
Current User
Return information about the currently authenticated user.
Authorizations:
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Response samples
- 200
- 401
- 422
- 500
{- "account_id": "foo",
- "id": "test.user@onna.com",
- "name": "Test",
- "surname": "User"
}
Workspaces are locations where you can collect data coming from different sources, organize it, and collaborate with other members of your team.
You can share workspaces with collaborators with various permission levels and roles. Permission levels are dependent on the type of expected collaboration. You can also search across an entire workspace and export the results of your searches or entire data collections.
This collection includes all the endpoints that enable you to work and collaborate inside workspaces.
List Workspaces
List workspaces.
Authorizations:
query Parameters
cursor |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl --location --request GET 'https://api.onna.com/v1/workspaces?cursor=100' \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Accept: application/json'
Response samples
- 200
- 401
- 403
- 404
- 422
- 500
{- "cursor": "string",
- "items": [
- {
- "name": "",
- "onna_id": "string"
}
]
}
Create Workspace
Create a workspace.
Authorizations:
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Request Body schema: application/json
description | string (Description) Short description of the workspace. |
name required | string (Name) Display name of the workspace. |
tags | Array of strings (Tags) <= 10000 items Labels attached to the workspace for the purpose of identification or to give meta information. |
Responses
Request samples
- Payload
- cURL
{- "description": "My personal workspace",
- "name": "My workspace",
- "tags": [
- "project-x",
- "feature"
]
}
Response samples
- 201
- 401
- 403
- 404
- 422
- 500
{- "onna_id": "ws6f0c5339de42f9964e6afe9bf20469"
}
Delete Workspace
Delete a Workspace.
Authorizations:
path Parameters
onna_id required | string (Workspace ID) Example: myworkspace-ZPM9Jf4zQ Unique ID of the workspace. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl --location --request DELETE 'https://api.onna.com/v1/workspaces/ws6f0c5339de42f9964e6afe9bf20469' \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Accept: application/json'
Response samples
- 401
- 403
- 404
- 422
- 500
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
Retrieve Workspace Info
Retrieve information related to a workspace.
Authorizations:
path Parameters
onna_id required | string (Workspace ID) Example: myworkspace-ZPM9Jf4zQ Unique ID of the workspace. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl --location --request GET 'https://api.onna.com/v1/workspaces/ws6f0c5339de42f9964e6afe9bf20469' \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Accept: application/json
Response samples
- 200
- 401
- 403
- 404
- 422
- 500
{- "description": "My personal workspace",
- "name": "My workspace",
- "onna_id": "ws6f0c5339de42f9964e6afe9bf20469",
- "tags": [
- "project-x",
- "feature"
]
}
Update Workspace
Update the workspace. For example, rename it from my-workspace
to my-new-workspace
.
Authorizations:
path Parameters
onna_id required | string (Workspace ID) Example: myworkspace-ZPM9Jf4zQ Unique ID of the workspace. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Request Body schema: application/json
description | string (Description) Short description of the workspace. |
name | string (Name) Display name of the workspace. |
tags | Array of strings (Tags) <= 10000 items Labels attached to the workspace for the purpose of identification or to give meta information. |
Responses
Request samples
- Payload
- cURL
{- "description": "My personal workspace",
- "name": "My workspace",
- "tags": [
- "project-x",
- "feature"
]
}
Response samples
- 401
- 403
- 404
- 422
- 500
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
List Workspace Custom Fields
List custom fields for a workspace.
Authorizations:
path Parameters
onna_id required | string (Workspace ID) Example: myworkspace-ZPM9Jf4zQ Unique ID of the workspace. |
query Parameters
cursor |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl ...
Response samples
- 200
- 401
- 403
- 404
- 422
- 500
{- "cursor": "string",
- "items": [
- {
- "name": "",
- "onna_id": "string"
}
]
}
Enable Workspace Custom Field
Enable custom field for a workspace.
Authorizations:
path Parameters
onna_id required | string (Workspace ID) Example: myworkspace-ZPM9Jf4zQ Unique ID of the workspace. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Request Body schema: application/json
onna_id required | string (Onna ID) Alphanumeric unique identifier of the workspace. |
Responses
Request samples
- Payload
- cURL
{- "onna_id": "cf-b20696ae9"
}
Response samples
- 401
- 403
- 404
- 422
- 500
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
Read Workspace Custom Value
Get custom field value for a workspace.
Authorizations:
path Parameters
onna_id required | string (Workspace ID) Example: myworkspace-ZPM9Jf4zQ Unique ID of the workspace. |
field_id required | string (Field ID) Example: cf-b20696ae9 Unique ID of the field. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl ...
Response samples
- 200
- 401
- 403
- 404
- 422
- 500
{- "onna_id": "cf-b20696ae9",
- "value": "My custom field value"
}
Update Workspace Custom Value
Set custom field value for a workspace.
Authorizations:
path Parameters
onna_id required | string (Workspace ID) Example: myworkspace-ZPM9Jf4zQ Unique ID of the workspace. |
field_id required | string (Field ID) Example: cf-b20696ae9 Unique ID of the field. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Request Body schema: application/json
value required | string (Value) Custom field value |
Responses
Request samples
- Payload
- cURL
{- "value": "My custom field value"
}
Response samples
- 401
- 403
- 404
- 422
- 500
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
Folders are containers for your files or other folders. A place where you can group your resources together, like in any desktop operating system.
This collection includes all the endpoints that enable you to handle folders, such as creating, retrieving, or deleting them.
Create Folder
Create a folder in a workspace.
Authorizations:
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Request Body schema: application/json
name required | string (Name) Display name of the Folder. |
onna_parent_id required | string (Parent ID) The ID of the parent Workspace or Folder. |
Responses
Request samples
- Payload
- cURL
{- "name": "My folder",
- "onna_parent_id": "b7c6f55fa54c4a3e821e825bd6262c0f"
}
Response samples
- 201
- 401
- 403
- 404
- 422
- 500
{- "onna_id": "8a8ead66ba6f4862b922a911dd67c439"
}
Delete Folder
Delete the folder. 📌 This also deletes all resources contained in it!
Authorizations:
path Parameters
onna_id required | string (ID) Unique ID of the folder. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl --request DELETE \ --url 'https://api.onna.com/v1/folders/fd9f0c5339de42f9964e6afe9bf20259' \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Accept: application/json'
Response samples
- 401
- 403
- 404
- 422
- 500
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
Retrieve Folder Info
Retrieve information related to a folder.
Authorizations:
path Parameters
onna_id required | string (ID) Unique ID of the folder. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl --request GET \ --url 'https://api.onna.com/v1/folders/fd9f0c5339de42f9964e6afe9bf20259' \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Accept: application/json' \
Response samples
- 200
- 401
- 403
- 404
- 422
- 500
{- "name": "My folder",
- "onna_id": "fd9f0c5339de42f9964e6afe9bf20259"
}
Update Folder
Update the folder. For example, rename it from My folder
to My updated folder name
.
Authorizations:
path Parameters
onna_id required | string (ID) Unique ID of the folder. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Request Body schema: application/json
name required | string (Name) Display name of the Folder. |
Responses
Request samples
- Payload
- cURL
{- "name": "My updated folder name"
}
Response samples
- 401
- 403
- 404
- 422
- 500
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
You can ingest a wide range of raw files.
Here's the details of what raw files you can view in the UI:
- Media (Audio, Video, Images)
- PDFs
- Microsoft Documents (DOC, DOCX, PPT, PPTX), rendered as PDFs
- Microsoft Spreadsheets (Worksheets rendered as tabs)
- Plain text (CSV, TXT), rendered as PDFs
- Emails (EML, MSG)
- Web pages (HTM, HTML)
- Code
For more information,please check our docs about raw-files ingestion.
Create File
Create a file resource.
Authorizations:
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Request Body schema: application/json
comment | string (Comment) Comment type of file. |
creation_date | string <date-time> (Creation Date) Date when file was created. |
creator | string (Creator) User that created the file. |
deleter | string (Deleter) User that deleted the file. |
deletion_date | string <date-time> (Deletion Date) Date when file was deleted. |
description | string (Description) File description. |
name | string (Name) File name. |
onna_parent_id required | string (Parent ID) The ID of the parent Workspace or Folder. |
path | string (Path) Path to file, at the origin. |
ref required | string (Reference) The Reference Number or ID for the file at the origin. |
share_url | string (Share URL) Link or invite to share file (at origin). |
status | string (Status) File status: Deleted, Archived, etc. |
tags | Array of strings (Tags) <= 1000 items List of tags associated to the file in the origin. |
type | string (Type) Type of file. |
update_date | string <date-time> (Update Date) Date when the file was last updated. |
updater | string (Updater) The last user to update the file. |
url required | string (URL) A Unique Resource Locator for the file at the origin. |
version | string (Version) Version. |
Responses
Request samples
- Payload
- cURL
{- "onna_parent_id": "da72de92fef04c6a9cc5cfe018fa9cd6"
}
Response samples
- 201
- 401
- 403
- 422
{- "onna_id": "string"
}
Delete File
Delete the file.
Authorizations:
path Parameters
onna_id required | string (ID) Unique ID of the file. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl --request DELETE 'https://api.onna.com/v1/resources/files/fs3f0c5339de42f9964e6afe9bf20169' \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Accept: application/json'
Response samples
- 401
- 403
- 404
- 422
- 500
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
Read File
Retrieve a file resource.
Authorizations:
path Parameters
onna_id required | string (ID) Unique ID of the file. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl --request GET 'https://api.onna.com/v1/resources/files/fs3f0c5339de42f9964e6afe9bf20169' \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Accept: application/json'
Response samples
- 201
- 401
- 403
- 404
- 422
- 500
{- "onna_parent_id": "da72de92fef04c6a9cc5cfe018fa9cd6"
}
The Ticket
resource type defines resources with which two parties communicate to track work to resolve issues
or deliver incremental value. Customer support requests, service desk tickets, or software development projects are
some examples of what can be mapped to this resource type.
Read our developer documentation to learn more about the Ticket resource type.
Create Ticket
Create a ticket resource.
Authorizations:
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Request Body schema: application/json
assignee_group | string (Assignee Group) Assignee group. |
assignees | Array of strings (Assignees) <= 1000 items List of users assigned to the ticket. |
author | string (Author) The user that created the ticket. |
category | string (Category) Category. |
Array of objects (Comments) <= 5000 items List of messages associated to the ticket. | |
creation_date | string <date-time> (Creation Date) Date when the ticket was created. |
description | string (Description) Description. |
followers | Array of strings (Followers) <= 1000 items List of users following the ticket. |
name required | string (Name) Title. |
onna_parent_id required | string (Parent ID) The ID of the parent Folder. |
priority | string (Priority) Priority: |
reactions | Array of strings (Reactions) <= 1000 items List of reactions. |
ref required | string (Reference) The Reference Number or ID for the ticket at the origin. |
requester | string (Requester) The user that requested the ticket. |
severity | string (Severity) Severity: |
status | string (Status) Ticket status: |
subcategory | string (Subcategory) Subcategory. |
tags | Array of strings (Tags) <= 1000 items List of tags associated to the ticket in the origin. |
type | string (Type) Type of ticket. |
update_date | string <date-time> (Update Date) Date when the ticket was last updated. |
updater | string (Updater) The last user to update the ticket. |
url required | string (URL) A Unique Resource Locator for the ticket at the origin. |
Responses
Request samples
- Payload
- cURL
{- "name": "CS0001401",
- "onna_parent_id": "da72de92fef04c6a9cc5cfe018fa9cd6",
- "ref": "f352dc9387632300d6b0a7da0acb0b60",
}
Response samples
- 201
- 401
- 403
- 422
- 500
{- "onna_id": "string"
}
Delete Ticket
Delete the ticket.
Authorizations:
path Parameters
onna_id required | string (ID) Unique ID of the ticket. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl --request DELETE 'https://api.onna.com/v1/resources/tickets/tk3f0c5339de42f9964e6afe9bf20358' \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Accept: application/json'
Response samples
- 401
- 403
- 404
- 422
- 500
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
Read Ticket
Retrieve a ticket resource.
Authorizations:
path Parameters
onna_id required | string (ID) Unique ID of the ticket. |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl --request GET 'https://api.onna.com/v1/resources/tickets/tk3f0c5339de42f9964e6afe9bf20358' \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Accept: application/json'
Response samples
- 200
- 401
- 403
- 404
- 422
- 500
{- "name": "CS0001401",
- "onna_parent_id": "da72de92fef04c6a9cc5cfe018fa9cd6",
- "ref": "f352dc9387632300d6b0a7da0acb0b60",
}
You can define custom resource types by defining and uploading a new schema.
A generic endpoint to upload a raw file to an existing resource (ticket, file, etc).
Our upload engine is based on the TUS protocol and treats every upload as a resumable file upload.
Check our get started guide.
Whatever the programming language you're using, it's possible that there's a library that integrates this protocol.
For more information about TUS, see the TUS documentation.
Head Resource File Resumable Upload
HEAD a resource's file, for use with the TUS protocol.
Authorizations:
path Parameters
id required | string (Id) |
header Parameters
tus-resumable | string (Tus-Resumable) The
For more information on the headers used by TUS, see "the protocol specification". |
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl -i 'https://api.onna.com/v1/upload/d3m0d3m0d3m0d3m0d3m0d3m0d3m0d3m0/tus' \ -X 'HEAD' \ -H 'Authorization: Bearer <ACCESS_TOKEN>' \ -H 'content-type: application/offset+octet-stream' \ -H 'tus-resumable: 1.0.0' \
Response samples
- 401
- 403
- 404
- 405
- 412
- 422
- 500
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
Options Resource File
TUS OPTIONS may be used to gather information about the Server's current configuration.
Authorizations:
path Parameters
id required | string (Id) |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl -i 'https://api.onna.com/v1/upload/d3m0d3m0d3m0d3m0d3m0d3m0d3m0d3m0/tus' \ -X 'OPTIONS' \ -H 'Authorization: Bearer <ACCESS_TOKEN>' \ -H 'content-type: application/offset+octet-stream' \
Response samples
- 401
- 403
- 404
- 422
- 500
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
Resume Resource File Upload
TUS PATCH applies partial modifications to a resource.
Authorizations:
path Parameters
id required | string (Id) |
header Parameters
content-length | string (Content-Length) The
For more information on headers, see "the MDN Web Docs". |
content-type | string (Content-Type) The
For more information on headers, see "the MDN Web Docs". |
upload-offset | string (Upload-Offset) The
For more information on the headers used by TUS, see "the protocol specification". |
tus-resumable | string (Tus-Resumable) The
For more information on the headers used by TUS, see "the protocol specification". |
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl 'https://api.onna.com/v1/upload/d3m0d3m0d3m0d3m0d3m0d3m0d3m0d3m0/tus' \ -X 'PATCH' \ -H 'Authorization: Bearer <ACCESS_TOKEN>' \ -H 'content-type: application/offset+octet-stream' \ -H 'tus-resumable: 1.0.0' \ -H 'upload-offset: 0' \ --data $'%PDF-1.4\v3ryl0ngstr1ng0fR4wD4t4' \ --compressed
Response samples
- 401
- 403
- 404
- 405
- 412
- 422
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
Create Resource File Resumable Upload
TUS CREATION endpoint.
The created file has the same URL as the current endpoint, since a resource can only have a single file.
Authorizations:
path Parameters
id required | string (Id) |
header Parameters
upload-defer-length | string (Upload-Defer-Length) The
For more information on the headers used by TUS, see "the protocol specification". |
upload-length | string (Upload-Length) The
For more information on the headers used by TUS, see "the protocol specification". |
upload-metadata | string (Upload-Metadata) The
For more information on the headers used by TUS, see "the protocol specification". |
tus-resumable | string (Tus-Resumable) The
For more information on the headers used by TUS, see "the protocol specification". |
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl 'https://api.onna.com/v1/upload/d3m0d3m0d3m0d3m0d3m0d3m0d3m0d3m0/tus' \ -X 'POST' \ -H 'Authorization: Bearer <ACCESS_TOKEN>' \ -H 'content-length: 0' \ -H 'tus-resumable: 1.0.0' \ -H 'upload-length: 44251' \ -H 'upload-metadata: name Q3JlYXRpdmVjb21tb25zLXdoYXQtaXMtY3JlYXRpdmUtY29tbW9uc19lbmcucGRm' \ --compressed
Response samples
- 401
- 403
- 404
- 405
- 412
- 422
- 500
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
Create Resource File Single Request
Create single request for resource file upload.
Authorizations:
path Parameters
id required | string (Id) |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl -i 'https://api.onna.com/v1/upload/d3m0d3m0d3m0d3m0d3m0d3m0d3m0d3m0/tus' \ -X 'PUT' \ -H 'Authorization: Bearer <ACCESS_TOKEN>' \ -H 'content-type: application/offset+octet-stream' \
Response samples
- 401
- 403
- 404
- 422
- 500
{- "errors": [
- {
- "code": "XX401_unauthorized",
- "id": "1bd5c180-d2c5-4bfb-9444-a3a19dd9926b",
- "status": "401"
}
]
}
Request samples
- cURL
curl --request GET \ --url 'https://api.onna.com/v1/health' \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Accept: application/json' \
Response samples
- 200
- 500
{- "release_id": "1.0.0",
- "status": "pass",
- "version": "v1"
}
List Custom Fields
List custom fields.
Authorizations:
query Parameters
cursor |
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Responses
Request samples
- cURL
curl ...
Response samples
- 200
- 401
- 403
- 404
- 422
- 500
{- "items": [
- {
- "name": "My custom field",
- "onna_id": "cf-my-custom-field-b20696ae9",
- "required": false,
- "type": "keyword",
- "usage_count": 0
}
]
}
Create Custom Field
Create a custom field.
Authorizations:
header Parameters
authorization | string (Authorization)
The Authorization header must contain a Bearer Token, for more information see "Obtaining an access token". |
Request Body schema: application/json
description required | string (Description) Description |
name required | string (Name) Name |
required required | boolean (Required) Required |
type required | string (Type) Type |
Responses
Request samples
- Payload
- cURL
{- "name": "My custom field",
- "required": false,
- "type": "keyword"
}
Response samples
- 201
- 401
- 403
- 404
- 422
- 500
{- "onna_id": "cf-my-custom-field-b20696ae9"
}