ReconSmiths Developers Your API keys

Reference

Outbox

Documents ReconSmiths prepared for your system to send.

This page as plain text: outbox.md

GET/v1/outbox

What is waiting for you to send

For a company whose sending mode is HANDBACK: its invoices are raised in your system, so they go out from your domain, which is the one its customers already know. ReconSmith picks the template, writes the subject and body in the customer's own language and renders the PDF; you send it. Poll this.

Parameters

NameInRequiredWhat it is
sourceSystemqueryYour system's name, the same on every call (for example shop). Identifies your references.
limitquery
includeCollectedqueryAlso return ones you have already marked collected but not yet sent.

Answers

200count, messages: [{ messageId, kind, to, cc, bcc, subject, body, language, attachmentName, documentRef, customerRef, customer, status, createdAt, attachment }]. attachment is the path to fetch the PDF from; it is not inlined, because it is often several hundred KB and you may already hold it.
409This API key has no default company

Example

curl -X GET 'https://api.reconsmith.com/v1/outbox' \
  -H 'Authorization: Bearer $RECONSMITH_KEY'

POST/v1/outbox/{id}/collected

You have taken it

Separate from sent, deliberately: marking it sent at the moment it was collected would record an outcome nobody knows yet. Safe to repeat.

Parameters

NameInRequiredWhat it is
idpathyes
sourceSystemqueryYour system's name, the same on every call (for example shop). Identifies your references.

Answers

200collected: true, or false if it was already taken

Example

curl -X POST 'https://api.reconsmith.com/v1/outbox/ID/collected' \
  -H 'Authorization: Bearer $RECONSMITH_KEY'

POST/v1/outbox/{id}/sent

You sent it

This is what makes Sent mail true. "Was that invoice sent, to whom, and when" is a question the books have to answer whoever pressed the button; one that went out through your system and is invisible here is one nobody can prove was sent.

Parameters

NameInRequiredWhat it is
idpathyes
sourceSystemqueryYour system's name, the same on every call (for example shop). Identifies your references.

Body

FieldTypeRequiredWhat it is
providerIdstringYour mail provider's message id, if you have one. It is what a later bounce is matched on.
sentAtstring (date-time)Defaults to now.

Answers

200recorded: true

Example

curl -X POST 'https://api.reconsmith.com/v1/outbox/ID/sent' \
  -H 'Authorization: Bearer $RECONSMITH_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "providerId": "string",
  "sentAt": "2026-12-01T10:00:00+02:00"
}'

POST/v1/outbox/{id}/failed

You could not send it

Parameters

NameInRequiredWhat it is
idpathyes
sourceSystemqueryYour system's name, the same on every call (for example shop). Identifies your references.

Body

FieldTypeRequiredWhat it is
reasonstringyesSomebody will read this when they ask why the customer never got their invoice.

Answers

200recorded: true
400No reason given

Example

curl -X POST 'https://api.reconsmith.com/v1/outbox/ID/failed' \
  -H 'Authorization: Bearer $RECONSMITH_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "reason": "string"
}'

GET/v1/outbox/{id}/pdf

The PDF attached to an outbox message

The message's own attachment, drawn exactly as the built-in sender would attach it. Works for every kind of message, including ones with no document or customer reference, such as a remittance advice. GET /v1/outbox gives this path in a message's attachment field when it is the way to fetch the file.

Parameters

NameInRequiredWhat it is
idpathyesThe message_id from GET /v1/outbox.

Answers

200application/pdf, named as the message's attachment
404Unknown message
409No company is set on this key
502The renderer is unreachable or refused
503No renderer is configured

Example

curl -X GET 'https://api.reconsmith.com/v1/outbox/ID/pdf' \
  -H 'Authorization: Bearer $RECONSMITH_KEY'