Skip to main content
POST
/
post
/
category
curl --request POST \
--url https://api.sendx.io/api/v1/rest/post/category \
--header 'Content-Type: application/json' \
--header 'X-Team-ApiKey: <api-key>' \
--data '{
"name": "Product Updates"
}'
{
"id": "post_category_YzS1wOU20yw87UUHKxMzwn",
"name": "Product Updates",
"created": "2022-05-23T11:00:00.000Z",
"updated": "2022-05-23T11:00:00.000Z"
}
🎯 Key Features:
  • Organize content
  • Hierarchical structure
  • SEO friendly

Authorizations

X-Team-ApiKey
string
header
required

Team API key for authentication. Find your API key in SendX Settings → Team API Key.

Example:

X-Team-ApiKey: your_team_api_key_here

Body

application/json
name
string
required

Category name

Example:

"Product Updates"

Response

✅ Category created successfully

id
string

Id for the post category

Example:

"post_category_YzS1wOU20yw87UUHKxMzwn"

name
string

Name for the post category

Example:

"Product Updates"

created
string<date-time>

Date and time when the post category was created

updated
string<date-time>

Date and time when the post category was last updated

I