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

# Post v1execute

> Call an endpoint by its ID. The response and charges match the direct call.



## OpenAPI

````yaml /openapi-gateway.json post /v1/execute
openapi: 3.1.0
info:
  title: Qubrics API
  version: 1.0.0
servers:
  - url: https://api.qubrics.com
security:
  - bearerAuth: []
paths:
  /v1/execute:
    post:
      description: >-
        Call an endpoint by its ID. The response and charges match the direct
        call.
      operationId: execute
      parameters:
        - description: >-
            Reuse the same key within 24 hours to retrieve a paid call's
            previous result. After a supplier_rate_limited response, wait for
            Retry-After and use a new key to try again.
          in: header
          name: Idempotency-Key
          schema:
            maxLength: 255
            minLength: 1
            pattern: \S
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                endpoint_id:
                  description: Endpoint ID returned by search.
                  type: string
                params:
                  additionalProperties: true
                  description: Parameters for this endpoint.
                  type: object
              required:
                - endpoint_id
                - params
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ValidationResponse'
                  - $ref: '#/components/schemas/UsageResponse'
                  - $ref: '#/components/schemas/SupplierOrderResponse'
          description: Successful response.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid request parameters.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing or invalid API key.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            WWW-Authenticate:
              schema:
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '402':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentRequired'
          description: Insufficient balance or API key spend limit exceeded.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The API key lacks the required permission.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The endpoint is unavailable or does not exist.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '413':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request body is too large.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '429':
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/TeamRateLimited'
                  - $ref: '#/components/schemas/SupplierRateLimited'
          description: >-
            The team or supplier reached its request limit. The call costs $0.
            Team-limit responses also include X-RateLimit headers. After
            supplier_rate_limited, wait for Retry-After and use a new
            Idempotency-Key if the original call used one. The previous key can
            replay the same 429.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            Retry-After:
              description: Seconds to wait before retrying.
              required: true
              schema:
                minimum: 1
                type: integer
            X-RateLimit-Limit:
              description: The team's allowance for the current one-second window.
              required: false
              schema:
                minimum: 0
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              required: false
              schema:
                minimum: 0
                type: integer
            X-RateLimit-Reset:
              description: The start of the next window in Unix seconds.
              required: false
              schema:
                minimum: 0
                type: integer
            X-Request-Id:
              required: true
              schema:
                type: string
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unable to complete the request.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '502':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unable to complete the email check.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Service temporarily unavailable.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            Retry-After:
              schema:
                type: integer
            X-Request-Id:
              required: true
              schema:
                type: string
        '504':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The email check timed out.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
