---
title: "Logs · Tallio API reference"
description: "Your requests to the API and the calls Tallio made to providers for you."
canonical: "https://tallio.dev/docs/api/logs"
lang: "en"
---

# Logs

Your requests to the API and the calls Tallio made to providers for you.

## List provider calls

`GET /api/v1/provider_calls`

Returns the calls Tallio made to providers for your key's mode, newest first, as metadata: what was asked, how it ended and the provider's error. Filter by document and by when the call started.

*Bearer API key*

*Query parameters*

- `limit` · `integer`
  How many items to return, 1 to 100; 10 by default.
  From 1 to 100 · Default: `10`
- `starting_after` · `string`
  An id (pcl\_…) from this list: return the items after it, older ones (pass the last id of the current page). Not with ending\_before.
  Up to 64 characters
- `ending_before` · `string`
  An id (pcl\_…) from this list: return the items before it, newer ones (pass the first id of the current page). Not with starting\_after.
  Up to 64 characters
- `document` · `string`
  Only calls about this document (doc\_…).
  Pattern: `^doc_[0-9A-Za-z]{22}$`
- `created[gte]` · `string`
  Only provider calls started at or after this moment (ISO 8601, e.g. 2026-10-11T09:30:00Z).
  Format: `date-time`
- `created[lte]` · `string`
  Only provider calls started at or before this moment (ISO 8601, e.g. 2026-10-11T09:30:00Z).
  Format: `date-time`

*Request*

*curl*

```bash
curl -X GET 'https://tallio.dev/api/v1/provider_calls' \
  -H "Authorization: Bearer $TALLIO_API_KEY"
```

*TypeScript SDK*

```ts
import { createTallioClient, unwrap } from "@tallio-dev/sdk";

const tallio = createTallioClient({
  apiKey: process.env.TALLIO_API_KEY!,
  baseUrl: "https://tallio.dev",
});

const result = await unwrap(tallio.http.GET("/api/v1/provider_calls"));
```

*Responses*

| Status | Description |
| --- | --- |
| `200` | A page of provider calls. |
| 4XX, 5XX | An error: see Errors below. |

*Response body · 200*

- `object` · `string` · required
  Always "list".
  Always `list`
