---
title: "Run giveaway draw"
method: POST
path: "/draws"
tags: ["Draws"]
---

# Run giveaway draw

`POST /draws`

## Request body

- object
  - `tweetUrl` string, uri, required
  - `winnerCount` integer
  - `backupCount` integer
  - `uniqueAuthorsOnly` boolean
  - `mustRetweet` boolean
  - `mustFollowUsername` string
  - `filterMinFollowers` integer
  - `filterAccountAgeDays` integer
  - `filterLanguage` string
  - `requiredHashtags` string[]
  - `requiredKeywords` string[]
  - `requiredMentions` string[]

## Response `201`

Draw completed

- object
  - `id` string, required
  - `tweetId` string, required
  - `totalEntries` integer, required
  - `validEntries` integer, required
  - `winners` Winner[], required
    - `authorUsername` string, required
    - `tweetId` string, required
    - `position` integer, required
    - `isBackup` boolean, required

## Other responses

- `400` — Invalid input
- `401` — Unauthenticated
- `402` — Payment required. Returns a WWW-Authenticate header with an MPP challenge for pay-per-use endpoints, or indicates a subscription/credit issue for identity-authenticated endpoints.
- `502` — X API unavailable, unauthorized, or rate limited

## Changes

- **2026-04-25** `2adc33156b4b` — 8 warning, 10 info
  - added the new `insufficient_credits` enum value to the `error` response property for the response status `400`
  - added the new `insufficient_credits` enum value to the `error` response property for the response status `401`
  - added the new `insufficient_credits` enum value to the `error` response property for the response status `402`
  - added the new `insufficient_credits` enum value to the `error` response property for the response status `502`
  - …14 more

[Change history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/draws/post.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api/revisions/2adc33156b4b/schema)
