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

# getTaskResult: Task Result

> Retrieves the solution for a previously created task using its task ID. Poll this endpoint until status is 'ready'.



## OpenAPI

````yaml POST /getTaskResult
openapi: 3.0.0
info:
  title: Salamoonder API
  description: Captcha solving API
  version: 1.0.0
servers:
  - url: https://salamoonder.com/api
    description: Salamoonder API server
security: []
paths:
  /getTaskResult:
    post:
      summary: Get task result
      description: >-
        Retrieves the solution for a previously created task using its task ID.
        Poll this endpoint until status is 'ready'.
      operationId: getTaskResult
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - api_key
                - taskId
              properties:
                api_key:
                  type: string
                  description: Your Salamoonder API key
                  example: sr-xxxx-xxxx-xxxx
                taskId:
                  type: string
                  description: Task ID returned from createTask
                  example: 118b941e-c035-4429-8ec3-18d5d19ccf9b
      responses:
        '200':
          description: Task result retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  errorId:
                    type: integer
                    description: Error ID (0 = success, 1 = error)
                    example: 0
                  solution:
                    type: object
                    description: >-
                      Solution data. Structure varies by task type. Contains the
                      solved captcha tokens/headers.
                    additionalProperties: true
                  status:
                    type: string
                    description: Task status. Poll until 'ready'.
                    enum:
                      - ready
                      - processing
                    example: ready
              examples:
                utmvc_ready:
                  summary: UTMVC Solution Ready
                  value:
                    errorId: 0
                    solution: <dict>
                    status: ready
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: integer
                    description: Error code
                    example: 1
                  error_description:
                    type: string
                    description: Error message
                    example: Invalid taskId

````