Skip to main content
Use the REST API when you want to work with Dynamic from a backend, a script, or any language without a Dynamic SDK. This page gets you to a first successful response.
Building a client app instead? Start with an SDK: JavaScript, Swift, Kotlin, Flutter, or Node.

Which token do you need

The API has two kinds of endpoint, and they take different bearer tokens. This quickstart uses an API token. For the SDK endpoints, read Authentication.

Steps

1

Create an API token

In the dashboard, open the Developer tab and click Create Token in the API Token section.Name it after the system that will use it, for example billing-service, and grant only the scopes that system needs. See API token permissions.
Copy the token before closing the dialog. Dynamic does not store the plaintext value, so a lost token has to be replaced with a new one.
2

Find your environment ID

Every request is scoped to an environment. Your environment ID is in the dashboard, and each environment has a separate sandbox and live pair. Use the sandbox one while you are trying things out.
3

Make your first call

Read back your own environment. A 200 confirms the token, the environment ID, and the scopes are all correct.
Keep the token server-side. Read it from an environment variable or a secrets manager, never from client-side code or a committed file, since it carries the scopes you granted it.
4

Call something useful

List the users in the environment:
curl
See Get all users for an environment for filtering and pagination.

If it does not work

The full list is in Standard errors.

Next

Authentication

API tokens, user JWTs, and when to use each.

Endpoints

Every endpoint, grouped by resource.
Last modified on September 21, 2026