List sent emails
Browse the emails your company has sent through the platform — invoices, quotes, pro formas, delivery notes, payment reminders — newest first, so you can answer "did the email for this invoice actually go out?" without asking your customer. Scoped to the authenticated company.
IMPORTANT — status describes the hand-off to the OUTGOING SMTP SERVER, not real delivery: sent means the outgoing mail server accepted the message, not that the recipient received it.
In: header
Query Parameters
Delivery status to filter by (queued, sending, sent, failed). Reflects hand-off to the outgoing SMTP server, not real inbox delivery.
"queued" | "sending" | "sent" | "failed"Exact recipient address to filter by. For partial matches use search.
length <= 255UUID v7 of the related document. Accepted without related_entity_type.
uuidOptional document type that narrows the resolution of related_entity_id.
"invoice" | "quote" | "proforma" | "delivery_note" | "purchase_invoice" | "recurring_invoice"Inclusive lower bound of created_at (ISO 8601).
date-timeInclusive upper bound of created_at (ISO 8601).
date-timePartial, case-insensitive match against the subject and the recipient.
length <= 255Number of emails to return. Integer between 1 and 100. Defaults to 25. A non-integer or out-of-range value returns 400.
251 <= value <= 100Cursor 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. A malformed cursor returns 400.
^[0-9]+$Header Parameters
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.
dateOperate 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.
uuidResponse 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.emails.list({ limit: 25 })) { console.log(item.id);}{
"data": [
{
"id": "01931b3e-7c4a-7f2e-9a8b-3c5d6e7f8a9b",
"object": "email_delivery",
"recipient_email": "cliente@example.com",
"cc": [
"copia@example.com"
],
"bcc": [],
"subject": "Factura F2026-0042",
"status": "sent",
"attempts": 1,
"error_message": null,
"sent_at": "2026-07-15T09:30:12+00:00",
"failed_at": null,
"created_at": "2026-07-15T09:30:09+00:00",
"related_entity_type": "invoice",
"related_entity_id": "01931b3e-7c4a-7f2e-9a8b-3c5d6e7f8a9c"
}
],
"has_more": true,
"next_cursor": "48210"
}{
"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"
}
}