Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Docs Emailer — API reference

The universal document gateway: channels in (docs addresses, Telenaas numbers, scanners and printers), print jobs, fax / SMS / email sends, suppressions, routing rules, the inbox with its processing results and tasks.

← All groups
GET /api/v1/gateway/addresses

Docs addresses

Scope: documents:read · paginated · gateway.addresses

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

addresses * [GatewayAddress]
fields

GatewayAddress

active boolean
address string (email)
allowed_senders [string]
id * string (uuid)
include_body boolean
label string | null
last_received_at string | null
personal boolean
received_count integer
workspace_id string | null
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/gateway/addresses

Create a docs address

Scope: documents:write · Idempotency-Key · gateway.create_address

Request body application/json
allowed_senders [string] Only these senders (addresses or @domains) are accepted
include_body boolean Keep the email body as a document too
label string | null
personal boolean Files into the person's own inbox
workspace_id string | null
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

address * GatewayAddress
fields

GatewayAddress

active boolean
address string (email)
allowed_senders [string]
id * string (uuid)
include_body boolean
label string | null
last_received_at string | null
personal boolean
received_count integer
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/gateway/addresses/{id}

Delete a docs address

Scope: documents:write · gateway.delete_address

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

ok * boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

PATCH /api/v1/gateway/addresses/{id}

Change a docs address

Scope: documents:write · gateway.update_address

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
active boolean
allowed_senders [string] Only these senders (addresses or @domains) are accepted
include_body boolean Keep the email body as a document too
label string | null
personal boolean Files into the person's own inbox
workspace_id string | null
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

address * GatewayAddress
fields

GatewayAddress

active boolean
address string (email)
allowed_senders [string]
id * string (uuid)
include_body boolean
label string | null
last_received_at string | null
personal boolean
received_count integer
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/gateway/addresses/{id}/rotate

Give a docs address a new random address

The old address stops accepting mail.

Scope: documents:write · Idempotency-Key · gateway.rotate_address

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

address * GatewayAddress
fields

GatewayAddress

active boolean
address string (email)
allowed_senders [string]
id * string (uuid)
include_body boolean
label string | null
last_received_at string | null
personal boolean
received_count integer
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/gateway/channels

Every channel in: addresses, numbers and devices

Scope: documents:read · gateway.channels

Responses 200 · 401 · 403 · 429

200 Success

addresses * [GatewayAddress]
fields

GatewayAddress

active boolean
address string (email)
allowed_senders [string]
id * string (uuid)
include_body boolean
label string | null
last_received_at string | null
personal boolean
received_count integer
workspace_id string | null
devices * [GatewayDevice]
fields

GatewayDevice

id * string (uuid)
kind "scanner" | "mfp" | "printer" | "thermal"
last_seen_at string | null
manufacturer string | null
model string | null
name string
network_identity string | null
online boolean
permissions [string]
personal boolean
protocol string
status string
token_prefix string
workspace_id string | null
numbers * [GatewayNumber]
fields

GatewayNumber

capabilities [string]
display string
e164 string
fax_available boolean
id * string (uuid)
label string | null
personal boolean
sms_mailbox_id string | null
status string
synced_at string | null
to_inbox boolean
workspace_id string | null
status GatewayStatus
fields

GatewayStatus

ai_vision boolean
clamd boolean Malware scanning configured
fax boolean
langaat boolean
mms boolean
ocr_engines [any]
secondmem boolean
telenaas boolean
telenaas_own_account boolean
telenaas_platform_key boolean

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/gateway/devices

Scanners, MFPs and printers

Scope: documents:read · paginated · gateway.devices

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

devices * [GatewayDevice]
fields

GatewayDevice

id * string (uuid)
kind "scanner" | "mfp" | "printer" | "thermal"
last_seen_at string | null
manufacturer string | null
model string | null
name string
network_identity string | null
online boolean
permissions [string]
personal boolean
protocol string
status string
token_prefix string
workspace_id string | null
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/gateway/devices

Register a device

Answers the device token once (`rsd_…`); keep it in the device's settings.

Scope: documents:write · Idempotency-Key · gateway.create_device

Request body application/json
kind * "scanner" | "mfp" | "printer" | "thermal"
manufacturer string | null
model string | null
name string
network_identity string | null IP, hostname or serial
permissions ["scan" | "print" | "receipt"]
personal boolean
protocol "http" | "webdav" | "smtp" | "ipp" | "ipps" | "escpos" | "zpl" | "epl" | "cpcl"
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

