Skip to navigation

Make your first API call

Create a sandbox, generate a token, and make your first authenticated call. It takes about 5 minutes.

Prerequisites

  • A Deel account. If you don’t have one, sign up at app.deel.com.
  • curl, or another HTTP client.

Creating API tokens, authorizing OAuth apps, and connecting Model Context Protocol (MCP) clients require a completed Customer Due Diligence (CDD) check for your organization. Tokens you already have keep working. If creation fails with 403, contact your Deel representative.

Make your first call

1

Create a sandbox

The sandbox has its own account and API tokens, and doesn’t affect real data or payments.

  1. Sign in to app.deel.com and go to More, then Developer.
  2. Open the API Sandbox tab and select Create Sandbox.
  3. Enter an email address and a password for the sandbox account, then select Confirm.

The API Sandbox tab shows your new sandbox account.

2

Create a sandbox token

Sign in to the sandbox and generate an organization token with the organizations:read scope. See Generating an API token.

Replace YOUR_API_TOKEN in the command below with this token.

Treat the token like a password. Store it in an environment variable or a secrets manager, never in source code.

3

Retrieve your organization

Call GET /organizations on the sandbox base URL:

curl --request GET 'https://api-staging.letsdeel.com/rest/organizations' \
--header 'Authorization: Bearer YOUR_API_TOKEN'

The response returns 200 OK, and data contains your sandbox organization’s id and name.

401 Unauthorized: the token is missing or invalid. Check that you replaced YOUR_API_TOKEN with the token, and that you created the token in the sandbox.

What you built

You made an authenticated call to the sandbox. Every endpoint works the same way: the base URL, the token in the Authorization header, and the scopes the endpoint lists.

Next steps