Skip to main content
POST
https://xquik.com/api/v1
/
drafts
Create Draft
curl --request POST \
  --url https://xquik.com/api/v1/drafts \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "text": "<string>",
  "topic": "<string>",
  "goal": "<string>"
}
'
This endpoint does not count against your monthly usage quota.
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

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Content-Type
string
required
Must be application/json.

Body

text
string
required
The draft tweet text. Must be non-empty.
topic
string
Topic the tweet is about. Used for composition guidance.
goal
string
Optimization goal. One of: engagement, followers, authority, conversation. Invalid values are silently ignored.

Response

id
string
Unique draft ID.
text
string
The draft tweet text.
topic
string
Topic the tweet is about. Omitted if not set.
goal
string
Optimization goal. Omitted if not set.
createdAt
string
ISO 8601 creation timestamp.
updatedAt
string
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"
}
Next steps: List Drafts to see all your drafts, Get Draft to fetch a specific draft, or Delete Draft to remove one.