Unltd AI logo

Getting started


Create Tag

POST https://api.unltd.ai/v1/organizations/:organizationId/tags/

This endpoint creates a new Tag entity for a specific organization based on the provided information in the request body.

Request Body

name

string

The name of the tag. This is required.

color

string

The color code of the tag in HEX format.

Permissions

This request requires an authenticated user who is a member of the organization or an organization token.

API Example

const fetchApiData = async () => {
  const response = await fetch("https://api.unltd.ai/v1/organizations/example_org_id/tags/", {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer ',
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      name: 'Important',
      color: '#FF0000'
    })
  });

  const data = await response.json();
  console.log(data);
};

fetchApiData();

Response Object

201 success

The response object will be returned as a tag.
{
  "name": "Important",
  "color": "#FF0000"
}