All Deel API requests require authentication and must be made over HTTPS. Deel supports two authentication methods:
Simple token-based authentication for server-to-server integrations (covered on this page)
Industry-standard protocol for user-authorized app access (see OAuth2 page)
This page covers API Tokens. For OAuth2 authentication, see the OAuth2 documentation.
API tokens provide a straightforward way to authenticate server-to-server API requests. Tokens are used as bearer tokens in the Authorization header.
Select the appropriate token type for your use case:
Organization Token: Provides access to all organization resources
Use this for:
Include your token in the Authorization header as a Bearer token:
API credentials should be changed regularly. Employees leave, API credentials can be accidentally committed to version control, and security flaws can be discovered.
When to rotate:
Scopes control granular access to different parts of the Deel API. When creating a token, you’ll select the scopes (permissions) it needs.
Least Privilege Principle: Only grant the minimum scopes necessary for your use case. Each API endpoint lists its required scopes in the API Reference.
Common scope patterns:
{resource}:read (e.g., contracts:read, people:read){resource}:write (e.g., contracts:write, timesheets:write)Check each endpoint’s documentation to see which scopes are required.
Common causes:
Authorization headerSolutions:
Authorization: Bearer TOKENCommon causes:
Solutions:
Solution:
Cause:
Solution:
https://api.letsdeel.com/rest/v2Store credentials in environment variables or secure vaults, never in code
Rotate tokens quarterly or when team members leave
Request only the scopes your application absolutely needs
Log and monitor API calls to detect unusual patterns
Never make API requests over unencrypted connections
Immediately revoke tokens if compromise is suspected