Request

Response

    Async Jobs
    GET

    projects/{projectId}/async-jobs/{asyncJobId}

    Retrieves the current status and result of an asynchronous job. Poll this endpoint after triggering an operation that runs asynchronously, until the job reaches a terminal state (Success (3) or Failure (4)).

    The ID of the job is returned in the response of the endpoint that triggered the async job. For example, POST custom-identifier:change-sequence-type returns an async job ID when it triggers an asynchronous operation.

    For information on how to set up custom numbering for a new project, see the Setting Up a New Project in Submittals tutorial.

    Note that this endpoint is not compatible with BIM 360 projects.

    Resource Information

    Method and URI
    GET
    https://developer.api.autodesk.com/construction/submittals/v2/projects/:projectId/async-jobs/:asyncJobId
    Authentication Context
    User context required
    Required OAuth Scopes
    data:read
    Data Format
    JSON

    Request

    Headers

    Authorization*
    string
    Must be Bearer <token>, where <token> is a three-legged access token obtained via an Authorization Code flow or a Secure Service Account (SSA) flow.

    The SSA flow is designed for headless server-to-server operations. While it functions like a two-legged flow (no user interaction), it is classified as three-legged because it preserves user context.

    * Required

    Request

    URI Parameters

    projectId
    string: UUID
    The ID of the project.

    Use the Data Management API to retrieve the project ID. For more information, see the Retrieve a Project ID tutorial. You need to convert the project ID into a project ID for the Forma API by removing the “b." prefix. For example, a project ID of b.a4be0c34a-4ab7 translates to a project ID of a4be0c34a-4ab7.

    asyncJobId
    string: UUID
    The ID of the async job. This ID is returned in the response of any endpoint that triggers an asynchronous operation. For example, POST custom-identifier:change-sequence-type.

    Response

    HTTP Status Code Summary

    200
    OK
    Successfully retrieved async job
    401
    Unauthorized
    Invalid or missing authorization header. Verify the Bearer token and try again.
    403
    Forbidden
    The user is not authorized to perform this action.
    404
    Not Found
    The specified resource was not found.
    500
    Internal Server Error
    An unexpected error occurred on the server while processing the request.

    Response

    Body Structure (200)

    id
    string: UUID
    The unique identifier (UUID) of the async job.
    createdAt
    datetime: ISO 8601
    The date and time when the async job was created, formatted as YYYY-MM-DDTHH:mm:ss.SSSSSSZ (ISO 8601) in UTC. For example, 2018-02-15T12:09:24.198466Z.
    updatedAt
    datetime: ISO 8601
    The time and date when the async job was last updated, formatted as YYYY-MM-DDTHH:mm:ss.SSSSSSZ (ISO 8601) in UTC. For example, 2018-02-15T12:09:24.198466Z.
    startedAt
    datetime: ISO 8601
    The time and date when the async job execution started, formatted as YYYY-MM-DDTHH:mm:ss.SSSSSSZ (ISO 8601) in UTC. For example, 2018-02-15T12:09:24.198466Z.
    asyncState
    enum:string
    The current state of the asynchronous job. Possible values: Pending (1), Started (2), Success (3), Failure (4).
    resultsPayload
    object
    Final response payload of the asynchronous job. Contains error details when asyncState is Failure. When asyncState is Success, the response may or may not include data, depending on the job type.

    Example

    Successfully retrieved async job

    Request

    curl -v 'https://developer.api.autodesk.com/construction/submittals/v2/projects/9eae7d59-1469-4389-bfb2-4114e2ba5545/async-jobs/668b55f2-eb00-4308-bddf-b2f2e99e6692' \
      -H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
    

    Response

    {
      "id": "d8ee6251-3a75-4eef-9d6c-973fdb91a676",
      "createdAt": "2018-02-01T12:09:24.198466Z",
      "updatedAt": "2018-02-01T12:09:24.198466Z",
      "startedAt": "2018-02-01T12:09:24.198466Z",
      "asyncState": "3",
      "resultsPayload": {}
    }
    
    Show More