# API - GET on Custom Reports

<figure><img src="/files/af30b225665ffb24b5b197aa1401bf28ff64ebbb" alt=""><figcaption></figcaption></figure>

Remember to create the[ **Custom Report**](https://docs.sprinthub.com/topicos/analisar/relatorios-e-dashboards-personalizados/relatorios-videos-tutoriais/relatorios-dashboards-e-graficos-personalizados-no-sprinthub) first!

Reports are not updated constantly, so to avoid consuming all of your API calls/min, try to call GET on the report at most 3 times per day.

**Call to get report IDs:**

{% code fullWidth="false" %}

```http
GET /advancedreports?apitoken=your-api-token&i=instance
```

{% endcode %}

**Report call by ID:**

```http
GET /reportchart/{report_id}?apitoken=your-api-token&i=instance
```

**URL Parameters**

* `report_id` (required): Report ID
* `apitoken` (required): API authentication token
* `i` (required): your instance

**Headers**

```http
Content-Type: application/json
```

### Status Codes

| Code | Description     | Details                              |
| ---- | --------------- | ------------------------------------ |
| 200  | Success         | The request was successful           |
| 400  | Invalid request | Check the parameters sent            |
| 401  | Unauthorized    | Invalid or expired token             |
| 403  | Forbidden       | No permission to access the resource |
| 404  | Not found       | Requested resource does not exist    |
| 500  | Internal error  | Server error, try again later        |

### Notes

* All dates must be sent in ISO 8601 format (YYYY-MM-DD)
* The authentication token must be sent in all requests
* Request limit: check the limit of your plan.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinthub.com/en/topics/api/api-get-on-custom-reports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
