---
title: "List Async Jobs"
method: GET
path: "/environments/{envId}/async-jobs"
tags: ["AsyncJobs"]
---

# List Async Jobs

`GET /environments/{envId}/async-jobs`

List Async Jobs

Get the list of AsyncJobs.

## Query parameters

- `page` integer
- `perPage` integer
- `sourceId` string, required
- `status` 'SUCCESS' | 'PENDING' | 'ERROR' | 'TIMEOUT', required — Status of the job.

## Response `200`

Page of async jobs

- object
  - `data` AsyncJob[] — List of Async Jobs.
    - `id` string — Id of the job.
    - `sourceId` string — Resource id related to this job.
    - `environmentId` string — The environment id
    - `initiatorId` string — User id who triggered this job.
    - `type` 'FEDERATED_APIS_INGESTION' | 'SCORING_REQUEST' | 'AM_USER_SYNC' — Resource id related to this job.
    - `status` 'SUCCESS' | 'PENDING' | 'ERROR' | 'TIMEOUT' — Status of the job.
    - `errorMessage` string — A message detailing why the job failed.
    - `createdAt` string, date-time — The date when the job has been created.
    - `updatedAt` string, date-time — The date when the job has been updated.
  - `pagination` Pagination — Generic object to handle pagination data.
    - `page` integer — The current page.
    - `perPage` integer — The number of items requested per page.
    - `pageCount` integer — The total number of pages.
    - `pageItemsCount` integer — The number of items for the current page.
    - `totalCount` integer — The total number of items, or `-1` if the count could not be computed within the configured timeout.
  - `links` Links — List of links for pagination
    - `self` string — Link to current resource
    - `first` string — In a paginated response, link to the first page
    - `last` string — In a paginated response, link to the last page
    - `previous` string — In a paginated response, link to the previous page. Maybe null if current is the first page
    - `next` string — In a paginated response, link to the next page. Maybe null if current is the last page

## Other responses

- `default` — Generic error response

---

[API](https://skmtc.net/gravitee-io/apis/gravitee-io-apim-management-api-apis.md) · [All operations](https://skmtc.net/gravitee-io/apis/gravitee-io-apim-management-api-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gravitee-io/gravitee-io-apim-management-api-apis/revisions/aef12fc964d5/schema)
