API keys

Make a key for each system that connects, and choose whether it only reads.

A key belongs to your firm, not to a person, so it keeps working when someone leaves. Everything a key adds or changes is recorded under the key’s name in the matter’s history, so give each key a name that says where it’s used, such as “Website enquiry form”.

Make a key

Go to Settings, then API keys, and fill in Make a key. Choose Read only for anything that just looks things up, such as a dashboard. Choose Read and change for anything that adds clients or opens matters.

The key is shown once, when you make it. Copy it straight into the system that will use it. If it’s lost, remove it and make another.

Use it

Send the key in the Authorization header of every request, after the word Bearer. Keys start with unf_dk_, which makes them easy to spot if one ends up somewhere it shouldn’t.

curl "https://api.torlie.com/desk/clients?limit=5" \
  -H "Authorization: Bearer unf_dk_…"

Keep it safe

Treat a key like a password: keep it on your server, never in a web page or an app people download. If you think one has leaked, remove it in Settings, then API keys. It stops working at once.