Create content

Uploads a binary file as a Content resource the client can later attach to an expense record (e.g. as a receipt). The created resource is temporary — owned by the caller and eligible for cleanup if it is not subsequently attached. When action=scan is passed, the OCR result is persisted on the resource so it can be referenced later without re-scanning.

Query Params
string
enum

Optional server-side action to run against the uploaded content. scan runs synchronous OCR; the result is persisted on the resource.

Allowed:
string
^[0-9a-fA-F]{32}$

Organization scope for the request. Required when the caller has access to more than one organization; auto-inferred otherwise.

Body Params
Headers
string

Optional name for the uploaded content. URL-decoded server-side. Auto-generated if omitted.

string

Optional description for the uploaded content. URL-decoded server-side.

string

Optional URL-encoded string extracted from a fiscal QR code on the receipt (currently used for Portuguese receipts). URL-decoded server-side and persisted on the resource; the decoded value is returned in the response and on subsequent reads. Send only when the verification.receiptAttachment field has qrCodeSupported: true (see the fields endpoint) and the client successfully scanned a QR — otherwise omit the header.

string
enum
Defaults to image/*

Generated from available request content types

Allowed:
Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json