Free — does not consume credits
curl -X POST https://xquik.com/api/v1/drafts \
-H "x-api-key: xq_YOUR_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"text": "Just shipped dark mode. What feature should we build next?",
"topic": "product update",
"goal": "conversation"
}' | jq
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Must be application/json.
Body
The draft tweet text. Must be non-empty. Maximum 25,000 characters.
Topic the tweet is about. Used for composition guidance. Maximum 500 characters (silently truncated if longer).
Optimization goal. One of: engagement, followers, authority, conversation. Invalid values are silently ignored.
Response
201 Created
400 Invalid Input
401 Unauthenticated
Topic the tweet is about. Omitted if not set.
Optimization goal. Omitted if not set.
ISO 8601 creation timestamp.
ISO 8601 last update timestamp.
{
"id": "42",
"text": "Just shipped dark mode. What feature should we build next?",
"topic": "product update",
"goal": "conversation",
"createdAt": "2026-02-24T10:30:00.000Z",
"updatedAt": "2026-02-24T10:30:00.000Z"
}
{ "error": "invalid_input" }
Missing or empty text field.{ "error": "unauthenticated" }
Missing or invalid API key.