Your first integration
Your first integration sends a file to Send AI through the API and gets the data back, in five steps.
-
Create an API key. In your team, open Integration › API Keys and choose Create API Key. Give the key a name and the permission scopes it needs. The secret key is shown only once, so store it safely. See API keys and scopes.
-
Link the key to a project. A key only works in the projects it is linked to. Open Configuration in the project, then Inbox › Import, link the key under API keys and copy the upload endpoint. See Import.
-
Send a file. A
POSTwith the file to the upload endpoint creates an upload. Your secret key goes in theAuthorizationheader. See Authentication and Create an upload.POST <upload endpoint>Authorization: Bearer <your secret key> -
Follow the upload. A
GETon the upload returns its documents and their state. Notifications can tell your system when something changes, so it does not have to keep asking. See Get an upload and Notifications. -
Get the data back. Once every document of the upload is done, an export action sends the data to your system through a connector. You can also read a document with the API, which calls a document a task. See Actions and Get a task.