cURL
curl --request POST \ --url https://api.useadam.io/v1/adam/invoices \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "prompt": "Create an invoice for ACME LLC for $250 for consulting, dated today, due in 14 days", "process_type": "async" } '
{ "status": "success", "message": "Invoice creation request received and queued for processing", "data": { "process_type": "async", "job_reference": "job_01HZXK8QEXAMPLE" } }
Business secret tyms_sk_... for all routes except Register business, which expects your partner secret.
tyms_sk_...
Hide child attributes
Content per type. For Base64, send raw bytes encoded as a string (no data:...;base64, prefix).
type
data:...;base64,
How file is encoded. Required on every attachment. Base64 payloads must use "type": "base64" explicitly — the API does not infer Base64 from the file string alone.
file
"type": "base64"
base64
url
raw
Filename with extension (recommended for type detection).
async (default) or direct.
async
direct
AI invoice job accepted or completed — depends on process_type
process_type
"success"
Single resource, array of resources, statement sections, or async job metadata — see each operation's example.
Pagination (page, limit, total) and/or report range (from, to). Cash flow may include previous_period_end.
page
limit
total
from
to
previous_period_end