University

Get your developer key and make your first API call

In this video, you'll find your developer key, make your first request to the Digital Samba API, and replace the key safely when you need to.

Updated Version 1

1Developer0:11

Our example: Ana's team wants its own booking system to read the calls on her account.

Screenshot from the film at 0:17: Our example: Ana's team wants its own booking system to read the calls on her account.
Watch this step · 0:13

Open Settings, then the Developer tab.

Screenshot from the film at 0:21: Open Settings, then the Developer tab.
Watch this step · 0:19

The developer API lets other software create and manage calls on your account, for example from your own booking system.

Screenshot from the film at 0:23: The developer API lets other software create and manage calls on your account, for example from your own booking system.
Watch this step · 0:22

2Developer key0:29

At the top is the Base URL, the address every request starts with; Copy puts it on your clipboard.

Screenshot from the film at 0:37: At the top is the Base URL, the address every request starts with; Copy puts it on your clipboard.
Watch this step · 0:30

Below it is your Developer key, hidden.

Screenshot from the film at 0:41: Below it is your Developer key, hidden.
Watch this step · 0:38

Click Show key to see it, and Copy to take it.

Screenshot from the film at 0:45: Click Show key to see it, and Copy to take it.
Watch this step · 0:42

Anyone with this key can act on your account, so keep it private, like a password.

Screenshot from the film at 0:46: Anyone with this key can act on your account, so keep it private, like a password.
Watch this step · 0:46

3Getting started0:51

Getting started says how to use the key: send it as a bearer token on every request, and the answers come back as JSON.

Screenshot from the film at 0:55: Getting started says how to use the key: send it as a bearer token on every request, and the answers come back as JSON.
Watch this step · 0:52

The example asks for your calls; this button copies the whole command.

Screenshot from the film at 1:03: The example asks for your calls; this button copies the whole command.
Watch this step · 1:00

Requests are rate limited, and every answer tells you in its headers how many you have left.

Screenshot from the film at 1:06: Requests are rate limited, and every answer tells you in its headers how many you have left.
Watch this step · 1:05

Under Available resources is what the API can reach: calls, contacts, recordings, sessions and more, each with its methods and paths.

Screenshot from the film at 1:18: Under Available resources is what the API can reach: calls, contacts, recordings, sessions and more, each with its methods and paths.
Watch this step · 1:11

4First request1:21

Now the first request, from a terminal.

Screenshot from the film at 1:24: Now the first request, from a terminal.
Watch this step · 1:22

Here the key waits in an environment variable, so it never sits in the command itself.

Screenshot from the film at 1:27: Here the key waits in an environment variable, so it never sits in the command itself.
Watch this step · 1:25

Ask for the Base URL plus slash calls, with the header Authorization: Bearer, then the key.

Screenshot from the film at 1:34: Ask for the Base URL plus slash calls, with the header Authorization: Bearer, then the key.
Watch this step · 1:30

The answer is JSON: a total count of five, then each call with its title and start time, the same week that's on Ana's dashboard.

Screenshot from the film at 1:44: The answer is JSON: a total count of five, then each call with its title and start time, the same week that's on Ana's dashboard.
Watch this step · 1:37

5Regenerate1:46

If the key may have got out, replace it: click the circling arrows beside it, Regenerate developer key.

Screenshot from the film at 1:51: If the key may have got out, replace it: click the circling arrows beside it, Regenerate developer key.
Watch this step · 1:47

Choose how long the current key keeps working, from Immediately up to 24 hours, so you have time to move your software over.

Screenshot from the film at 2:01: Choose how long the current key keeps working, from Immediately up to 24 hours, so you have time to move your software over.
Watch this step · 1:54

Ana picks one hour and clicks Regenerate: the page shows the new key.

Screenshot from the film at 2:07: Ana picks one hour and clicks Regenerate: the page shows the new key.
Watch this step · 2:02

For that hour, both keys work; after it, the old key is refused.

Screenshot from the film at 2:09: For that hour, both keys work; after it, the old key is refused.
Watch this step · 2:08

Good to know2:13

There's one developer key per account, not one per tool, so after a regenerate, update everything that uses it.

Screenshot from the film at 2:21: Good to know: there's one developer key per account, not one per tool, so after a regenerate, update everything that uses it.
Watch this step · 2:14

And a request with a wrong key, or with none, is answered Unauthenticated.

Screenshot from the film at 2:27: And a request with a wrong key, or with none, is answered Unauthenticated.
Watch this step · 2:24

Recap2:29

So: open Settings, Developer; show and copy your key; send it as a bearer token to the Base URL; and regenerate it with a grace period when you need to.

Screenshot from the film at 2:39: So: open Settings, Developer; show and copy your key; send it as a bearer token to the Base URL; and regenerate it with a grace period when you need to.
Watch this step · 2:30

In this video

Next

Related

Updated

The film, the article, the captions and the search results all come from one source, so they change together.

  1. Version 1 ·
    First version.

All updates