Delete a tag

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

DELETE 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
Required
Type
Description

tag

String

Name of tag to be deleted

status

String

New status for the specified tag (e.g., DELETED)

Responses

chevron-right200 - Tag deleted successfullyhashtag
{
  "success": true,
  "message": "",
  "data": {
    "_id": "6912ee67c8a7cb954e0ced96",
    "_user": "5fed38e56fb193dcc6c933f5",
    "tag": "Test",
    "status": "DELETED",
    "createdAt": "2026-02-16T15:44:58.362Z",
    "updatedAt": "2026-02-16T15:45:04.951Z",
    "__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 deleted 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

deleted tag name

createdAt

String (ISO Date)

Timestamp of when the tag was created.

updatedAt

String (ISO Date)

Timestamp of when the tag was deleted.

__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