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

# Submit an async explain job

> Queues a explain job and returns immediately with its `job_id`. The job runs in a sandbox; poll `GET /v2/explain/jobs/{job_id}` for its state and result. Accepts the same body as the synchronous endpoint plus an optional `job_options`.



## OpenAPI

````yaml /openapi.json post /v2/explain/async
openapi: 3.1.0
info:
  title: Nixtla Forecast API
  description: >-
    API for TimeGPT forecast. Just send your data as json and get results. We do
    the heavy lifting.
  version: 0.4.2
servers:
  - url: https://api.nixtla.io
security: []
paths:
  /v2/explain/async:
    post:
      tags:
        - async jobs
      summary: Submit an async explain job
      description: >-
        Queues a explain job and returns immediately with its `job_id`. The job
        runs in a sandbox; poll `GET /v2/explain/jobs/{job_id}` for its state
        and result. Accepts the same body as the synchronous endpoint plus an
        optional `job_options`.
      operationId: submit_async_explain_v2_explain_async_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExplainAsyncRequest'
        required: true
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncJobSubmitResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ExplainAsyncRequest:
      properties:
        series:
          $ref: '#/components/schemas/SeriesWithExogenous'
        method:
          type: string
          enum:
            - granger
            - transfer_entropy
          title: Method
          description: >-
            Model-agnostic causal analysis method used by the /v2/explain
            endpoint. Options are: 'granger' (default) and 'transfer_entropy'.
          default: granger
        job_options:
          anyOf:
            - $ref: '#/components/schemas/AsyncJobOptions'
            - type: 'null'
      type: object
      required:
        - series
      title: ExplainAsyncRequest
    AsyncJobSubmitResponse:
      properties:
        job_id:
          type: string
          title: Job Id
          description: >-
            Identifier for the accepted job. Prefixed per task (e.g. `fc-` for
            forecast).
          examples:
            - fc-4f2a1c9e8b7d4a6f9c3e1b5d7a9f2c4e
      type: object
      required:
        - job_id
      title: AsyncJobSubmitResponse
      description: >-
        The 202 every async submit returns. Shared by all tasks — they differ in
        request, not reply.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SeriesWithExogenous:
      properties:
        X:
          anyOf:
            - items:
                items:
                  anyOf:
                    - type: number
                    - type: string
                type: array
              type: array
            - type: 'null'
          title: X
          description: >-
            Historic values of the exogenous features. Each feature must be a
            list of the same size as the target (y).
        categorical_exog:
          anyOf:
            - items:
                type: integer
                minimum: 0
              type: array
            - type: 'null'
          title: Categorical Exog
          description: >-
            Zero-based indices of the columns in X that are categorical
            features.
        'y':
          items:
            type: number
          type: array
          title: 'Y'
          description: Historic values of the target.
        sizes:
          items:
            type: integer
          type: array
          title: Sizes
          description: Sizes of the individual series.
        start_datetime:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Start Datetime
          description: >-
            Starting timestamp of each individual series, as ISO 8601 strings
            (for example '2021-01-01' or '2021-01-01T09:30:00'). One entry per
            series, so it must have the same length as `sizes`. Together with
            `sizes` and `freq` this recovers the timestamps of every series.
      type: object
      required:
        - 'y'
        - sizes
      title: SeriesWithExogenous
    AsyncJobOptions:
      properties:
        timeout_seconds:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Timeout Seconds
      additionalProperties: false
      type: object
      title: AsyncJobOptions
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      description: HTTPBearer
      scheme: bearer

````