Composition

Stores a private Xquik draft. It never publishes or creates native X drafts.

post/api/v1/drafts

Request

  • Base URL: https://xquik.com
  • URL: https://xquik.com/api/v1/drafts
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Request body

textstring required

Draft text, up to 25,000 characters. An emoji counts as 2.

topicstring

Optional topic, up to 25,000 characters. Xquik keeps the first 500.

goal'engagement' | 'followers' | 'authority' | 'conversation'

Example request

{
  "text": "AI is the future of productivity",
  "topic": "AI trends",
  "goal": "engagement"
}

Response

Draft created

idstring required
textstring required
topicstring
goalstring
createdAtstring date-time required
updatedAtstring date-time required
ignoredFieldsstring[]

Fields the request sent that this route does not read, in the order sent. They changed nothing. The answer leaves this out when the route read every field.

Example response

{
  "id": "42",
  "text": "Draft tweet about AI trends",
  "topic": "Technology",
  "goal": "Engagement",
  "createdAt": "2025-01-15T12:00:00Z",
  "updatedAt": "2025-01-16T09:30:00Z",
  "ignoredFields": [
    "plan"
  ]
}

Changes

    • warning

      added the new topup_in_progress enum value to the ///// response property for the response status

    • warning

      added the new topup_in_progress enum value to the ////// response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the / response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status

    • warning

      added the new topup_in_progress enum value to the // response property for the response status