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

# Get Report

###### Request status

The status of an asynchronous request can be checked with `task.status` in the API request result.

| <span style={{ display: 'inline-block', minWidth: '130px' }} /> | |
| - | - |
| `PENDING` | Data aggregation is in preparation. |
| `RUNNING` | Data is being aggregated. |
| `SUCCESS` | The aggregation is completed and returns the result. |
| `FAILURE` | The request has failed. |
| `CANCELED` | The request has been canceled. |

```text GET theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
https://api.airbridge.io/reports/api/v4/apps/{app_name}/active-users/query/{task_id}
```

## Request

***

### Headers

<ParamField header="Accept-Language" type="string">
  You can specify the language to use for API requests and responses. It follows the ISO-639-1 format.
</ParamField>

<ParamField header="Content-Type" type="string">
  Represents the media type of the resource. Defaults to `application/json`.
</ParamField>

<ParamField header="Authorization" type="string">
  The key value to use for API requests. Instructions for getting API keys are in "[how to generate API Keys](/en/references/introduction#authorization)".
</ParamField>

### Path Params

<ParamField path="app_name" type="string" required>
  Airbridge App Name. (Unique ID)
</ParamField>

<ParamField path="task_id" type="string" required>
  The task\_id returned by the result of the 'Request Report' API.
</ParamField>

<RequestExample>
  ```shellscript Request theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
  curl -X GET 'https://api.airbridge.io/reports/api/v4/apps/{app_name}/active-users/query/{task_id}' \
    -H 'Accept-Language: ko' \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer {AIRBRIDGE-API-TOKEN}'
  ```
</RequestExample>

## Response

***

### 200

### 200

### 404

<ResponseExample>
  ```json 200 theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
  {
    "task": {
      "status": "RUNNING",
      "taskId": "5e286bd4-b4b1-4c04-8f6a-123456789abc",
      "endedAt": "2023-01-01T09:00:00.286939+09:00"
    }
  }
  ```

  ```json 200 theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
  {
    "task": {
      "status": "SUCCESS",
      "taskId": "5e286bd4-b4b1-4c04-8f6a-670dc7ce637d",
      "endedAt": "2022-07-29T04:40:52+00:00"
    },
    "activeUsers": {
      "data": [
        {
          "rows": [
            {
              "date": "2022-07-23T00:00:00+09:00/2022-07-24T00:00:00+09:00",
              "values": {
                "app_au": 7,
                "app_pu": 0,
                "app_arpu": 0,
                "app_arppu": 0,
                "app_revenue": 0
              }
            },
            {
              "date": "2022-07-24T00:00:00+09:00/2022-07-25T00:00:00+09:00",
              "values": {
                "app_au": 8,
                "app_pu": 0,
                "app_arpu": 0,
                "app_arppu": 0,
                "app_revenue": 0
              }
            }
          ],
          "groupBys": []
        }
      ]
    }
  }
  ```

  ```json 404 theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
  {
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "traceId": "1-000000-000000000000000"
  }
  ```
</ResponseExample>


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