Factuarea API
Request logs

List your API request logs

Inspect the requests your own integration has made against this API, newest first, so you can debug it without opening a support ticket: what you called, what came back, how long it took and, when a call failed, the error it returned. Scoped to the authenticated company. Rows are purged after 30 days, so this is a debugging window, not an audit trail.

GET
/developers/request-logs
AuthorizationBearer <token>

In: header

Query Parameters

method[]?array<>

HTTP methods to filter by, either comma-separated (?method=GET,POST) or repeated (?method[]=GET&method[]=POST). Allowed values: GET, POST, PUT, PATCH, DELETE. Any other value returns 422 — the filter is never silently dropped.

Value in"GET" | "POST" | "PUT" | "PATCH" | "DELETE"
status_range[]?array<>

Status code ranges to filter by, either comma-separated (?status_range=4xx,5xx) or repeated (?status_range[]=4xx&status_range[]=5xx). Allowed values: 2xx, 3xx, 4xx, 5xx. Any other value returns 422. only_errors=true is shorthand for 4xx,5xx, but an explicit status_range wins over it.

Value in"2xx" | "3xx" | "4xx" | "5xx"
only_errors?boolean

Shortcut for status_range=4xx,5xx. An explicit status_range wins over it.

api_key_prefix?string

First characters of the API key identifier that issued the request.

Lengthlength <= 64
path_search?string

Partial, case-insensitive match against the request path.

Lengthlength <= 255
created_at[gte]?string

Inclusive lower bound of created_at (ISO 8601).

Formatdate-time
created_at[lte]?string

Inclusive upper bound of created_at (ISO 8601).

Formatdate-time
environment?string

Environment of the API key that issued the request (live, test).

Value in"live" | "test"
limit?integer

Number of logs to return. Integer between 1 and 100. Defaults to 50 (wider than the rest of the v1 listings, which default to 25). A non-integer or out-of-range value returns 400.

Default50
Range1 <= value <= 100
starting_after?string

Cursor for forward pagination: pass back the next_cursor of the previous page. Treat it as opaque — unlike the rest of the v1 listings it is a numeric string, not a UUID v7, because request logs have no UUID. A malformed cursor returns 400.

Match^[0-9]+$

Header Parameters

Factuarea-Version?string

Pin the API version (YYYY-MM-DD, Stripe-style date versioning) for this request; omit to use the key's pinned version, or the latest if none. Unsupported version → 400 unsupported_api_version; malformed → 400 parameter_invalid_format. The effective version is echoed in the Factuarea-Version response header. See the Versioning guide.

Formatdate
X-Active-Profile?string

Operate on behalf of a child company (gestoría master key): pass its public id (UUID v7) and the request runs against that child's data without changing the key's scope, tier or environment (omit to use the key's own company). Invalid UUID → 400 parameter_invalid_uuid; unknown or non-owned id → 404 profile_not_found. See the Acting on behalf guide.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

import { Factuarea } from "@factuarea/sdk";const factuarea = new Factuarea({ apiKey: process.env.FACTUAREA_API_KEY! });// List endpoints return an async-iterable Page (cursors handled for you).for await (const item of await factuarea.developers.requestLogs.list({ limit: 25 })) {  console.log(item.id);}
{
  "data": [
    {
      "request_id": "req_01JQZP8K4M9N2T5V7X0Y3B6D8F",
      "object": "api_request_log",
      "api_key_prefix": "01931b3e",
      "method": "POST",
      "path": "/v1/invoices",
      "status_code": 422,
      "duration_ms": 143,
      "ip": "203.0.113.24",
      "user_agent": "factuarea-cli/0.1.3",
      "error_type": "invalid_request_error",
      "error_code": "invalid_param_value",
      "factuarea_version": "2026-06-01",
      "environment": "live",
      "created_at": "2026-07-15T09:30:12+00:00"
    }
  ],
  "has_more": true,
  "next_cursor": "184320"
}

{
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_unknown",
    "message": "El parámetro 'per_page' no está reconocido por este endpoint.",
    "param": "per_page",
    "doc_url": "https://docs.factuarea.com/guides/errors#parameter_unknown",
    "request_id": "req_01HKQS5N7UR6PWJ8K2T5BWPMZ9"
  }
}

{
  "error": {
    "type": "authentication_error",
    "code": "missing_api_key",
    "message": "No se ha proporcionado una API key válida en el header Authorization.",
    "param": null,
    "doc_url": "https://docs.factuarea.com/guides/errors#missing_api_key",
    "request_id": "req_01HKQS5N8VR7QXJ9K3T6BWPMZA"
  }
}

{
  "error": {
    "type": "authorization_error",
    "code": "insufficient_scope",
    "message": "Esta API key no tiene el scope requerido para esta operación.",
    "param": null,
    "doc_url": "https://docs.factuarea.com/guides/errors#insufficient_scope",
    "request_id": "req_01HKQS5NBC3P8M1KX4V7SLNHQD"
  }
}

{
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_invalid",
    "message": "El campo `name` es obligatorio y no puede estar vacío.",
    "param": "name",
    "doc_url": "https://docs.factuarea.com/guides/errors#parameter_invalid",
    "request_id": "req_01HKQS5NGS8Z3T6Q1D2E7FYVSI"
  }
}

{
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Has excedido el rate limit de 60 peticiones por minuto. Reintenta tras 30 segundos.",
    "param": null,
    "doc_url": "https://docs.factuarea.com/guides/errors#rate_limit_exceeded",
    "request_id": "req_01HKQS5NKW1C6W9T4G5H0JBZVL"
  }
}

{
  "error": {
    "type": "api_error",
    "code": "internal_error",
    "message": "Ha ocurrido un error inesperado. Si persiste, contacta con soporte adjuntando el request_id.",
    "param": null,
    "doc_url": "https://docs.factuarea.com/guides/errors#internal_error",
    "request_id": "req_01HKQS5NLX2D7X0U5H6J1KCAWM"
  }
}