Create a tag

The tag creation request can be used to create tag's programmatically, instead of using AI Studio's UI (User Interface).

POST https://api-v7.express-chat.com/inbox/tags

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

authtype

Key

Request Body

The request body consists of a JavaScript Object Notation (JSON) object containing the fields described in the table below. Examples of the request body can be found in the Sample Requests section.

Field
Type
Description

tag

String

Tag name (label)

status

Responses

chevron-right200 - Tag created successfullyhashtag
{
  "success": true,
  "message": "",
  "data": {
    "_user": "5fed38e56fb193dcc6c933f5",
    "tag": "Example",
    "status": "ACTIVE",
    "_id": "6912ee67c8a7cb954e0ced96",
    "createdAt": "2026-02-13T09:58:57.749Z",
    "updatedAt": "2026-02-13T09:58:57.749Z",
    "__v": 0
  },
  "code": 200
}

Response Fields

Root Level

Field
Type
Description

success

Boolean

Indicates whether the API request was successful.

data

Object

An object containing the newly created tag's details

data{} (Tag Object)

Field
Type
Description

_id

String

ID of the tag record in the system.

_user

String

ID of the user who owns the tag.

tag

String

Tag name

createdAt

String (ISO Date)

Timestamp of when the tag was created.

updatedAt

String (ISO Date)

Timestamp of when the tag was updated..

__v

Number (Integer)

Internal versioning field.

chevron-right400 - Bad Requesthashtag

The <token> being used is incorrect.

{
  "success": false,
  "message": "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters",
  "code": 400
}

chevron-right401 - Unauthorizedhashtag

Your request is missing the authtype: Key header

Sample Requests

Replace <token> in the below example requests with your valid Bearer token.

❓ Got any questions?

If you have any questions, you can look into our repository of FAQs, most likely, you will find your answer here, If not, write us at [email protected].

Last updated