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

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

Body Params
Headers
string
required

MIME type of the request body. Must be image/* or application/pdf; the server also verifies the bytes match the declared type.

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.

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