# Agent API (AI agents)

> Tickwire API reference, generated from the OpenAPI document the services export. Base URL: https://api.tickwire.io. Replace YOUR_API_KEY and YOUR_ACCOUNT_ID with your own values; use a sandbox key (twsk_…) to experiment.

Source: https://tickwire.io/docs/reference/agent-api/

### GET /v1/agent/accounts

**Agent Accounts**

Auth: `X-Tickwire-Agent-Key`

Accounts this key may use, by account id. Cursor-paginated:
`{accounts, has_more, next_cursor}`.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `limit` | query | `integer` | no | Page size, 1..500 (default 100). |
| `cursor` | query | `string \| null` | no | The next_cursor of the previous page, unchanged. |

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X GET 'https://api.tickwire.io/v1/agent/accounts' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "GET",
        "/v1/agent/accounts",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("GET", "/v1/agent/accounts");
console.log(result);
agent.close();
```

### GET /v1/agent/accounts/{account_id}/account-information

**Agent Account Info**

Auth: `X-Tickwire-Agent-Key`

Balance, equity, margin… as reported by the broker (same shape as `/users/current/…`).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `account_id` | path | `string` | yes |  |

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `404` [`account_not_found`](https://tickwire.io/docs/errors/account_not_found/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X GET 'https://api.tickwire.io/v1/agent/accounts/YOUR_ACCOUNT_ID/account-information' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "GET",
        "/v1/agent/accounts/YOUR_ACCOUNT_ID/account-information",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("GET", "/v1/agent/accounts/YOUR_ACCOUNT_ID/account-information");
console.log(result);
agent.close();
```

### GET /v1/agent/accounts/{account_id}/health

**Agent Health**

Auth: `X-Tickwire-Agent-Key`

