Download OpenAPI specification:Download
The Inboxcare REST API provides a convenient way to categorize your documents.
These components need a specific configuration to fulfill your business context and requirements. Usually, the configuration is done by Golem.ai.
Once configured, your InboxCare is ready and uniquely identified with an environment ID (envId). You can find it in the url of your environment : /project/projectId/environment/envId/dashboard
The Inboxcare API is secured by a set of API Keys.
All API requests must be made over HTTPS and must be authenticated with the API Keys.
Depending on your setup & agreement with Golem.ai:
you are managed by Golem.ai: you have been provided with a set of API keys by Golem.ai.
you have been granted an access to the Golem.ai console: you can directly manage your API keys in Management >> Access keys. From there u can click on the button "New Access Key" and give it a name. Now you will be given your Secret_token, keep it safe, this is the only time you will be able to see it. After u close this window you can now see the "Id" of your key, this is your APP_ID
Analyzing your data flow is a 3-steps process:
You will need to upload your email or document with the /v4/console/api/environment/{envId}/inboxCare/analyse endpoint.
You can also be notified by InboxCare once a categorisation is done. If configured, InboxCare will POST an HTTP request to a pre-defined URL. To configure it, go to Management >> Webhooks and click on "Create a webhook". When there you will need to insert a few informations :
The url of your webhook
The type of webhook - (sucess/error) If you want to be notified on success or on error
The format of webhook - (inboxcare_v2/inboxcare_light) Use light if you want a more lighter version of response, else use v2
An Autorization header if you want your new endpoint to be protected with one (optional)
Once the categorization is done, you can get the formatted result with the /v4/console/api/inboxCare/analysis/{analysisId} endpoint.
The following elements should be treated as indicative rather than a comprehensive list of every possible change.
Golem.ai considers the following changes to be backwards-compatible:
Golem.ai considers the following changes to be backwards-incompatible:
Send files to be categorized by batch.
| envId required | string Environment ID |
| appId required | string App ID |
| file[] | string <binary> |
| name | string |
{- "file[]": "string",
- "name": "string"
}{- "batchId": "63e0ec1ad1268"
}Send an email or document to be categorised.
| envId required | string Environment ID |
| appId required | string App ID |
"file" represent an an EML, MSG or PDF file
| file required | string <binary> |
| inbox | string Specify the inbox were the file comes from. This will allow an inboxes discriminating filter in your Dashboard |
| metadata | object Correct syntax is metadata[key]=value |
| attachments[] | string <binary> |
{ "file": null }
{- "jobId": "a1d5a6b3c7f2d3b9a7e17dac0ebc2727"
}{- "id": "string",
- "categories": [
- {
- "name": "string"
}
], - "attachmentCategories": [
- {
- "categoryName": "string"
}
], - "categorization": {
- "golem_text": "string",
- "processing": [
- {
- "name": "string",
- "priority": 0
}
], - "language": "string",
- "golem_request": { },
- "golem_response": { }
}, - "message": {
- "from": "string",
- "to": "string",
- "cc": "string",
- "subject": "string",
- "body": "string"
}, - "automatedReply": "string",
- "draftReply": "string",
- "extractParams": { },
- "metadata": { },
- "filename": "string",
- "createdAt": "string",
- "attachments": [
- "string"
]
}Send splitted fields from an email
| envId required | string Environment ID |
| appId required | string App ID |
| subject required | string |
| body required | string |
| from | string |
| to | string |
| attachments | Array of any |
| metadata | Array of objects Correct syntax is metadata[key]=value |
| cc | string |
{ "subject": "My subject", "body": "My body", "from": "[email protected]", "to": "[email protected]", "attachments": [ "file1", "file2" ], "metadata": [ { "ticketId": "23" } ] }
{- "jobId": "a1d5a6b3c7f2d3b9a7e17dac0ebc2727"
}{- "id": "string",
- "categories": [
- {
- "name": "string"
}
], - "attachmentCategories": [
- {
- "categoryName": "string"
}
], - "categorization": {
- "golem_text": "string",
- "processing": [
- {
- "name": "string",
- "priority": 0
}
], - "language": "string",
- "golem_request": { },
- "golem_response": { }
}, - "message": {
- "from": "string",
- "to": "string",
- "cc": "string",
- "subject": "string",
- "body": "string"
}, - "automatedReply": "string",
- "draftReply": "string",
- "extractParams": { },
- "metadata": { },
- "filename": "string",
- "createdAt": "string",
- "attachments": [
- "string"
]
}Retrieve the result of a specific categorisation
| analysisId required | string Analysis' Id |
| appId required | string App ID |
{- "id": "5a35e2c8bae983074c67d4692a53123f",
- "filename": "Mail.eml",
- "environmentId": 4,
- "state": "IC - Processed",
- "inboxCareResult": {
- "body": "Demande de devis",
- "subject": "Demande de devis",
- "cc": "",
- "golem_text": "",
- "processing": [
- {
- "name": "4_reportMecEmise",
- "priority": 10
}
], - "language": "fr",
- "golem_request": { },
- "golem_response": { },
- "golem_attachments_responses": [
- {
- "idRequest": 0,
- "requestLanguage": "fr",
- "usedLanguage": "",
- "requestText": "requestText PJ_1.pdf",
- "timeAi": "0s",
- "timeTotal": "300ms",
- "helperMessage": "",
- "conversationCode": 0,
- "labels": [ ]
}
], - "golem_attachments_contents": {
- "attachment2.txt": "attestation d'assureur Samuel copie 2.txt",
- "attachment.txt": "relance procès verbal\r\n Samuel copie.txt"
}, - "nlu_response_by_attachment": {
- "attachment2.txt": {
- "idRequest": 0
}, - "attachment.txt": {
- "idRequest": 0
}
}
}, - "automatedReplyResult": null,
- "draftReplyResult": null,
- "queuedDate": "2022-02-22T10:36:43+00:00",
- "lastModificationDate": "2022-02-22T10:36:46+00:00",
- "metadata": [ ],
- "postProcessingLog": "",
- "categoriesBeforePostProcessing": [
- {
- "name": "4_reportMecEmise",
- "priority": 10,
- "id": 12
}
], - "messageCategories": [
- {
- "name": "4_reportMecEmise"
}
], - "attachmentsCategories": [ ]
}