components:
  schemas:
    ValidationResponse:
      additionalProperties: false
      properties:
        data:
          additionalProperties: false
          properties:
            email:
              format: email
              type: string
            result:
              enum:
                - valid
                - invalid
                - catch_all
                - disposable
                - unknown
              type: string
            served_by:
              type: string
            served_by_fallback:
              type: boolean
          required:
            - email
            - result
            - served_by
            - served_by_fallback
          type: object
        meta:
          $ref: '#/components/schemas/RequestMeta'
        ok:
          const: true
          type: boolean
      required:
        - data
        - meta
        - ok
      type: object
    UsageResponse:
      additionalProperties: false
      properties:
        data:
          additionalProperties: false
          properties:
            calls:
              items:
                additionalProperties: false
                properties:
                  endpoint:
                    type: string
                  price_microdollars:
                    minimum: 0
                    type: integer
                  result_class:
                    type: string
                  served_by:
                    type: string
                  time:
                    format: date-time
                    type: string
                required:
                  - endpoint
                  - price_microdollars
                  - result_class
                  - served_by
                  - time
                type: object
              type: array
            daily_totals:
              items:
                additionalProperties: false
                properties:
                  day:
                    format: date
                    type: string
                  endpoint:
                    type: string
                  price_microdollars:
                    minimum: 0
                    type: integer
                required:
                  - day
                  - endpoint
                  - price_microdollars
                type: object
              type: array
          required:
            - calls
            - daily_totals
          type: object
        meta:
          $ref: '#/components/schemas/RequestMeta'
        ok:
          const: true
          type: boolean
        pagination:
          additionalProperties: false
          properties:
            has_more:
              type: boolean
            next_cursor:
              type:
                - string
                - 'null'
          required:
            - has_more
            - next_cursor
          type: object
      required:
        - data
        - meta
        - ok
        - pagination
      type: object
    SupplierOrderResponse:
      additionalProperties: false
      properties:
        data:
          additionalProperties: false
          properties:
            endpoint_id:
              type: string
            supplier_order:
              items:
                type: string
              type: array
          required:
            - endpoint_id
            - supplier_order
          type: object
        meta:
          $ref: '#/components/schemas/RequestMeta'
        ok:
          const: true
          type: boolean
      required:
        - data
        - meta
        - ok
      type: object
    ErrorResponse:
      additionalProperties: false
      properties:
        error:
          additionalProperties: false
          properties:
            code:
              type: string
            doc_url:
              format: uri
              type: string
            message:
              type: string
            retryable:
              type: boolean
          required:
            - code
            - doc_url
            - message
            - retryable
          type: object
        meta:
          $ref: '#/components/schemas/RequestMeta'
        ok:
          const: false
          type: boolean
      required:
        - error
        - meta
        - ok
      type: object
    PaymentRequired:
      additionalProperties: false
      properties:
        error:
          oneOf:
            - additionalProperties: false
              properties:
                amount_needed_microdollars:
                  minimum: 0
                  type: integer
                balance_microdollars:
                  type: integer
                code:
                  const: insufficient_balance
                  type: string
                doc_url:
                  format: uri
                  type: string
                message:
                  type: string
                owner_invite_url:
                  format: uri
                  type: string
                retryable:
                  type: boolean
                top_up_url:
                  format: uri
                  type: string
              required:
                - amount_needed_microdollars
                - balance_microdollars
                - code
                - doc_url
                - message
                - retryable
                - top_up_url
              type: object
            - additionalProperties: false
              properties:
                code:
                  const: key_spend_limit_exceeded
                  type: string
                doc_url:
                  format: uri
                  type: string
                limit_microdollars:
                  minimum: 0
                  type: integer
                message:
                  type: string
                resets_at:
                  format: date-time
                  type: string
                retryable:
                  type: boolean
                spent_microdollars:
                  minimum: 0
                  type: integer
              required:
                - code
                - doc_url
                - limit_microdollars
                - message
                - resets_at
                - retryable
                - spent_microdollars
              type: object
        meta:
          $ref: '#/components/schemas/RequestMeta'
        ok:
          const: false
          type: boolean
      required:
        - error
        - meta
        - ok
      type: object
    TeamRateLimited:
      additionalProperties: false
      properties:
        error:
          additionalProperties: false
          properties:
            code:
              const: rate_limit_exceeded
              type: string
            doc_url:
              format: uri
              type: string
            message:
              type: string
            retryable:
              const: true
              type: boolean
          required:
            - code
            - doc_url
            - message
            - retryable
          type: object
        meta:
          $ref: '#/components/schemas/RequestMeta'
        ok:
          const: false
          type: boolean
      required:
        - error
        - meta
        - ok
      type: object
    SupplierRateLimited:
      additionalProperties: false
      properties:
        error:
          additionalProperties: false
          properties:
            code:
              const: supplier_rate_limited
              type: string
            doc_url:
              format: uri
              type: string
            message:
              type: string
            retryable:
              const: true
              type: boolean
          required:
            - code
            - doc_url
            - message
            - retryable
          type: object
        meta:
          $ref: '#/components/schemas/RequestMeta'
        ok:
          const: false
          type: boolean
      required:
        - error
        - meta
        - ok
      type: object
    RequestMeta:
      additionalProperties: false
      properties:
        request_id:
          type: string
      required:
        - request_id
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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