Truthful health with evidence (connected / disconnected / unknown).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `account_id` | path | `string` | yes |  |

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `404` [`account_not_found`](https://tickwire.io/docs/errors/account_not_found/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X GET 'https://api.tickwire.io/v1/agent/accounts/YOUR_ACCOUNT_ID/health' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "GET",
        "/v1/agent/accounts/YOUR_ACCOUNT_ID/health",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("GET", "/v1/agent/accounts/YOUR_ACCOUNT_ID/health");
console.log(result);
agent.close();
```

### GET /v1/agent/accounts/{account_id}/history-deals

**Agent Deals**

Auth: `X-Tickwire-Agent-Key`

Deals in a bounded window (default last 24 h, max 31 days).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `account_id` | path | `string` | yes |  |
| `start_time` | query | `string \| null` | no |  |
| `end_time` | query | `string \| null` | no |  |
| `limit` | query | `integer` | no |  |

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `404` [`account_not_found`](https://tickwire.io/docs/errors/account_not_found/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X GET 'https://api.tickwire.io/v1/agent/accounts/YOUR_ACCOUNT_ID/history-deals' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "GET",
        "/v1/agent/accounts/YOUR_ACCOUNT_ID/history-deals",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("GET", "/v1/agent/accounts/YOUR_ACCOUNT_ID/history-deals");
console.log(result);
agent.close();
```

### GET /v1/agent/accounts/{account_id}/orders

**Agent Orders**

Auth: `X-Tickwire-Agent-Key`

Pending orders (same shape as `/users/current/accounts/{id}/orders`).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `account_id` | path | `string` | yes |  |

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `404` [`account_not_found`](https://tickwire.io/docs/errors/account_not_found/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X GET 'https://api.tickwire.io/v1/agent/accounts/YOUR_ACCOUNT_ID/orders' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "GET",
        "/v1/agent/accounts/YOUR_ACCOUNT_ID/orders",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("GET", "/v1/agent/accounts/YOUR_ACCOUNT_ID/orders");
console.log(result);
agent.close();
```

### GET /v1/agent/accounts/{account_id}/positions

**Agent Positions**

Auth: `X-Tickwire-Agent-Key`

Open positions (same shape as `/users/current/accounts/{id}/positions`).

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `account_id` | path | `string` | yes |  |

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `404` [`account_not_found`](https://tickwire.io/docs/errors/account_not_found/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X GET 'https://api.tickwire.io/v1/agent/accounts/YOUR_ACCOUNT_ID/positions' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "GET",
        "/v1/agent/accounts/YOUR_ACCOUNT_ID/positions",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("GET", "/v1/agent/accounts/YOUR_ACCOUNT_ID/positions");
console.log(result);
agent.close();
```

### GET /v1/agent/accounts/{account_id}/snapshot

**Agent Snapshot**

Auth: `X-Tickwire-Agent-Key`

Account information, positions, orders, health and server time in one
read, with `as_of` and per-section freshness.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `account_id` | path | `string` | yes |  |

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `404` [`account_not_found`](https://tickwire.io/docs/errors/account_not_found/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X GET 'https://api.tickwire.io/v1/agent/accounts/YOUR_ACCOUNT_ID/snapshot' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "GET",
        "/v1/agent/accounts/YOUR_ACCOUNT_ID/snapshot",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("GET", "/v1/agent/accounts/YOUR_ACCOUNT_ID/snapshot");
console.log(result);
agent.close();
```

### GET /v1/agent/accounts/{account_id}/symbols/{symbol}/current-price

**Agent Price**

Auth: `X-Tickwire-Agent-Key`

Current bid/ask with broker time.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `account_id` | path | `string` | yes |  |
| `symbol` | path | `string` | yes |  |

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `404` [`account_not_found`](https://tickwire.io/docs/errors/account_not_found/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X GET 'https://api.tickwire.io/v1/agent/accounts/YOUR_ACCOUNT_ID/symbols/EURUSD/current-price' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "GET",
        "/v1/agent/accounts/YOUR_ACCOUNT_ID/symbols/EURUSD/current-price",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("GET", "/v1/agent/accounts/YOUR_ACCOUNT_ID/symbols/EURUSD/current-price");
console.log(result);
agent.close();
```

### GET /v1/agent/accounts/{account_id}/symbols/{symbol}/specification

**Agent Spec**

Auth: `X-Tickwire-Agent-Key`

Symbol specification: volume limits and step, digits, contract size…

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `account_id` | path | `string` | yes |  |
| `symbol` | path | `string` | yes |  |

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `404` [`account_not_found`](https://tickwire.io/docs/errors/account_not_found/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X GET 'https://api.tickwire.io/v1/agent/accounts/YOUR_ACCOUNT_ID/symbols/EURUSD/specification' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "GET",
        "/v1/agent/accounts/YOUR_ACCOUNT_ID/symbols/EURUSD/specification",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("GET", "/v1/agent/accounts/YOUR_ACCOUNT_ID/symbols/EURUSD/specification");
console.log(result);
agent.close();
```

### POST /v1/agent/accounts/{account_id}/trade

**Agent Trade** · takes `Idempotency-Key`

Auth: `X-Tickwire-Agent-Key`

Place, modify, close or cancel a trade. Each trade is checked against the
key's limits, the pre-trade hooks and the kill switches before it is sent,
and is recorded in the audit trail.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `account_id` | path | `string` | yes |  |
| `Idempotency-Key` | header | `string \| null` | no |  |
| `X-Reason` | header | `string \| null` | no |  |

Request body: `any`

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `404` [`account_not_found`](https://tickwire.io/docs/errors/account_not_found/)
- `409` [`idempotency_conflict`](https://tickwire.io/docs/errors/idempotency_conflict/)
- `500, 502` [`backend_error`](https://tickwire.io/docs/errors/backend_error/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X POST 'https://api.tickwire.io/v1/agent/accounts/YOUR_ACCOUNT_ID/trade' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY' \
  -H 'Idempotency-Key: my-request-1' \
  -H 'X-Reason: why you are doing this' \
  -H 'Content-Type: application/json' \
  -d '{"actionType":"ORDER_TYPE_BUY","symbol":"EURUSD","volume":0.01}'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "POST",
        "/v1/agent/accounts/YOUR_ACCOUNT_ID/trade",
        json={"actionType": "ORDER_TYPE_BUY", "symbol": "EURUSD", "volume": 0.01},
        idempotency_key="my-request-1",
        reason="why you are doing this",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("POST", "/v1/agent/accounts/YOUR_ACCOUNT_ID/trade", {
  body: {"actionType":"ORDER_TYPE_BUY","symbol":"EURUSD","volume":0.01},
  idempotencyKey: "my-request-1",
  reason: "why you are doing this",
});
console.log(result);
agent.close();
```

### GET /v1/agent/audit

**Agent Own Audit**

Auth: `X-Tickwire-Agent-Key`

This key's own audit entries, newest first. Cursor-paginated:
`{entries, has_more, next_cursor}`.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `limit` | query | `integer` | no | Page size, 1..500 (default 50). |
| `before` | query | `integer \| null` | no |  |
| `cursor` | query | `string \| null` | no | The next_cursor of the previous page, unchanged. |

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X GET 'https://api.tickwire.io/v1/agent/audit' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "GET",
        "/v1/agent/audit",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("GET", "/v1/agent/audit");
console.log(result);
agent.close();
```

### GET /v1/agent/me

**Agent Me**

Auth: `X-Tickwire-Agent-Key`

This key's permissions, kill switches and applicable hooks.

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X GET 'https://api.tickwire.io/v1/agent/me' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "GET",
        "/v1/agent/me",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("GET", "/v1/agent/me");
console.log(result);
agent.close();
```

### GET /v1/agent/requests/{idempotency_key}

**Agent Request Status**

Auth: `X-Tickwire-Agent-Key`

What happened to the trade sent with this idempotency key.

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `idempotency_key` | path | `string` | yes |  |

Responses:

- `200` Successful Response
- `422` Validation Error (`HTTPValidationError`)

Common errors:

- `401` [`unauthorized`](https://tickwire.io/docs/errors/unauthorized/)
- `401` [`invalid_agent_key`](https://tickwire.io/docs/errors/invalid_agent_key/)
- `429` [`rate_limited`](https://tickwire.io/docs/errors/rate_limited/)
- `400, 422` [`validation_error`](https://tickwire.io/docs/errors/validation_error/)
- `403` [`kill_switch_engaged`](https://tickwire.io/docs/errors/kill_switch_engaged/)

curl:

```bash
curl -sS -X GET 'https://api.tickwire.io/v1/agent/requests/IDEMPOTENCY_KEY' \
  -H 'X-Tickwire-Agent-Key: YOUR_AGENT_KEY'
```

Python:

```python
from tickwire import AgentClient

with AgentClient("https://api.tickwire.io", "YOUR_AGENT_KEY") as agent:
    result = agent.request(
        "GET",
        "/v1/agent/requests/IDEMPOTENCY_KEY",
    )
    print(result)
```

TypeScript:

```typescript
import { AgentClient } from "@tickwire/sdk";

const agent = new AgentClient({ baseUrl: "https://api.tickwire.io", token: "YOUR_AGENT_KEY" });
const result = await agent.request("GET", "/v1/agent/requests/IDEMPOTENCY_KEY");
console.log(result);
agent.close();
```