device * GatewayDevice
fields

GatewayDevice

id * string (uuid)
kind "scanner" | "mfp" | "printer" | "thermal"
last_seen_at string | null
manufacturer string | null
model string | null
name string
network_identity string | null
online boolean
permissions [string]
personal boolean
protocol string
status string
token_prefix string
workspace_id string | null
note string
token * string Shown once

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/gateway/devices/{id}

Delete a device

Scope: documents:write · gateway.delete_device

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

ok * boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

PATCH /api/v1/gateway/devices/{id}

Change a device

Scope: documents:write · gateway.update_device

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
kind "scanner" | "mfp" | "printer" | "thermal"
manufacturer string | null
model string | null
name string
network_identity string | null IP, hostname or serial
permissions ["scan" | "print" | "receipt"]
personal boolean
protocol "http" | "webdav" | "smtp" | "ipp" | "ipps" | "escpos" | "zpl" | "epl" | "cpcl"
status string
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

device * GatewayDevice
fields

GatewayDevice

id * string (uuid)
kind "scanner" | "mfp" | "printer" | "thermal"
last_seen_at string | null
manufacturer string | null
model string | null
name string
network_identity string | null
online boolean
permissions [string]
personal boolean
protocol string
status string
token_prefix string
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/gateway/devices/{id}/rotate

Give a device a new token

The old token stops working; the new one is shown once.

Scope: documents:write · Idempotency-Key · gateway.rotate_device

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

device * GatewayDevice
fields

GatewayDevice

id * string (uuid)
kind "scanner" | "mfp" | "printer" | "thermal"
last_seen_at string | null
manufacturer string | null
model string | null
name string
network_identity string | null
online boolean
permissions [string]
personal boolean
protocol string
status string
token_prefix string
workspace_id string | null
token * string

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/gateway/documents/{id}

A document's processing results and text

Scope: documents:read · gateway.processing

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 403 · 404 · 429

200 Success

document * GatewayDocument
fields

GatewayDocument

channel string
classification string | null
content_type string | null
created_at string (date-time)
doc_type string | null
filename string
from string | null
id * string (uuid)
note string | null
private boolean
processing object
fields
classification any
detected any
duplicate_of string | null
extraction any
malware any
ocr any
pages integer | null
processed_at string | null
rules any
transcription any
processing_status string | null
sha256 string
size integer
source string
status string
tags [string]
title string | null
text string | null Extracted text (first 50,000 characters)

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/gateway/documents/{id}/process

Re-run processing on a document

OCR, transcription, classification and extraction are charged in AI credits.

Scope: documents:write · uses AI credits · Idempotency-Key · gateway.process

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
step "ocr" | "transcribe" | "classify" | "extract" | "all" Default all
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429 · 503

200 Success

document * GatewayDocument
fields

GatewayDocument

channel string
classification string | null
content_type string | null
created_at string (date-time)
doc_type string | null
filename string
from string | null
id * string (uuid)
note string | null
private boolean
processing object
fields
classification any
detected any
duplicate_of string | null
extraction any
malware any
ocr any
pages integer | null
processed_at string | null
rules any
transcription any
processing_status string | null
sha256 string
size integer
source string
status string
tags [string]
title string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

503 Telenaas not connected, fax not available or no engine configured

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
POST /api/v1/gateway/documents/{id}/route

Run the routing rules on a document

Scope: documents:write · Idempotency-Key · gateway.route

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

runs * [GatewayRuleRun]
fields

GatewayRuleRun

at string (date-time)
document_id string (uuid)
dry_run boolean
id * string (uuid)
matched boolean
results any
rule_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/gateway/email

Email documents from a mailbox

Scope: documents:write · Idempotency-Key · gateway.email

Request body application/json
cc [string]
document_id string (uuid) One document (instead of document_ids)
document_ids [string (uuid)]
mailbox_id * string (uuid)
subject string Default: the documents' titles
text string
to * string | [string] Addresses (a list, or separated by commas)
Responses 201 · 401 · 402 · 403 · 409 · 413 · 422 · 429

201 Success

send * GatewaySend
fields

GatewaySend

