Sift REST API
Make your first v0 request, choose a key, and find the endpoint you need.
Read cases, queues, and analytics. Import records or export your organization's audit log.
Choose a task
Make your first request
Read and sync cases
Import records
Export audit events
https://api.getsift.aiYour first request
Create a Reporting key in Settings → Connections → Developer access → API keys. If you cannot create a key, ask your organization admin for one.
Use the URL for the environment where you created your key. The block shows the production URL. For staging, change it to https://api.staging.getsift.ai before you run it.
Run the block in Bash or Zsh and paste the key at the prompt. The terminal hides what you type.
export SIFT_API_BASE='https://api.getsift.ai'
printf 'Sift Reporting key: '
IFS= read -rs SIFT_API_KEY
printf '\n'
export SIFT_API_KEYRun one of the examples in the same terminal.
curl --fail-with-body "$SIFT_API_BASE/v0/queues" \
--header "X-API-Key: $SIFT_API_KEY"This example response shows the fields to check. Add --include to the command to see the HTTP status and headers.
{
"success": true,
"data": [
{ "queueName": "Support" }
]
}HTTP 200 confirms the key works. In cURL, look for "success": true and a data list with a queueName field for each queue. JavaScript and Python print the names. If the organization has no queues, the list is empty.
If you get 401, check the key and URL. If you get 403, check that the key has the read scope. See the queue response fields.
At a glance
| Version | v0 |
| Authentication | X-API-Key |
| Request and response | JSON |
| Default key expiry | 90 days |
| OpenAPI | JSON specification · Interactive reference |
Authentication
Send each key in the X-API-Key header. Choose the profile for your endpoint.
| To | Choose | Scope |
|---|---|---|
| Read cases, queues, and analytics | Reporting | read |
| Update a case's custom fields | Write or Read and write | write |
| Import items and read receipts for selected sources | Import | ingest, ingest:read |
| Export audit events | Audit log (read only) | audit:read |
Endpoints
Browse the endpoint reference for paths, filters, and response fields. See the metrics reference for reporting units.
Error format
Check the HTTP status before you read the response body. Error bodies can differ by endpoint.
| HTTP status | What to do |
|---|---|
400 or 422 | Correct the input. Look for field details in the response. |
401 | Check that the key is active and belongs to this environment. |
403 | Check the scope and source access for this endpoint. |
404 | Check the resource ID and organization. |
409 | Check whether the same identifier already has different content. |
500 | Retry reads with backoff. For writes, follow the endpoint's retry rules. |
Versioning
Include /v0 in request paths. Accept new response fields and event types.