Inbound API reference
Audience: Developers at the integrating client/partner Endpoint POST https:///local/api/server.php Content-Type: application/json Authentication Send the API key as a bearer token: Authoriz
Audience: Developers at the integrating client/partner
Endpoint
POST https://
/local/api/server.php Content-Type: application/json
Authentication
Send the API key as a bearer token:
Authorization: Bearer
If the key was created with an HMAC secret, you must also sign the raw request body with HMAC-SHA256 and send the hex digest:
X-Api-Signature:
Request body
{
"version": "v1",
"action": "pull",
"connector": "afas",
"resource": "workers",
"params": { "instance": "production", "take": 100, "cursor": "0" }
}
Actions
Error codes
Always read meta.requestid — quote it to support when reporting an issue, so we can find the exact log entry.
Example: send records into the platform
curl -X POST "https://
/local/api/server.php" \ -H "Authorization: Bearer
" \ -H "Content-Type: application/json" \ -d '{ "action": "ingest", "connector": "afas", "resource": "workers", "params": { "records": [ { "firstname": "Ada", "lastname": "Lovelace", "email": "ada@example.com" } ] } }'