# Testery REST API

The Testery API is a REST API.&#x20;

### Authenticate with the Testery REST API

The Testery API is a REST API that uses token-based authentication. To retrieve your token, click **Settings → Integrations → Show API Token** and copy the token that is displayed. Keep this token secure as it allows access to Testery on your behalf.

When making calls to the Testery API, pass your token in the authorization header. For example, to retrieve your list of recent test runs via curl,

```bash
curl -H 'Accept: application/json' -H 'Content-Type:application/json' \
-H 'Authorization: Bearer <yourApiToken>' \
"https://api.testery.io/api/test-runs?offset=0&limit=10"
```

Once you've confirmed you can authenticate and make a request, check out all the things you can do with [API End Points](/integrations/testery-rest-api/testery-rest-api.md).


---

# 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.testery.io/integrations/testery-rest-api.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.
