Skip to main content
POST
/
v1
/
labels
Create label
curl --request POST \
  --url https://{instance}.omniapp.co/api/v1/labels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Dev",
  "color": "#0366d6",
  "description": "Documents based on dev schemas"
}
'
{
  "name": "Dev",
  "verified": true,
  "homepage": true,
  "usage_count": 0,
  "color": "#0366d6",
  "description": "Documents based on dev schemas"
}

Documentation Index

Fetch the complete documentation index at: https://docs.omni.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Query Parameters

userId
string

Requires an Organization API key. Optional user ID that attributes the action to the specified user.

Body

application/json
name
string
required

Label name. Must be 2-25 characters.

Names are case-insensitive: "Production" and "production" are considered the same.

Required string length: 2 - 25
color
string

Hex color for the label

Maximum string length: 9
Example:

"#0366d6"

description
string

Description of the label

Maximum string length: 500
Example:

"Documents based on dev schemas"

verified
boolean
default:false

Requires Organization Admin permissions. If true, documents with this label will be marked as verified/curated.

homepage
boolean
default:false

Requires Organization Admin permissions. If true, documents with this label will display on the instance's Homepage.

Response

Label created successfully

A label for organizing and categorizing documents and folders

name
string

The label name (2-25 characters).

Names are case-insensitive: "Production" and "production" are considered the same.

Example:

"Production"

verified
boolean

Whether the label is verified/curated

Example:

true

homepage
boolean

Whether the label appears on the organization homepage

Example:

false

usage_count
integer

Total number of documents and folders using this label

Example:

12

color
string

Hex color for the label

Maximum string length: 9
Example:

"#0366d6"

description
string

Description of the label

Maximum string length: 500
Example:

"Documents based on dev schemas"