Getting started
Guides
Concepts
Resources
<aside> ⚠️ WARNING In order to follow this guide, you will first need to get access to our API (Get Access to API) and be able to send requests using our Authentication method
</aside>
All communications to the API are done through HTTP Requests.
We provide two environments:
When making an HTTP Request, you must provide 3 headers:
userId : ID of the user that is making the requestsessionToken : API keyOctober-Version : See current API version on API versioning page<aside> ℹ️ Make sure you have access to our API: How to retrieve the session token
</aside>
Moreover, when making a POST HTTP Request, you must also provide the following header key/value:
Content-Type: application/jsonFor the first step of the analysis, create a request with a POST call to /requests
<aside> ℹ️ To learn how to assign this request to a specific user from an email address, consult : Add a creator to your request
</aside>
<aside>
ℹ️ You can customise the name of the request by proving a businessName field.
See detailed instructions: Set custom request name
</aside>
In the example below, all fields are mandatory except if mentioned otherwise:
POST /requests
{
"code": {
"type": "siren",
"id": "514673987"
}
}
The API will answer with additional fields on the request:
{
"id": "635107e452436f15d3b39d87", // Unique ID of the request
"status": "pending_analysis",
"stage": "1.1",
...
}
If you wish to re-fetch the data of a request, you can make a GET call to /requests/[id].
The upload of a document is done in 3 steps:
POST /media to our API with the type and metadata of the file you wish to send us. You will receive data needed to upload to S3.POST /media/[id] to set the status to online and optionally add the period and date of the document.To read a detailed step-by-step guide, please read Resource: Uploading a media
Once you have send the request to our API, the analysis of some X-Rays will be launch automatically such as ESG X-Ray and Manager X-Ray. On the other hand, the other X-Rays require extra information to be launched and depending on how this information is processed, it can either take a few minutes or up to 48 hours.
To wait for the end of the request analysis, you have two options:
When the status of the request changes, refer to the cases below to know the next steps.
Polling the API
Make GET HTTP requests to /request/[requestId] to receive the latest data of the request.
Make GET HTTP requests to /reports?request=[requestId] to receive all the reports associated to the requests
Using webhooks
<aside> 🪝 If you choose to use webhooks, start by checking out Resource: Webhooks
</aside>
We provide a webhook:
new_report when a new report has been created
{
"event": "new_report",
"requestId": "[requestId]",
"reportId": "[reportId]"
}
After receiving the webhook, you can retrieve the data of the report using the following GET HTTP calls:
GET /requests/[requestId]GET /reports?request=[requestId]← Previous
Getting started: Authentication
Next →