attempts integer
channel "fax" | "sms" | "email"
created_at string (date-time)
delivered_at string | null
document_ids [string (uuid)]
error string | null
error_code string | null
id * string (uuid)
max_attempts integer
message_id string | null
next_attempt_at string | null
pages integer | null
remote_id string | null
scheduled_at string | null
sent_at string | null
status string
text string | boolean SMS text (false for other channels)
to string
to_name string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

413 Too large or too many documents

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/gateway/fax

Fax documents

Through Telenaas; retried on failure.

Scope: documents:write · Idempotency-Key · gateway.fax

Request body application/json
cover object
fields
note string
subject string
document_id string (uuid) One document (instead of document_ids)
document_ids [string (uuid)]
scheduled_at string (date-time)
to * string Fax number, international form
to_name string
Responses 201 · 401 · 402 · 403 · 409 · 413 · 422 · 429 · 503

201 Success

send * GatewaySend
fields

GatewaySend

attempts integer
channel "fax" | "sms" | "email"
created_at string (date-time)
delivered_at string | null
document_ids [string (uuid)]
error string | null
error_code string | null
id * string (uuid)
max_attempts integer
message_id string | null
next_attempt_at string | null
pages integer | null
remote_id string | null
scheduled_at string | null
sent_at string | null
status string
text string | boolean SMS text (false for other channels)
to string
to_name string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 The number is suppressed or opted out

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

413 Too large, too many documents or pages

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

503 Telenaas not connected, fax not available or no engine configured

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
GET /api/v1/gateway/inbox

The document inbox with processing results

Scope: documents:read · paginated · gateway.inbox

ParameterInTypeDescription
channelquerystringemail, sms, fax, scanner, receipt …
doc_typequerystring
statusquerystringProcessing status
qquerystringSearch
limitqueryintegerDefault 100, at most 500
cursorquerystringThe `next_cursor` of the previous page
Responses 200 · 401 · 403 · 429

200 Success

documents * [GatewayDocument]
fields

GatewayDocument

channel string
classification string | null
content_type string | null
created_at string (date-time)
doc_type string | null
filename string
from string | null
id * string (uuid)
note string | null
private boolean
processing object
fields
classification any
detected any
duplicate_of string | null
extraction any
malware any
ocr any
pages integer | null
processed_at string | null
rules any
transcription any
processing_status string | null
sha256 string
size integer
source string
status string
tags [string]
title string | null
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/gateway/messages

Texts and faxes that arrived

Scope: documents:read · paginated · gateway.messages

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
messages * [GatewayMessage]
fields

GatewayMessage

channel string
document_ids [string (uuid)]
from string | null
id * string (uuid)
mail_message_id string | null
personal boolean
received_at string (date-time)
text string | null
to string | null
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/gateway/numbers

Telenaas numbers

Scope: documents:read · paginated · gateway.numbers

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

fax_available boolean
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
numbers * [GatewayNumber]
fields

GatewayNumber

capabilities [string]
display string
e164 string
fax_available boolean
id * string (uuid)
label string | null
personal boolean
sms_mailbox_id string | null
status string
synced_at string | null
to_inbox boolean
workspace_id string | null
telenaas boolean Telenaas is connected

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/gateway/numbers/sync

Re-read the numbers from Telenaas

Scope: documents:write · Idempotency-Key · gateway.sync_numbers

Responses 200 · 401 · 402 · 403 · 409 · 422 · 429 · 503

200 Success

numbers * [GatewayNumber]
fields

GatewayNumber

capabilities [string]
display string
e164 string
fax_available boolean
id * string (uuid)
label string | null
personal boolean
sms_mailbox_id string | null
status string
synced_at string | null
to_inbox boolean
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

503 Telenaas not connected, fax not available or no engine configured

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
PATCH /api/v1/gateway/numbers/{id}

Change how a number files what arrives

Scope: documents:write · gateway.update_number

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
label string | null
sms_mailbox_id string | null Mailbox SMS conversations appear in
status string
to_inbox boolean
user_id string | null Files into this person's inbox
workspace_id string | null
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

number * GatewayNumber
fields

GatewayNumber

capabilities [string]
display string
e164 string
fax_available boolean
id * string (uuid)
label string | null
personal boolean
sms_mailbox_id string | null
status string
synced_at string | null
to_inbox boolean
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/gateway/print-jobs

Print jobs

Scope: documents:read · paginated · gateway.print_jobs

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
print_jobs * [GatewayJob]
fields

GatewayJob