- `data` · `object[]` · required
  This page's items, newest first.
  Each item: One call Tallio made to a provider on your behalf, as the provider-call log keeps it: metadata only.
  - `id` · `string` · required
    Id of the provider call (pcl\_…).
    Pattern: `^pcl_[0-9A-Za-z]{22}$`
  - `object` · `string` · required
    Always "provider\_call".
    Always `provider_call`
  - `livemode` · `boolean` · required
    True for a call made for live documents, false for test ones.
  - `provider` · `string` · required
    The licensed e-invoicing provider (a Greek provider, direct myDATA, a French plateforme agréée, Chorus Pro for a French public-sector buyer, or Tallio's sandbox) that issues the document.
    One of: `sandbox`, `mydata`, `wrapp`, `impact`, `epsilon`, `softone`, `prosvasis`, `superpdp`, `choruspro`, `b2brouter`, `oxygen`, `iopole`, `qonto`, `elorus`, `timologisi`
  - `operation` · `string` · required
    What Tallio asked the provider: issue, status (a status check), fetchPdf, lookup, verify (the connection's credentials), cancel or onboard.
    One of: `issue`, `status`, `fetchPdf`, `lookup`, `verify`, `cancel`, `onboard`
  - `purpose` · `string` · required
    operation: the operation's own exchange; auth: a login made for it, which never carries its verdict.
    One of: `operation`, `auth`
  - `outcome` · `string` · required
    How the call ended: ok, rejected (the provider refused it), transient (worth retrying), unknown (no clear answer, e.g. a timeout) or not\_supported (the provider does not offer the operation).
    One of: `ok`, `rejected`, `transient`, `unknown`, `not_supported`
  - `settled_at` · `string | null` · required
    When Tallio recorded its verdict on the call's outcome; null while the outcome is only read from the HTTP status, and always null for an auth call.
    Format: `date-time`
  - `http_status` · `integer | null` · required
    The provider's HTTP status; null when no answer came back.
    From 100 to 599
  - `duration_ms` · `integer` · required
    How long the call took.
    From 0 to 9007199254740991
  - `error` · `object | null` · required
    The provider's error, without its raw body (that is in response); null when the call succeeded. provider\_message is removed (null) when the bodies are purged.
    - `code` · `string` · required
      Stable machine-readable error code. Branch on this, never on `message`.
      One of: `validation_failed`, `unauthorized`, `not_found`, `idempotency_conflict`, `idempotency_in_progress`, `already_exists`, `invalid_grant`, `store_url_mismatch`, `invalid_state`, `already_issued`, `connection_not_disconnected`, `merchant_archived`, `cursor_not_listed`, `payload_too_large`, `unsupported_media_type`, `rate_limited`, `too_many_pending_erasures`, `forbidden`, `restricted_key`, `vendor_suspended`, `subscription_required`, `store_plan_live_only`, `store_unproven`, `not_supported`, `regime_mismatch`, `supplier_mismatch`, `connection_unavailable`, `connection_unconfirmed`, `provider_credentials_invalid`, `provider_rejected`, `balance_exceeded`, `credit_required`, `provider_unavailable`, `pdf_not_ready`, `service_unavailable`, `internal_error`
    - `message` · `string` · required
      Tallio's own explanation, safe to show to a developer; the provider's words are in provider\_message.
    - `provider_code` · `string | null` · required
      The provider's own error code, or null when the error did not come from a provider.
    - `provider_message` · `string | null` · required
      The provider's own error message, verbatim, or null when the error did not come from a provider. On a document or connection it is removed (null), like provider\_raw, once the retention window ends or by a data-subject erasure.
  - `url` · `string | null` · required
    The provider URL called, origin and path only; the query is in request.
  - `merchant` · `string` · required
    The merchant the call was made for (mer\_…).
    Pattern: `^mer_[0-9A-Za-z]{22}$`
  - `document` · `string | null` · required
    The document the call was about (doc\_…); null when none.
    Pattern: `^doc_[0-9A-Za-z]{22}$`
  - `connection` · `string | null` · required
    The connection used (con\_…); null for the sandbox.
    Pattern: `^con_[0-9A-Za-z]{22}$`
  - `started_at` · `string` · required
    When the call started.
    Format: `date-time`
- `has_more` · `boolean` · required
  Whether more items exist past this page in the direction you paged (starting\_after or ending\_before).

*Example response · 200*

```json
{
  "object": "list",
  "data": [],
  "has_more": false
}
```

*Response headers*

- `x-request-id` · `string`
  The request's correlation id; quote it when reporting a problem. One of: req\_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . \_ : -), or the hosting platform's id.
  With every response
  Pattern: `^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$`
- `ratelimit-limit` · `integer`
  Requests allowed in the current window for the bucket this request counted against.
  With 200, 400, 429 · At least 1
- `ratelimit-remaining` · `integer`
  Requests left in the current window; 0 means the next one is refused until the window resets.
  With 200, 400, 429 · At least 0
- `ratelimit-reset` · `integer`
  Seconds until the current window resets.
  With 200, 400, 429 · At least 0
- `www-authenticate` · `string`
  The bearer challenge: send a vendor secret key as `Authorization: Bearer <key>`.
  With 401 · Always `Bearer realm="tallio"`
- `retry-after` · `integer`
  Seconds to wait before retrying a request refused with 429 `rate_limited`.
  With 429 · At least 1

*Errors*

| Code | Status | Retryable | Meaning |
| --- | --- | --- | --- |
| `validation_failed` | 400 | No | Request validation failed. |
| `unauthorized` | 401 | No | Authentication is required. |
| `vendor_suspended` | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
| `restricted_key` | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
| `rate_limited` | 429 | Yes | A rate limit was reached. Retry later. |
| `internal_error` | 500 | No | An unexpected server error occurred. |

## Retrieve a provider call

`GET /api/v1/provider_calls/{id}`

Returns one provider call of your key's mode with what Tallio sent and what the provider answered, credentials removed. Past the retention window, or after a data-subject erasure, the bodies are null and bodies\_purged\_at says when.

*Bearer API key*

*Path parameters*

- `id` · `string` · required
  The provider call's id (pcl\_…).

*Request*

*curl*

```bash
curl -X GET 'https://tallio.dev/api/v1/provider_calls/pcl_02y9O8rh7F50tGi0QcWRrx' \
  -H "Authorization: Bearer $TALLIO_API_KEY"
```

*TypeScript SDK*

```ts
import { createTallioClient, unwrap } from "@tallio-dev/sdk";

const tallio = createTallioClient({
  apiKey: process.env.TALLIO_API_KEY!,
  baseUrl: "https://tallio.dev",
});

const result = await unwrap(tallio.http.GET("/api/v1/provider_calls/{id}", {
  params: {
    path: {
      id: "pcl_02y9O8rh7F50tGi0QcWRrx",
    },
  },
}));
```

*Responses*

| Status | Description |
| --- | --- |
| `200` | The provider call. |
| 4XX, 5XX | An error: see Errors below. |

*Response body · 200*

- `data` · `object` · required
  One provider call with its request and response bodies.
  - `id` · `string` · required
    Id of the provider call (pcl\_…).
    Pattern: `^pcl_[0-9A-Za-z]{22}$`
  - `object` · `string` · required
    Always "provider\_call".
    Always `provider_call`
  - `livemode` · `boolean` · required
    True for a call made for live documents, false for test ones.
  - `provider` · `string` · required
    The licensed e-invoicing provider (a Greek provider, direct myDATA, a French plateforme agréée, Chorus Pro for a French public-sector buyer, or Tallio's sandbox) that issues the document.
    One of: `sandbox`, `mydata`, `wrapp`, `impact`, `epsilon`, `softone`, `prosvasis`, `superpdp`, `choruspro`, `b2brouter`, `oxygen`, `iopole`, `qonto`, `elorus`, `timologisi`
  - `operation` · `string` · required
    What Tallio asked the provider: issue, status (a status check), fetchPdf, lookup, verify (the connection's credentials), cancel or onboard.
    One of: `issue`, `status`, `fetchPdf`, `lookup`, `verify`, `cancel`, `onboard`
  - `purpose` · `string` · required
    operation: the operation's own exchange; auth: a login made for it, which never carries its verdict.
    One of: `operation`, `auth`
  - `outcome` · `string` · required
    How the call ended: ok, rejected (the provider refused it), transient (worth retrying), unknown (no clear answer, e.g. a timeout) or not\_supported (the provider does not offer the operation).
    One of: `ok`, `rejected`, `transient`, `unknown`, `not_supported`
  - `settled_at` · `string | null` · required
    When Tallio recorded its verdict on the call's outcome; null while the outcome is only read from the HTTP status, and always null for an auth call.
    Format: `date-time`
  - `http_status` · `integer | null` · required
    The provider's HTTP status; null when no answer came back.
    From 100 to 599
  - `duration_ms` · `integer` · required
    How long the call took.
    From 0 to 9007199254740991
  - `error` · `object | null` · required
    The provider's error, without its raw body (that is in response); null when the call succeeded. provider\_message is removed (null) when the bodies are purged.
    - `code` · `string` · required
      Stable machine-readable error code. Branch on this, never on `message`.
      One of: `validation_failed`, `unauthorized`, `not_found`, `idempotency_conflict`, `idempotency_in_progress`, `already_exists`, `invalid_grant`, `store_url_mismatch`, `invalid_state`, `already_issued`, `connection_not_disconnected`, `merchant_archived`, `cursor_not_listed`, `payload_too_large`, `unsupported_media_type`, `rate_limited`, `too_many_pending_erasures`, `forbidden`, `restricted_key`, `vendor_suspended`, `subscription_required`, `store_plan_live_only`, `store_unproven`, `not_supported`, `regime_mismatch`, `supplier_mismatch`, `connection_unavailable`, `connection_unconfirmed`, `provider_credentials_invalid`, `provider_rejected`, `balance_exceeded`, `credit_required`, `provider_unavailable`, `pdf_not_ready`, `service_unavailable`, `internal_error`
    - `message` · `string` · required
      Tallio's own explanation, safe to show to a developer; the provider's words are in provider\_message.
    - `provider_code` · `string | null` · required
      The provider's own error code, or null when the error did not come from a provider.
    - `provider_message` · `string | null` · required
      The provider's own error message, verbatim, or null when the error did not come from a provider. On a document or connection it is removed (null), like provider\_raw, once the retention window ends or by a data-subject erasure.
  - `url` · `string | null` · required
    The provider URL called, origin and path only; the query is in request.
  - `merchant` · `string` · required
    The merchant the call was made for (mer\_…).
    Pattern: `^mer_[0-9A-Za-z]{22}$`
  - `document` · `string | null` · required
    The document the call was about (doc\_…); null when none.
    Pattern: `^doc_[0-9A-Za-z]{22}$`
  - `connection` · `string | null` · required
    The connection used (con\_…); null for the sandbox.
    Pattern: `^con_[0-9A-Za-z]{22}$`
  - `started_at` · `string` · required
    When the call started.
    Format: `date-time`
  - `request` · `object | null` · required
    The request Tallio sent as logged: method, full URL, headers and body, plus error when no answer came. Credentials were removed before it was stored. `body` is parsed JSON or text; a body over 64 KB is a string ending in `…[truncated: N bytes]`. When even the headers would not fit, the whole side is `{omitted: "[envelope omitted: N bytes]"}`. Null when no body was kept (an operation that logs none, or none arrived), once the bodies were purged (see bodies\_purged\_at), or when it could not be opened (see bodies\_unreadable), or always for a login exchange (see bodies\_withheld).
    - `{key}` · `any`
  - `response` · `object | null` · required
    The provider's answer as logged: status, headers and body. Credentials were removed before it was stored. `body` is parsed JSON or text; a body over 64 KB is a string ending in `…[truncated: N bytes]`. When even the headers would not fit, the whole side is `{omitted: "[envelope omitted: N bytes]"}`. Null when no body was kept (an operation that logs none, or none arrived), once the bodies were purged (see bodies\_purged\_at), or when it could not be opened (see bodies\_unreadable), or always for a login exchange (see bodies\_withheld).
    - `{key}` · `any`
  - `bodies_purged_at` · `string | null` · required
    When the bodies were removed, by the retention window or a data-subject erasure; null while they are kept.
    Format: `date-time`
  - `bodies_unreadable` · `boolean` · required
    True when a stored body could not be opened; that side is null, and Tallio logs it to look into.
  - `bodies_withheld` · `boolean` · required
    True for a login exchange with the provider (purpose auth): its bodies can hold the merchant's session, so request and response are always null.

*Example response · 200*

```json
{
  "data": {
    "id": "pcl_02y9O8rh7F50tGi0QcWRrx",
    "object": "provider_call",
    "livemode": false,
    "provider": "sandbox",
    "operation": "issue",
    "purpose": "operation",
    "outcome": "ok",
    "settled_at": "2026-10-11T09:30:00.000Z",
    "http_status": 100,
    "duration_ms": 0,
    "error": {
      "code": "validation_failed",
      "message": "string",
      "provider_code": "string",
      "provider_message": "string"
    },
    "url": "string",
    "merchant": "mer_02y9O8rh7F50tGi0QcWRrx",
    "document": "doc_02y9O8rh7F50tGi0QcWRrx",
    "connection": "con_02y9O8rh7F50tGi0QcWRrx",
    "started_at": "2026-10-11T09:30:00.000Z",
    "request": {},
    "response": {},
    "bodies_purged_at": "2026-10-11T09:30:00.000Z",
    "bodies_unreadable": false,
    "bodies_withheld": false
  }
}
```

*Response headers*

- `x-request-id` · `string`
  The request's correlation id; quote it when reporting a problem. One of: req\_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . \_ : -), or the hosting platform's id.
  With every response
  Pattern: `^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$`
- `ratelimit-limit` · `integer`
  Requests allowed in the current window for the bucket this request counted against.
  With 200, 404, 429 · At least 1
- `ratelimit-remaining` · `integer`
  Requests left in the current window; 0 means the next one is refused until the window resets.
  With 200, 404, 429 · At least 0
- `ratelimit-reset` · `integer`
  Seconds until the current window resets.
  With 200, 404, 429 · At least 0
- `www-authenticate` · `string`
  The bearer challenge: send a vendor secret key as `Authorization: Bearer <key>`.
  With 401 · Always `Bearer realm="tallio"`
- `retry-after` · `integer`
  Seconds to wait before retrying a request refused with 429 `rate_limited`.
  With 429 · At least 1

*Errors*

| Code | Status | Retryable | Meaning |
| --- | --- | --- | --- |
| `unauthorized` | 401 | No | Authentication is required. |
| `vendor_suspended` | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
| `restricted_key` | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
| `not_found` | 404 | No | The requested resource was not found. |
| `rate_limited` | 429 | Yes | A rate limit was reached. Retry later. |
| `internal_error` | 500 | No | An unexpected server error occurred. |

## List requests

`GET /api/v1/requests`

Returns the requests your key's mode made to the API, newest first, as metadata. Filter by HTTP status, operation, document, request id and creation time.

*Bearer API key*

*Query parameters*

- `limit` · `integer`
  How many items to return, 1 to 100; 10 by default.
  From 1 to 100 · Default: `10`
- `starting_after` · `string`
  An id (rql\_…) from this list: return the items after it, older ones (pass the last id of the current page). Not with ending\_before.
  Up to 64 characters
- `ending_before` · `string`
  An id (rql\_…) from this list: return the items before it, newer ones (pass the first id of the current page). Not with starting\_after.
  Up to 64 characters
- `status` · `integer`
  Only requests answered with this HTTP status, e.g. 422.
  From 100 to 599
- `operation_id` · `string`
  Only requests to this operation, by its id (e.g. createDocument); an unknown id lists nothing.
  Up to 64 characters
  Pattern: `^[A-Za-z][A-Za-z0-9]*$`
- `document` · `string`
  Only requests that answered with this document (doc\_…).
  Pattern: `^doc_[0-9A-Za-z]{22}$`
- `request_id` · `string`
  Only requests with this x-request-id.
  Pattern: `^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$`
- `created[gte]` · `string`
  Only requests created at or after this moment (ISO 8601, e.g. 2026-10-11T09:30:00Z).
  Format: `date-time`
- `created[lte]` · `string`
  Only requests created at or before this moment (ISO 8601, e.g. 2026-10-11T09:30:00Z).
  Format: `date-time`

*Request*

*curl*

```bash
curl -X GET 'https://tallio.dev/api/v1/requests' \
  -H "Authorization: Bearer $TALLIO_API_KEY"
```

*TypeScript SDK*

```ts
import { createTallioClient, unwrap } from "@tallio-dev/sdk";

const tallio = createTallioClient({
  apiKey: process.env.TALLIO_API_KEY!,
  baseUrl: "https://tallio.dev",
});

const result = await unwrap(tallio.http.GET("/api/v1/requests"));
```

*Responses*

| Status | Description |
| --- | --- |
| `200` | A page of logged requests. |
| 4XX, 5XX | An error: see Errors below. |

*Response body · 200*

- `object` · `string` · required
  Always "list".
  Always `list`
- `data` · `object[]` · required
  This page's items, newest first.
  Each item: One request your key made to the API, as the request log keeps it: metadata only.
  - `id` · `string` · required
    Id of the logged request (rql\_…).
    Pattern: `^rql_[0-9A-Za-z]{22}$`
  - `object` · `string` · required
    Always "api\_request".
    Always `api_request`
  - `request_id` · `string` · required
    The request's x-request-id. Not unique: an MCP tool call logs two requests under one id.
  - `livemode` · `boolean` · required
    True for a live key's request, false for a test key's.
  - `source` · `string` · required
    api: a call to the REST API; mcp: a tool call made through the MCP server.
    One of: `api`, `mcp`
  - `method` · `string` · required
    The HTTP method.
  - `path` · `string` · required
    The operation's route template, e.g. /api/v1/documents/{id}.
  - `operation_id` · `string | null` · required
    The operation's id, e.g. getDocument; null when none matched.
  - `status` · `integer` · required
    The HTTP status Tallio answered with.
    From 100 to 599
  - `duration_ms` · `integer` · required
    How long Tallio took to answer, until the response's headers were ready.
    From 0 to 9007199254740991
  - `idempotency_key` · `string | null` · required
    The Idempotency-Key the request carried; null if none.
  - `merchant` · `string | null` · required
    The merchant the request was about (mer\_…); null when none.
    Pattern: `^mer_[0-9A-Za-z]{22}$`
  - `document` · `string | null` · required
    The document the request answered with (doc\_…); null when none.
    Pattern: `^doc_[0-9A-Za-z]{22}$`
  - `created` · `string` · required
    When the request arrived.
    Format: `date-time`
- `has_more` · `boolean` · required
  Whether more items exist past this page in the direction you paged (starting\_after or ending\_before).

*Example response · 200*

```json
{
  "object": "list",
  "data": [],
  "has_more": false
}
```

*Response headers*

- `x-request-id` · `string`
  The request's correlation id; quote it when reporting a problem. One of: req\_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . \_ : -), or the hosting platform's id.
  With every response
  Pattern: `^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$`
- `ratelimit-limit` · `integer`
  Requests allowed in the current window for the bucket this request counted against.
  With 200, 400, 429 · At least 1
- `ratelimit-remaining` · `integer`
  Requests left in the current window; 0 means the next one is refused until the window resets.
  With 200, 400, 429 · At least 0
- `ratelimit-reset` · `integer`
  Seconds until the current window resets.
  With 200, 400, 429 · At least 0
- `www-authenticate` · `string`
  The bearer challenge: send a vendor secret key as `Authorization: Bearer <key>`.
  With 401 · Always `Bearer realm="tallio"`
- `retry-after` · `integer`
  Seconds to wait before retrying a request refused with 429 `rate_limited`.
  With 429 · At least 1

*Errors*

| Code | Status | Retryable | Meaning |
| --- | --- | --- | --- |
| `validation_failed` | 400 | No | Request validation failed. |
| `unauthorized` | 401 | No | Authentication is required. |
| `vendor_suspended` | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
| `restricted_key` | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
| `rate_limited` | 429 | Yes | A rate limit was reached. Retry later. |
| `internal_error` | 500 | No | An unexpected server error occurred. |

## Retrieve a request

`GET /api/v1/requests/{id}`

Returns one logged request of your key's mode with its request and response bodies, credentials removed. Past the retention window, or after a data-subject erasure, the bodies are null and bodies\_purged\_at says when.

*Bearer API key*

*Path parameters*

- `id` · `string` · required
  The logged request's id (rql\_…).

*Request*

*curl*

```bash
curl -X GET 'https://tallio.dev/api/v1/requests/rql_02y9O8rh7F50tGi0QcWRrx' \
  -H "Authorization: Bearer $TALLIO_API_KEY"
```

*TypeScript SDK*

```ts
import { createTallioClient, unwrap } from "@tallio-dev/sdk";

const tallio = createTallioClient({
  apiKey: process.env.TALLIO_API_KEY!,
  baseUrl: "https://tallio.dev",
});

const result = await unwrap(tallio.http.GET("/api/v1/requests/{id}", {
  params: {
    path: {
      id: "rql_02y9O8rh7F50tGi0QcWRrx",
    },
  },
}));
```

*Responses*

| Status | Description |
| --- | --- |
| `200` | The logged request. |
| 4XX, 5XX | An error: see Errors below. |

*Response body · 200*

- `data` · `object` · required
  One logged request with its request and response bodies.
  - `id` · `string` · required
    Id of the logged request (rql\_…).
    Pattern: `^rql_[0-9A-Za-z]{22}$`
  - `object` · `string` · required
    Always "api\_request".
    Always `api_request`
  - `request_id` · `string` · required
    The request's x-request-id. Not unique: an MCP tool call logs two requests under one id.
  - `livemode` · `boolean` · required
    True for a live key's request, false for a test key's.
  - `source` · `string` · required
    api: a call to the REST API; mcp: a tool call made through the MCP server.
    One of: `api`, `mcp`
  - `method` · `string` · required
    The HTTP method.
  - `path` · `string` · required
    The operation's route template, e.g. /api/v1/documents/{id}.
  - `operation_id` · `string | null` · required
    The operation's id, e.g. getDocument; null when none matched.
  - `status` · `integer` · required
    The HTTP status Tallio answered with.
    From 100 to 599
  - `duration_ms` · `integer` · required
    How long Tallio took to answer, until the response's headers were ready.
    From 0 to 9007199254740991
  - `idempotency_key` · `string | null` · required
    The Idempotency-Key the request carried; null if none.
  - `merchant` · `string | null` · required
    The merchant the request was about (mer\_…); null when none.
    Pattern: `^mer_[0-9A-Za-z]{22}$`
  - `document` · `string | null` · required
    The document the request answered with (doc\_…); null when none.
    Pattern: `^doc_[0-9A-Za-z]{22}$`
  - `created` · `string` · required
    When the request arrived.
    Format: `date-time`
  - `request` · `object | null` · required
    The request as logged: method, path with its query, headers and body. Credentials were removed before it was stored. `body` is parsed JSON or text; a body over 64 KB is a string ending in `…[truncated: N bytes]`. When even the headers would not fit, the whole side is `{omitted: "[envelope omitted: N bytes]"}`. Null when no body was kept (an operation that logs none, or none arrived), once the bodies were purged (see bodies\_purged\_at), or when it could not be opened (see bodies\_unreadable).
    - `{key}` · `any`
  - `response` · `object | null` · required
    The response as logged: status, headers and body. Credentials were removed before it was stored. `body` is parsed JSON or text; a body over 64 KB is a string ending in `…[truncated: N bytes]`. When even the headers would not fit, the whole side is `{omitted: "[envelope omitted: N bytes]"}`. Null when no body was kept (an operation that logs none, or none arrived), once the bodies were purged (see bodies\_purged\_at), or when it could not be opened (see bodies\_unreadable).
    - `{key}` · `any`
  - `bodies_purged_at` · `string | null` · required
    When the bodies were removed, by the retention window or a data-subject erasure; null while they are kept.
    Format: `date-time`
  - `bodies_unreadable` · `boolean` · required
    True when a stored body could not be opened; that side is null, and Tallio logs it to look into.

*Example response · 200*

```json
{
  "data": {
    "id": "rql_02y9O8rh7F50tGi0QcWRrx",
    "object": "api_request",
    "request_id": "req_0192f4c1-7a40-7c42-9b1d-4e5f6a7b8c9d",
    "livemode": false,
    "source": "api",
    "method": "string",
    "path": "string",
    "operation_id": "string",
    "status": 100,
    "duration_ms": 0,
    "idempotency_key": "string",
    "merchant": "mer_02y9O8rh7F50tGi0QcWRrx",
    "document": "doc_02y9O8rh7F50tGi0QcWRrx",
    "created": "2026-10-11T09:30:00.000Z",
    "request": {},
    "response": {},
    "bodies_purged_at": "2026-10-11T09:30:00.000Z",
    "bodies_unreadable": false
  }
}
```

*Response headers*

- `x-request-id` · `string`
  The request's correlation id; quote it when reporting a problem. One of: req\_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . \_ : -), or the hosting platform's id.
  With every response
  Pattern: `^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$`
- `ratelimit-limit` · `integer`
  Requests allowed in the current window for the bucket this request counted against.
  With 200, 404, 429 · At least 1
- `ratelimit-remaining` · `integer`
  Requests left in the current window; 0 means the next one is refused until the window resets.
  With 200, 404, 429 · At least 0
- `ratelimit-reset` · `integer`
  Seconds until the current window resets.
  With 200, 404, 429 · At least 0
- `www-authenticate` · `string`
  The bearer challenge: send a vendor secret key as `Authorization: Bearer <key>`.
  With 401 · Always `Bearer realm="tallio"`
- `retry-after` · `integer`
  Seconds to wait before retrying a request refused with 429 `rate_limited`.
  With 429 · At least 1

*Errors*

| Code | Status | Retryable | Meaning |
| --- | --- | --- | --- |
| `unauthorized` | 401 | No | Authentication is required. |
| `vendor_suspended` | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
| `restricted_key` | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
| `not_found` | 404 | No | The requested resource was not found. |
| `rate_limited` | 429 | Yes | A rate limit was reached. Retry later. |
| `internal_error` | 500 | No | An unexpected server error occurred. |
