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

  1. 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.

  2. Read something

    Send the key as a Bearer token.

    Request
    curl "https://revdek.ai/api/v1/customers?limit=5" \
      -H "Authorization: Bearer rdk_your_key_here"
    Response
    {
      "data": [
        {
          "id": "6f1c0a52-...",
          "first_name": "Grace",
          "last_name": "Holloway",
          "phone": "+12035550100"
        }
      ],
      "total": 1,
      "limit": 5,
      "offset": 0
    }
  3. Run any action

    Everything RevDek can do through the API is an action. POST the input as JSON.

    Request
    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}'

    See all 41 actions

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

MethodPathWhat it does
GET/meThe key, its access and the company it belongs to
GET/customersList customers. Takes limit, offset and q
GET/customers/:idOne customer
GET/jobsList jobs. Takes date, completed and limit
GET/jobs/:idOne job
GET/invoicesList invoices. Takes status and limit
GET/actionsEvery action, with its input
GET/actions/:nameOne action
POST/actions/:nameRun an action. The JSON body is its input

Errors

Every failure looks the same: { "error": { "code", "message" } }

StatusCodeMeaning
401invalid_keyThe key is missing, wrong or revoked
403not_allowedThe key or its owner can't do this
403not_availableThe API isn't on this account yet
403account_lockedThe account is locked
404unknown_actionThere is no action with that name
404not_foundNo such record or endpoint
400action_failedThe action ran and reported a problem
400invalid_jsonThe body is not valid JSON
405method_not_allowedThat method is not used here
422invalid_inputSome of the input is wrong. See issues
429rate_limitedOver 120 requests a minute
500server_errorSomething went wrong on our side