# Check an action connection

```http
POST https://trydimmi.com/api/v1/ai/action-connections/{connection}/tests
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `ai:actions`.

## Path parameters

- `connection` (string, required): Id of the action connection, starting with acn_, such as acn_01jx2m8k4t. Find it with GET /ai/action-connections.

## Body

- `path` (string): Optional path under the base url to probe, such as /health.

## Response 201 (Created)

- `data` (object, required)
  - `http_status` (integer | null, required): HTTP status the server answered the test with, such as 200. Null when no answer was received.
  - `latency_ms` (integer, required): How long the test took, in milliseconds.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `status` (string, required): How the test went: ok or error.
  - `status_reason` (string | null, required): Why the test failed, such as credentials, url_escape, auth or unreachable. Null when it passed.
  - `tools_count` (integer | null, required): How many tools the MCP server listed. Null for an http connection.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request POST \
  --url 'https://trydimmi.com/api/v1/ai/action-connections/{connection}/tests' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "path": "<string>"
}'
```

## Example response

```json
{
  "data": {
    "http_status": 123,
    "latency_ms": 123,
    "object": "<string>",
    "status": "<string>",
    "status_reason": "<string>",
    "tools_count": 123
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
