Beezr API
POST/api/v4/records/content

Returns the bytes of one file attached to a record. Take unstructuredId and module from the file reference in the record, and use the record's id as objectId. Files are up to 10 MB.

Auth
X-API-Key
Counts as
1 request
Idempotency
not supported
Files
up to 10 MB each

Headers

X-API-Keystringrequired
Read from your server environment.
Content-Typestringrequired
application/json.

Body parameters

unstructuredIdstringrequired
From the file reference
objectIdintegerrequired
The record's id
unstructuredModelobjectrequired
—
unstructuredModel.modulestringrequired
From the file reference

Returns

HTTP 200. The file bytes.

Raw file bytes. Content-Type is application/pdf, image/png, image/jpeg, otherwise application/octet-stream. Headers include Content-Length, Content-Disposition, X-Beezr-File-Name and X-Beezr-File-Extension.

Errors

HTTPCodeWhat to do
400MISSING_REQUIRED_FIELDSend the required body fields.
401AUTHENTICATION_FAILEDCheck the API key.
404CONTENT_NOT_FOUNDCheck the reference and record id.
400 · 413CONTENT_TOO_LARGEKeep files within 10 MB.
429RATE_LIMIT_EXCEEDEDWait for the rate-limit reset.
429TOO_MANY_CONCURRENT_REQUESTSWait; keep at most 2 in flight.
429MONTHLY_QUOTA_EXCEEDEDStop retries until the 1st.
500FIELD_LOAD_FAILEDRetry later.
500INTERNAL_ERRORRetry later.