API → API CallsList async operations
hidden

Parameters

Name

Type

Req.

  • limit

    integer
    optional
  • page_token

    string
    optional
  • sort_by

    string
    required
    Possible values
    • created_at_ascending:  Sort in increasing order of "created_at".
    • created_at_descending:  Sort in decreasing order of "created_at".
  • status

    string
    required
    Possible values
    • queued:  The async API call is queued.
    • uploaded:  The async API call was uploaded to be converted.
    • in_progress:  The async API call is in progress.
    • completed:  The async API call has completed.
    • failed:  The async API call has failed.

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • items

      array
      optional
      Array of
      • completed_at

        string / ISO-8601
        optional
      • created_at

        string / ISO-8601
        optional
      • error

        string
        optional
      • id

        string / UUID
        optional
      • input

        optional
      • output

        optional
      • started_at

        string / ISO-8601
        optional
      • status

        string
        optional
        Possible values
        • queued:  The async API call is queued.
        • uploaded:  The async API call was uploaded to be converted.
        • in_progress:  The async API call is in progress.
        • completed:  The async API call has completed.
        • failed:  The async API call has failed.
      • type

        string
        optional
        Possible values
        • file_conversion:  File conversion.
        • file_volume:  File volume.
        • file_center_of_mass:  File center of mass.
        • file_mass:  File mass.
        • file_density:  File density.
        • file_surface_area:  File surface area.
        • text_to_cad:  Text to CAD.
      • updated_at

        string / ISO-8601
        optional
      • user_id

        string / UUID
        optional
      • worker

        string
        optional
    • next_page

      string
      optional
get
/async/operations
$ curl "https://api.zoo.dev/async/operations" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "items": [
    {
      "completed_at": "2024-04-29T19:58:23.472Z",
      "created_at": "2024-04-29T19:58:23.472Z",
      "error": "hgSg2J3xPWMTAvWTSpmcxyiSdKiZ",
      "id": "0ca1531a-ac9b-4e55-bff6-2ec246d5cc1d",
      "input": "{}",
      "output": "{}",
      "started_at": "2024-04-29T19:58:23.473Z",
      "status": "failed",
      "type": "file_center_of_mass",
      "updated_at": "2024-04-29T19:58:23.473Z",
      "user_id": "550908b9-1249-4b96-a0ad-5bbe9dde4395",
      "worker": "WPVfuf6GvdhG6a7oMb"
    }
  ],
  "next_page": "wWmdK"
}