curl --request POST \
--url https://api.sendx.io/api/v1/rest/post \
--header 'Content-Type: application/json' \
--header 'X-Team-ApiKey: <api-key>' \
--data '
{
"name": "launch_draft_2025",
"postTitle": "Upcoming Product Launch"
}
'{
"id": "post_XyZ123aBc456DeF789GhI",
"name": "Summer Product Launch",
"postTitle": "Introducing Our New Summer Collection",
"postDescription": "<string>",
"postCategory": "post_category_YzS1wOU20yw87UUHKxMzwn",
"member": "member_JkL012MnO345PqR678",
"postThumbnail": "<string>",
"isPublished": true,
"includedTags": [
"post_tag_123XyZ456AbC"
],
"postSlug": "introducing-summer-collection",
"status": 123,
"pageTitle": "<string>",
"pageDescription": "<string>",
"pageKeywords": "<string>",
"socialTitle": "<string>",
"socialDescription": "<string>",
"socialImageUrl": "<string>",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}Create blog post
Creates a new blog post.
curl --request POST \
--url https://api.sendx.io/api/v1/rest/post \
--header 'Content-Type: application/json' \
--header 'X-Team-ApiKey: <api-key>' \
--data '
{
"name": "launch_draft_2025",
"postTitle": "Upcoming Product Launch"
}
'{
"id": "post_XyZ123aBc456DeF789GhI",
"name": "Summer Product Launch",
"postTitle": "Introducing Our New Summer Collection",
"postDescription": "<string>",
"postCategory": "post_category_YzS1wOU20yw87UUHKxMzwn",
"member": "member_JkL012MnO345PqR678",
"postThumbnail": "<string>",
"isPublished": true,
"includedTags": [
"post_tag_123XyZ456AbC"
],
"postSlug": "introducing-summer-collection",
"status": 123,
"pageTitle": "<string>",
"pageDescription": "<string>",
"pageKeywords": "<string>",
"socialTitle": "<string>",
"socialDescription": "<string>",
"socialImageUrl": "<string>",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}isPublished: false) or published immediately (isPublished: true).
You can associate it with a category, author, thumbnail, HTML content, tags, and provide SEO/social metadata for enhanced visibility.
🎯 Key Features:
- Rich content editor
- SEO optimization
- Social media settings
- Category and tag support
- Create a Draft Post for Future Publishing Save an unpublished draft with just the title, description, and category.
- Publish a Post with Complete Metadata Include SEO tags, author, tags, and publish the post immediately.
- Save a Post with Custom Slug and Thumbnail Customize the URL and add branding visuals.
Authorizations
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
Internal post name
"Summer Product Launch"
Public post title
"Introducing Our New Summer Collection"
Post excerpt/description
Category ID (with or without prefix)
"post_category_YzS1wOU20yw87UUHKxMzwn"
Author member ID
"member_JkL012MnO345PqR678"
Thumbnail image URL
Post HTML content
Post template
Publication status
Post tag IDs
Editor type used
URL slug
"introducing-summer-collection"
Post status
SEO page title
SEO meta description
SEO keywords
Social media title
Social media description
Social media image URL
Response
✅ Post created successfully
"post_XyZ123aBc456DeF789GhI"
"Summer Product Launch"
"Introducing Our New Summer Collection"
"post_category_YzS1wOU20yw87UUHKxMzwn"
"member_JkL012MnO345PqR678"
"introducing-summer-collection"
Was this page helpful?