X
X (Twitter) operations
Creates a request to generate and publish a tweet or thread from various content sources. Supports immediate execution or scheduling.
Request accepted
Bad request - validation error or unauthorized access
Unauthorized - invalid or missing token
Too many requests - rate limit exceeded
Internal server error
POST /x/post HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 658
{
"type": "tweet",
"feedIds": "101,202",
"deepResearchIds": "550e8400-e29b-41d4-a716-446655440000,660e8400-e29b-41d4-a716-446655440000",
"projectIds": "123e4567-e89b-12d3-a456-426614174000,234e5678-f90a-23e4-b567-537725285111",
"audioUrl": "https://example.com/audio.mp3",
"promptAudioFile": "binary",
"url": "https://example.com/article",
"text": "Here are my thoughts on today's AI news...",
"prompt": "Make it funny and casual, use emojis",
"tweetStyle": "Paragraphs",
"count": 3,
"deepResearch": false,
"imageUrl": "https://example.com/image.jpg",
"imageFile": "binary",
"callbackData": "user-specific-data",
"isScheduled": false,
"dailyCount": 2,
"scheduleEndDate": "2024-12-31T23:59:59Z"
}{
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}Minimal input endpoint. Provide type and either queryText or queryAudioFile, optionally an image.
Whether to create a single tweet or a thread
tweetPossible values: Text query to drive the generation (required if queryAudioFile not provided)
Top 3 AI news today in an engaging toneOptional formatting style for the tweet. OneLiner for concise tweets, Paragraphs for story-style tweets, Explainer for educational content. If not specified, a random style will be selected.
ParagraphsPossible values: Number of tweets/threads to generate (default 1)
3If true, triggers deep research to gather additional context and insights before generating the tweet/thread. This enhances the content with supporting evidence, implications, and key learnings.
falseOptional audio file to upload and transcribe as the query (required if queryText not provided)
Optional image to upload and include context from
Request accepted
The unique ID of the created request
550e8400-e29b-41d4-a716-446655440000Bad request - validation error or unauthorized access
Unauthorized - invalid or missing token
Too many requests - rate limit exceeded
Internal server error
POST /x/post/quick HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 174
{
"type": "tweet",
"queryText": "Top 3 AI news today in an engaging tone",
"tweetStyle": "Paragraphs",
"count": 3,
"deepResearch": false,
"queryAudioFile": "binary",
"imageFile": "binary"
}{
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}Refines an existing tweet based on user instructions while maintaining context. Costs 1 credit. Can update the tweet text and any associated data tables or charts.
The unique ID of the tweet to refine
550e8400-e29b-41d4-a716-446655440000Instructions for how to refine the tweet
Make it more engaging and add relevant emojisURL to an audio file to transcribe and use as refinement instructions. Required if prompt is not provided.
https://example.com/refinement-audio.mp3Tweet refined successfully
trueBad request - validation error or insufficient credits
Unauthorized - invalid or missing token
Tweet not found or unauthorized
Internal server error
POST /x/refine HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 167
{
"tweetId": "550e8400-e29b-41d4-a716-446655440000",
"prompt": "Make it more engaging and add relevant emojis",
"promptAudioUrl": "https://example.com/refinement-audio.mp3"
}{
"success": true,
"post": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"requestId": "660e8400-e29b-41d4-a716-446655440000",
"result": "🚀 Just launched our new AI feature! It's revolutionizing how teams collaborate. Check it out! 💡",
"type": "tweet",
"order": 1,
"createdOn": "2024-01-15T10:35:00Z",
"tweetImageUrl": "https://cdn.example.com/user-image.jpg",
"dataTableImageUrl": "https://cdn.example.com/table-updated.png",
"barChartImageUrl": "https://cdn.example.com/chart-updated.png"
}
}Returns the list of generated X posts and threads, including visualization image URLs when available. Supports optional pagination.
Page number for pagination (starts at 1). If not provided, returns all results.
1Number of items per page (max 100, default 50 if page is specified)
20Successfully retrieved X posts
Unauthorized - invalid or missing token
Internal server error
GET /x/posts HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"posts": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"requestId": "660e8400-e29b-41d4-a716-446655440000",
"result": "text",
"type": "tweet",
"order": 0,
"createdOn": "2024-01-15T10:35:00Z",
"tweetImageUrl": "https://cdn.example.com/user-image.jpg",
"dataTableImageUrl": "https://cdn.example.com/table.png",
"barChartImageUrl": "https://cdn.example.com/chart.png",
"sources": [
{
"type": "feed-item",
"sourceId": "c0a8015c-82ff-455b-b3d5-8bfab98809c2",
"reference": "https://twitter.com/autocontentapi/status/123",
"description": "Reddit: Launch post announcing v2",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"shareUrl": "https://autocontentapi.com/share/podcast/550e8400-e29b-41d4-a716-446655440000/20240115"
}
]
}Returns a single generated tweet or thread item belonging to the authenticated user by its unique ID.
The unique ID of the post to retrieve
550e8400-e29b-41d4-a716-446655440000Successfully retrieved the X post
Unauthorized - invalid or missing token
Post not found or unauthorized
Internal server error
GET /x/posts/{id} HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"post": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"requestId": "660e8400-e29b-41d4-a716-446655440000",
"result": "Just launched our new AI feature! It's amazing.",
"type": "tweet",
"order": 0,
"createdOn": "2024-01-15T10:35:00Z",
"tweetImageUrl": "https://cdn.example.com/user-image.jpg",
"dataTableImageUrl": "https://cdn.example.com/table.png",
"barChartImageUrl": "https://cdn.example.com/chart.png"
}
}Returns all recurring tweet/thread templates for the authenticated user with their configuration and scheduling details.
Successfully retrieved recurring templates
trueUnauthorized - invalid or missing token
Internal server error
GET /x/recurring HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"templates": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "tweet",
"deletedOn": null,
"feedIds": [
101,
202
],
"deepResearchIds": [
"550e8400-e29b-41d4-a716-446655440000"
],
"projectIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"audioUrl": "https://example.com/audio.mp3",
"url": "https://example.com/article",
"text": "Breaking news about AI...",
"prompt": "Make it engaging with emojis",
"imageUrl": "https://example.com/image.jpg",
"promptAudioUrl": "https://example.com/prompt.mp3",
"queryText": "Top AI news today",
"queryAudioUrl": "https://example.com/query.mp3",
"fast": false,
"tweetStyle": "Paragraphs",
"callbackData": "user-data-123",
"dailyCount": 2,
"scheduleEndDate": "2024-12-31T23:59:59Z",
"lastRunAt": "2024-01-15T10:30:00Z",
"nextRunAt": "2024-01-15T14:30:00Z",
"createdOn": "2024-01-01T00:00:00Z"
}
]
}Updates specific fields of a recurring template. Can be used to pause/resume, change frequency, update end date, or modify prompt. Requires an active subscription, except that an expired subscription can still pause the template with isActive false.
The unique ID of the recurring template to update
550e8400-e29b-41d4-a716-446655440000New style instructions for generation
Use a more professional toneNew number of executions per day
3New end date for the recurring executions (null to remove end date)
2025-01-31T23:59:59ZSet to false to pause the recurring template, true to resume
falseFeed IDs to use as content sources (replaces existing)
[101,202]Deep research template IDs to use as content sources (replaces existing)
["550e8400-e29b-41d4-a716-446655440000"]Recurring template updated successfully
trueRecurring template updated successfullyThe updated template with all fields (same structure as GET /x/recurring response items)
Bad request - validation error or expired subscription
Unauthorized - invalid or missing token
Recurring template not found or unauthorized
Internal server error
POST /x/recurring/{id} HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 193
{
"prompt": "Use a more professional tone",
"dailyCount": 3,
"scheduleEndDate": "2025-01-31T23:59:59Z",
"isActive": false,
"feedIds": [
101,
202
],
"deepResearchIds": [
"550e8400-e29b-41d4-a716-446655440000"
]
}{
"success": true,
"message": "Recurring template updated successfully",
"template": {}
}Last updated