# Read a connection test.

> https://koi.dog/docs/api/provider-connections/get-provider-test/

`GET /api/v1/provider-connections/{id}/tests/{testId}` · Scope: `read`

## Path parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The provider connection's id. |
| `testId` | `string` | yes | The connection test's id. |

## Response.

200 OK · JSON object

## Request.

```sh
curl "https://api.koi.dog/api/v1/provider-connections/$ID/tests/$TEST_ID" \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch(`https://api.koi.dog/api/v1/provider-connections/${process.env.ID}/tests/${process.env.TEST_ID}`, {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

r = requests.get(
    f"https://api.koi.dog/api/v1/provider-connections/{os.environ['ID']}/tests/{os.environ['TEST_ID']}",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "id": "string",
  "connectionId": "string",
  "generation": 0,
  "stages": [],
  "finishedAt": "string"
}
```