attempts integer
claimed_at string | null
copies integer
created_at string (date-time)
device_id string (uuid)
document_id string (uuid)
error string | null
finished_at string | null
id * string (uuid)
options object
status string queued, claimed, printing, done, failed, cancelled

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/gateway/print-jobs

Print a document

Scope: documents:write · Idempotency-Key · gateway.print

Request body application/json
copies integer 1–20 (default 1)
device_id * string (uuid) A printer, MFP or thermal printer
document_id * string (uuid)
options object
fields
color any
duplex any
media string
orientation string
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

print_job * GatewayJob
fields

GatewayJob

attempts integer
claimed_at string | null
copies integer
created_at string (date-time)
device_id string (uuid)
document_id string (uuid)
error string | null
finished_at string | null
id * string (uuid)
options object
status string queued, claimed, printing, done, failed, cancelled
printer_online boolean The device's agent was seen recently

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Not a printer

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

POST /api/v1/gateway/print-jobs/{id}/cancel

Cancel a print job

Scope: documents:write · Idempotency-Key · gateway.cancel_print

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

print_job * GatewayJob
fields

GatewayJob

attempts integer
claimed_at string | null
copies integer
created_at string (date-time)
device_id string (uuid)
document_id string (uuid)
error string | null
finished_at string | null
id * string (uuid)
options object
status string queued, claimed, printing, done, failed, cancelled

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/gateway/print-jobs/{id}/retry

Retry a print job

Scope: documents:write · Idempotency-Key · gateway.retry_print

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

print_job * GatewayJob
fields

GatewayJob

attempts integer
claimed_at string | null
copies integer
created_at string (date-time)
device_id string (uuid)
document_id string (uuid)
error string | null
finished_at string | null
id * string (uuid)
options object
status string queued, claimed, printing, done, failed, cancelled

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/gateway/rules

Routing rules

Scope: documents:read · paginated · gateway.rules

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
rules * [GatewayRule]
fields

GatewayRule

actions [object]
active boolean
conditions object
describe [string] Each action in words
id * string (uuid)
last_run_at string | null
name string
personal boolean
position integer
runs integer
stop boolean
workspace_id string | null

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/gateway/rules

Create a routing rule

Scope: documents:write · Idempotency-Key · gateway.create_rule

Request body application/json
actions [object]
active boolean
conditions object What a document must match (channel, doc_type, from, text …)
name string
personal boolean
position integer
stop boolean Stop evaluating later rules when this one matches
workspace_id string | null
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

rule * GatewayRule
fields

GatewayRule

actions [object]
active boolean
conditions object
describe [string] Each action in words
id * string (uuid)
last_run_at string | null
name string
personal boolean
position integer
runs integer
stop boolean
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/gateway/rules/preview

Dry-run a rule

Shows what a rule (new fields, or `{id}` of a saved one) would do to the given documents (default: the 25 latest). Nothing is changed.

Scope: documents:write · Idempotency-Key · gateway.preview_rule

Request body application/json
document_ids [string (uuid)]
rule object Rule fields, or `{id}`
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

documents * [object]
fields
actions [any]
document_id string (uuid)
eligible boolean
matched boolean
title string | null
dry_run * boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/gateway/rules/runs

The rules' audit trail

Scope: documents:read · paginated · gateway.rule_runs

ParameterInTypeDescription
document_idquerystring (uuid)Only runs for this document
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
runs * [GatewayRuleRun]
fields

GatewayRuleRun

at string (date-time)
document_id string (uuid)
dry_run boolean
id * string (uuid)
matched boolean
results any
rule_id string | null

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

DELETE /api/v1/gateway/rules/{id}

Delete a routing rule

Scope: documents:write · gateway.delete_rule

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

ok * boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

PATCH /api/v1/gateway/rules/{id}

Change a routing rule

Scope: documents:write · gateway.update_rule

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
actions [object]
active boolean
conditions object What a document must match (channel, doc_type, from, text …)
name string
personal boolean
position integer
stop boolean Stop evaluating later rules when this one matches
workspace_id string | null
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

rule * GatewayRule
fields

GatewayRule

actions [object]
active boolean
conditions object
describe [string] Each action in words
id * string (uuid)
last_run_at string | null
name string
personal boolean
position integer
runs integer
stop boolean
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/gateway/sends

Fax, SMS and email sends

Scope: documents:read · paginated · gateway.sends

