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

# Push an execution's answer

> Sends the answer an engine gave for this execution, or reports that it gave none. For the engines whose answers you supply. An execution takes one report.



## OpenAPI

````yaml https://api.mentionlab.io/api/docs/v2-json post /api/v2/projects/{projectId}/jobs/{jobId}/executions/{executionId}/answer
openapi: 3.0.0
info:
  title: MentionLab Public API v2
  description: ''
  version: 0.6.59
  contact: {}
servers:
  - url: https://api.mentionlab.io
security: []
tags: []
paths:
  /api/v2/projects/{projectId}/jobs/{jobId}/executions/{executionId}/answer:
    post:
      tags:
        - Jobs
      summary: Push an execution's answer
      description: >-
        Sends the answer an engine gave for this execution, or reports that it
        gave none. For the engines whose answers you supply. An execution takes
        one report.
      operationId: JobExecutionsV2Controller_pushAnswer_v2
      parameters:
        - name: jobId
          required: true
          in: path
          schema:
            type: string
        - name: executionId
          required: true
          in: path
          schema:
            type: string
        - name: x-project-id
          in: header
          description: Project ID to specify the project context
          required: true
          schema:
            type: string
        - name: projectId
          required: true
          in: path
          schema:
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PushAnswerV2Dto'
      responses:
        '204':
          description: The report is stored
        '400':
          description: >-
            Invalid request: a parameter or a body field is malformed or out of
            range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: The request is missing valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: >-
            The key lacks the permission, or has no access to this organisation
            or project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: No such execution in the job
        '409':
          description: >-
            NOT_A_PUSHED_ENGINE: the engine of this execution takes no pushed
            answer. EXECUTION_ALREADY_REPORTED: it has its answer, or was
            reported as failed. EXECUTION_REPORT_IN_PROGRESS: another report for
            it is being stored.
        '422':
          description: >-
            TEXT_INVALID_CHARACTER: the body holds a character that cannot be
            saved. `path` names the field.
components:
  schemas:
    PushAnswerV2Dto:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
            - failed
          description: >-
            `success` carries the answer. `failed` reports that the engine gave
            none: the execution fails and its credit is refunded.
          example: success
        text:
          type: string
          description: The answer, as the engine wrote it. Required with `success`.
          example: The best running shoes of 2026 are ...
        citations:
          maxItems: 100
          description: The pages the answer cites, in the order shown
          example:
            - url: https://www.example.com/guides/running-shoes
          type: array
          items:
            $ref: '#/components/schemas/PushedCitationV2Dto'
        listings:
          maxItems: 100
          description: The products the answer lists
          example:
            - name: Pegasus 41
              position: 1
          type: array
          items:
            $ref: '#/components/schemas/PushedListingV2Dto'
        fanOuts:
          maxItems: 100
          description: The searches the engine ran
          example:
            - phrase: best running shoes 2026
          type: array
          items:
            $ref: '#/components/schemas/PushedFanOutV2Dto'
      required:
        - status
    ApiErrorResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code of the error.
          example: 400
        message:
          type: string
          description: >-
            The error, in words; an array of field errors on a validation
            failure.
          example: Validation failed
        error:
          type: string
          description: Short name of the HTTP error.
          example: Bad Request
      required:
        - statusCode
    PushedCitationV2Dto:
      type: object
      properties:
        url:
          type: string
          description: The cited page, as the engine cites it
          example: https://www.example.com/guides/running-shoes
      required:
        - url
    PushedListingV2Dto:
      type: object
      properties:
        name:
          type: string
          description: Name of the product, as the engine shows it
          example: Pegasus 41
        position:
          type: integer
          minimum: 1
          description: Its place among the listings, from 1
          example: 1
        externalId:
          type: string
          description: The engine's own id of the product
          example: sku-48213
        imageUrl:
          type: string
          description: Image the answer shows
          example: https://www.example.com/images/pegasus-41.jpg
        price:
          type: number
          description: Price shown, in priceCurrency
          example: 899
        priceCurrency:
          type: string
          description: ISO 4217 currency of price; required with price
          example: CNY
        starRating:
          type: number
          minimum: 0
          maximum: 5
          description: Star rating shown
          example: 4.6
        reviewCount:
          type: integer
          minimum: 0
          description: Review count shown
          example: 1280
        offers:
          maxItems: 100
          description: The offers, in the order shown
          example:
            - merchantName: Tmall
              price: 899
              priceCurrency: CNY
          type: array
          items:
            $ref: '#/components/schemas/PushedOfferV2Dto'
      required:
        - name
        - position
    PushedFanOutV2Dto:
      type: object
      properties:
        phrase:
          type: string
          description: The phrase the engine searched
          example: best running shoes 2026
      required:
        - phrase
    PushedOfferV2Dto:
      type: object
      properties:
        merchantName:
          type: string
          description: Name of the merchant, as the engine shows it
          example: Tmall
        url:
          type: string
          description: Link to the offer
          example: https://www.example.com/item/123
        price:
          type: number
          description: Price of the offer, in priceCurrency
          example: 899
        priceCurrency:
          type: string
          description: ISO 4217 currency of price and shippingPrice; required with price
          example: CNY
        position:
          type: integer
          minimum: 1
          description: Its place among the offers, from 1
          example: 1
        isAboveFold:
          type: boolean
          description: Shown without expanding the offers
          example: true
        shippingPrice:
          type: number
          description: Shipping cost, 0 when free
          example: 0
        isInStock:
          type: boolean
          description: The offer reads as in stock
          example: true
        details:
          type: string
          description: Stock and delivery text as the engine shows it
          example: In stock, free delivery
      required:
        - merchantName

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.