> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xshot.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Queue Grok extraction (webhook + polling)

> Queue Grok token extraction for many tweets; processed at the pool's sustainable rate (server-paced) and pushed to your webhook as each completes, with polling as fallback. mode "fast" (default, 1 question, no on-chain resolution) or "token" (2 questions, resolves address/market_cap/confidence).



## OpenAPI

````yaml /openapi-spec/xshot.yaml post /twitter/grok/extract/submit
openapi: 3.0.3
info:
  title: Xshot REST API
  version: 1.0.0
  description: >
    Twitter/X data API. Access user profiles, tweets, communities, lists,
    spaces, and trends.


    All endpoints require authentication via `api_key` query parameter,
    `x-api-key` header, or `Authorization: Bearer` header.
  contact:
    name: Xshot
    url: https://api.xshot.fun
servers:
  - url: https://api.xshot.fun
    description: Production
security:
  - ApiKeyQuery: []
  - ApiKeyHeader: []
  - BearerAuth: []
paths:
  /twitter/grok/extract/submit:
    post:
      tags:
        - Tweets
      summary: Queue Grok extraction (webhook + polling)
      description: >-
        Queue Grok token extraction for many tweets; processed at the pool's
        sustainable rate (server-paced) and pushed to your webhook as each
        completes, with polling as fallback. mode "fast" (default, 1 question,
        no on-chain resolution) or "token" (2 questions, resolves
        address/market_cap/confidence).
      operationId: submitGrokExtract
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - tweet_ids
              properties:
                tweet_ids:
                  type: array
                  items:
                    type: string
                  description: Up to 500 tweet IDs.
                mode:
                  type: string
                  enum:
                    - fast
                    - token
                    - suggest
                  description: >-
                    fast (1 question, no resolution), token (2 questions,
                    resolves on-chain), suggest (1 question — resolves the token
                    if the post is about one, else proposes tickers).
                webhook_url:
                  type: string
                  description: >-
                    Optional http(s) URL; each result is POSTed here as it
                    completes.
                webhook_secret:
                  type: string
                  description: >-
                    Optional. If set, each webhook carries x-signature =
                    "sha256=" + hex HMAC-SHA256(rawBody, webhook_secret).
                skip_null:
                  type: boolean
                  description: >-
                    Skip tweets with no token, no extracted ticker and no
                    suggestions (snipe-only feeds).
      responses:
        '200':
          description: Job accepted
          content:
            application/json:
              schema:
                type: object
                properties:
                  job_id:
                    type: string
                  count:
                    type: integer
                  mode:
                    type: string
                  webhook:
                    type: boolean
                  poll:
                    type: string
components:
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
    BearerAuth:
      type: http
      scheme: bearer

````