Scope: paths and request format. Response examples and full schemas can be added later.
Endpoints
- POST
/api/companies/{company_id}/jobs
Authentication and headers
Send an API key and JSON payload.Request format
All job submissions use the same envelope:typeis one of:policies,transactions,events.file.fileContentis a base64 string of a gzipped JSON document.file.nameis a descriptive filename. It does not have to exist on disk.
Example: submit policies
skipAutoGenerateInvoicesis supported for policy imports when invoices should not be auto generated during a bulk policy load.
Example: submit financial transactions
Example: submit events
Packaging the payload
Your JSON document is gzipped, then base64 encoded. Example workflow:- Create your JSON array or object.
- Gzip the bytes.
- Base64 encode the gzipped bytes.
- Place the result in
file.fileContent.
After submission
Jobs are processed asynchronously. If you need to verify that an event appeared after anevents job, you can query:
- POST
/api/companies/{company_id}/events/listFilter by identifiers such as a historical event id and page through results as needed.
Parameters
company_idis a required path parameter.
