SiftDocs
Developer

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

Your 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_KEY

Run one of the examples in the same terminal.

GET /v0/queues
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

Versionv0
AuthenticationX-API-Key
Request and responseJSON
Default key expiry90 days
OpenAPIJSON specification · Interactive reference

Authentication

Send each key in the X-API-Key header. Choose the profile for your endpoint.

ToChooseScope
Read cases, queues, and analyticsReportingread
Update a case's custom fieldsWrite or Read and writewrite
Import items and read receipts for selected sourcesImportingest, ingest:read
Export audit eventsAudit 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 statusWhat to do
400 or 422Correct the input. Look for field details in the response.
401Check that the key is active and belongs to this environment.
403Check the scope and source access for this endpoint.
404Check the resource ID and organization.
409Check whether the same identifier already has different content.
500Retry reads with backoff. For writes, follow the endpoint's retry rules.

Versioning

Include /v0 in request paths. Accept new response fields and event types.

On this page