ParameterInTypeDescription
channelquery"fax" | "sms" | "email"
limitqueryintegerDefault 100, at most 500
cursorquerystringThe `next_cursor` of the previous page
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
sends * [GatewaySend]
fields

GatewaySend

attempts integer
channel "fax" | "sms" | "email"
created_at string (date-time)
delivered_at string | null
document_ids [string (uuid)]
error string | null
error_code string | null
id * string (uuid)
max_attempts integer
message_id string | null
next_attempt_at string | null
pages integer | null
remote_id string | null
scheduled_at string | null
sent_at string | null
status string
text string | boolean SMS text (false for other channels)
to string
to_name string | null

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/gateway/sends/{id}

One send

Scope: documents:read · gateway.show_send

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 403 · 404 · 429

200 Success

send * GatewaySend
fields

GatewaySend

attempts integer
channel "fax" | "sms" | "email"
created_at string (date-time)
delivered_at string | null
document_ids [string (uuid)]
error string | null
error_code string | null
id * string (uuid)
max_attempts integer
message_id string | null
next_attempt_at string | null
pages integer | null
remote_id string | null
scheduled_at string | null
sent_at string | null
status string
text string | boolean SMS text (false for other channels)
to string
to_name string | null

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/gateway/sends/{id}/cancel

Cancel a queued send

Scope: documents:write · Idempotency-Key · gateway.cancel_send

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

send * GatewaySend
fields

GatewaySend

attempts integer
channel "fax" | "sms" | "email"
created_at string (date-time)
delivered_at string | null
document_ids [string (uuid)]
error string | null
error_code string | null
id * string (uuid)
max_attempts integer
message_id string | null
next_attempt_at string | null
pages integer | null
remote_id string | null
scheduled_at string | null
sent_at string | null
status string
text string | boolean SMS text (false for other channels)
to string
to_name string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/gateway/sends/{id}/retry

Retry a failed send

Scope: documents:write · Idempotency-Key · gateway.retry_send

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 413 · 422 · 429 · 503

200 Success

send * GatewaySend
fields

GatewaySend

attempts integer
channel "fax" | "sms" | "email"
created_at string (date-time)
delivered_at string | null
document_ids [string (uuid)]
error string | null
error_code string | null
id * string (uuid)
max_attempts integer
message_id string | null
next_attempt_at string | null
pages integer | null
remote_id string | null
scheduled_at string | null
sent_at string | null
status string
text string | boolean SMS text (false for other channels)
to string
to_name string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 The number is suppressed or opted out

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

413 Too large, too many documents or pages

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

503 Telenaas not connected, fax not available or no engine configured

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
GET /api/v1/gateway/settings

The gateway's settings

Scope: documents:read · gateway.settings

Responses 200 · 401 · 403 · 429

200 Success

settings * GatewaySettings
fields

GatewaySettings

can_manage boolean
default_country string | null
fax_cover object | null
fields
from_name string
from_number string
note string
processing object
fields
ai_classify boolean
ai_extract boolean
auto_ocr boolean
auto_transcribe boolean

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

PATCH /api/v1/gateway/settings

Change the gateway's settings

Needs the right to manage the gateway. Processing flags may be sent at the top level or under `processing`.

Scope: documents:write · gateway.update_settings

Request body application/json
default_country string ISO country code for numbers without one
fax_cover object
fields
from_name string
from_number string
note string
processing object
fields
ai_classify boolean
ai_extract boolean
auto_ocr boolean
auto_transcribe boolean
Responses 200 · 401 · 402 · 403 · 422 · 429

200 Success

settings * GatewaySettings
fields

GatewaySettings

can_manage boolean
default_country string | null
fax_cover object | null
fields
from_name string
from_number string
note string
processing object
fields
ai_classify boolean
ai_extract boolean
auto_ocr boolean
auto_transcribe boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/gateway/sms

Send a text, optionally with a document link

Scope: documents:write · Idempotency-Key · gateway.sms

Request body application/json
document_id string (uuid) Send a link to this document
link_days integer How long the document link works
text string
to * string Phone number, international form
Responses 201 · 401 · 402 · 403 · 409 · 413 · 422 · 429 · 503

201 Success

send * GatewaySend
fields

GatewaySend

