Build on RevDek.
Create an API key, read your data and run any of the 41 actions. Your first call takes about two minutes.
The API works on accounts using the new RevDek, which is rolling out in stages.
Quick start
-
Create a key
In RevDek, go to Settings, Connections, Developers and choose Create key. Only the account owner can do this. Developers is part of the new RevDek, which is still rolling out, so it may not be on your account yet. New keys can read and nothing else, unless you choose more. Copy the key when it appears: RevDek keeps only a hash of it and can't show it again.
-
Read something
Send the key as a Bearer token.
curl "https://revdek.ai/api/v1/customers?limit=5" \ -H "Authorization: Bearer rdk_your_key_here"{ "data": [ { "id": "6f1c0a52-...", "first_name": "Grace", "last_name": "Holloway", "phone": "+12035550100" } ], "total": 1, "limit": 5, "offset": 0 } -
Run any action
Everything RevDek can do through the API is an action. POST the input as JSON.
curl -X POST https://revdek.ai/api/v1/actions/search_jobs \ -H "Authorization: Bearer rdk_your_key_here" \ -H "Content-Type: application/json" \ -d '{"completed": false, "limit": 5}'
The basics
- Base URL
https://revdek.ai/api/v1- Auth
Authorization: Bearer rdk_...- Rate limit
- 120 requests a minute for each key
- Server to server
- No CORS headers, so a key can't be used from a web page
- Whose permissions
- A key acts as the person who created it, with their current access
- Keys per company
- Up to 20 active keys. Revoke one and it stops at once
Access levels
- Read
- Look things up. Every key has this
- Write
- Create and change records. You choose it when you make the key
- Texting
- Send messages to customers. Off unless you turn it on
Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /me | The key, its access and the company it belongs to |
| GET | /customers | List customers. Takes limit, offset and q |
| GET | /customers/:id | One customer |
| GET | /jobs | List jobs. Takes date, completed and limit |
| GET | /jobs/:id | One job |
| GET | /invoices | List invoices. Takes status and limit |
| GET | /actions | Every action, with its input |
| GET | /actions/:name | One action |
| POST | /actions/:name | Run an action. The JSON body is its input |
Errors
Every failure looks the same: { "error": { "code", "message" } }
| Status | Code | Meaning |
|---|---|---|
| 401 | invalid_key | The key is missing, wrong or revoked |
| 403 | not_allowed | The key or its owner can't do this |
| 403 | not_available | The API isn't on this account yet |
| 403 | account_locked | The account is locked |
| 404 | unknown_action | There is no action with that name |
| 404 | not_found | No such record or endpoint |
| 400 | action_failed | The action ran and reported a problem |
| 400 | invalid_json | The body is not valid JSON |
| 405 | method_not_allowed | That method is not used here |
| 422 | invalid_input | Some of the input is wrong. See issues |
| 429 | rate_limited | Over 120 requests a minute |
| 500 | server_error | Something went wrong on our side |