Skip to main content

Create Tag

POST/api/v1/dashboard/content/tags

Overview

Creates a new tag for the authenticated client. Tags are flat labels used to organize posts across categories. A URL slug is auto-generated from the name if not provided.

Authentication

info

Bearer authentication required - Pass your credentials as Authorization: Bearer <client_id>:<api_key>:<api_secret>.

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer <client_id>:<api_key>:<api_secret>
Content-TypestringYesapplication/json

Request Body

ParameterTypeRequiredDescription
namestringYesTag display name
slugstringNoURL-friendly slug (auto-generated from name if omitted)
descriptionstringNoOptional tag description

Response

idstring (UUID)

Unique tag identifier

namestring

Tag display name

slugstring

URL-friendly slug

descriptionstring | null

Tag description

Example Request

curl -X POST "https://spideriq.ai/api/v1/dashboard/content/tags" \
-H "Authorization: Bearer $CLIENT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Lead Generation",
"description": "Tips and strategies for generating leads at scale"
}'

Example Response

{
"id": "tag-004-uuid",
"name": "Lead Generation",
"slug": "lead-generation",
"description": "Tips and strategies for generating leads at scale"
}

Status Codes

Status CodeMeaningDescription
201CreatedTag created successfully
400Bad RequestMissing required fields
401UnauthorizedInvalid or missing Bearer token
409ConflictA tag with this slug already exists