attempts integer
channel "fax" | "sms" | "email"
created_at string (date-time)
delivered_at string | null
document_ids [string (uuid)]
error string | null
error_code string | null
id * string (uuid)
max_attempts integer
message_id string | null
next_attempt_at string | null
pages integer | null
remote_id string | null
scheduled_at string | null
sent_at string | null
status string
text string | boolean SMS text (false for other channels)
to string
to_name string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 The number is suppressed or opted out

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

413 Too large, too many documents or pages

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

503 Telenaas not connected, fax not available or no engine configured

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
GET /api/v1/gateway/status

What the gateway can do for the account

Scope: documents:read · gateway.status

Responses 200 · 401 · 403 · 429

200 Success

status * GatewayStatus
fields

GatewayStatus

ai_vision boolean
clamd boolean Malware scanning configured
fax boolean
langaat boolean
mms boolean
ocr_engines [any]
secondmem boolean
telenaas boolean
telenaas_own_account boolean
telenaas_platform_key boolean

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/gateway/suppressions

Numbers that must not be texted, faxed or called

Scope: documents:read · paginated · gateway.suppressions

ParameterInTypeDescription
channelquery"sms" | "fax" | "call" | "all"
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
suppressions * [GatewaySuppression]
fields

GatewaySuppression

channel string
created_at string (date-time)
id * string (uuid)
note string | null
number string
reason string | null
source string | null

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/gateway/suppressions

Suppress a number

Scope: documents:write · Idempotency-Key · gateway.add_suppression

Request body application/json
channel "sms" | "fax" | "call" | "all" Default all
note string
number * string
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

suppression * GatewaySuppression
fields

GatewaySuppression

channel string
created_at string (date-time)
id * string (uuid)
note string | null
number string
reason string | null
source string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/gateway/suppressions/sync

Pull opt-outs from Telenaas

Scope: documents:write · Idempotency-Key · gateway.sync_suppressions

Responses 200 · 401 · 402 · 403 · 409 · 422 · 429 · 503

200 Success

synced * integer Suppressions added or updated

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

503 Telenaas not connected, fax not available or no engine configured

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
DELETE /api/v1/gateway/suppressions/{id}

Remove a suppression

Scope: documents:write · gateway.remove_suppression

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

ok * boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/gateway/tasks

Tasks the rules made

Scope: documents:read · paginated · gateway.tasks

ParameterInTypeDescription
statusquerystringDefault open
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
tasks * [GatewayTask]
fields

GatewayTask

assignee_id string | null
document_id string | null
due_at string | null
id * string (uuid)
rule_id string | null
status string
title string

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/gateway/tasks/{id}/done

Mark a task done

Scope: documents:write · Idempotency-Key · gateway.complete_task

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

task * GatewayTask
fields

GatewayTask

assignee_id string | null
document_id string | null
due_at string | null
id * string (uuid)
rule_id string | null
status string
title string

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/gateway/telenaas/connect

Connect Telenaas (One-Click Connect)

Connects the account's Telenaas, subscribes every handled webhook event and re-syncs the numbers.

Scope: documents:write · Idempotency-Key · gateway.connect_telenaas

Responses 200 · 401 · 402 · 403 · 409 · 422 · 429 · 503

200 Success

connected * boolean
status GatewayStatus
fields

GatewayStatus

ai_vision boolean
clamd boolean Malware scanning configured
fax boolean
langaat boolean
mms boolean
ocr_engines [any]
secondmem boolean
telenaas boolean
telenaas_own_account boolean
telenaas_platform_key boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

503 Telenaas not connected, fax not available or no engine configured

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
GET /api/v1/gateway/telenaas/webhooks

The Telenaas webhook subscription's state

Scope: documents:read · gateway.telenaas_webhooks

Responses 200 · 401 · 403 · 429

200 Success

webhooks * GatewayWebhookState
fields

GatewayWebhookState

error string | null
missing [string]
own_account boolean
subscribed [string]
synced_at string | null
url string (uri)
wanted [string]

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/gateway/telenaas/webhooks/sync

Make the Telenaas webhook subscription complete

Idempotent.

Scope: documents:write · Idempotency-Key · gateway.sync_telenaas_webhooks

Responses 200 · 401 · 402 · 403 · 409 · 422 · 429 · 503

200 Success

webhooks * GatewayWebhookState
fields

GatewayWebhookState

error string | null
missing [string]
own_account boolean
subscribed [string]
synced_at string | null
url string (uri)
wanted [string]

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

503 Telenaas not connected, fax not available or no engine configured

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)