How to Set Up and Use Deel API for Time Tracking and Shift Management
Prerequisites
Before setting up the Deel API for time tracking and shift management, it is essential to ensure that you have the following prerequisites in place. These requirements are necessary to ensure a smooth and secure setup process:
- A Deel account: You must have a valid Deel account to access the Developer Center and set up the API sandbox environment. If you do not already have one, you can create an account by visiting app.deel.com and following the registration process.
- A sandbox environment set up: The Deel API provides a sandbox environment for testing API calls without affecting real data or production systems. This environment is ideal for developers to experiment with API endpoints and ensure their integration works as expected before deploying to production.
- An API key for the sandbox environment: Once your sandbox environment is set up, you will need to obtain an API key. This key is used to authenticate your API requests and ensure secure access to the Deel API endpoints.
- Basic knowledge of API calls and HTTP methods: Familiarity with HTTP methods such as GET, POST, PUT, and DELETE is essential for interacting with the Deel API. Understanding how to structure API requests and handle responses will help you effectively use the API for time tracking and shift management.
Practical Steps
- Log in to your Deel account and navigate to the Developer Center: Start by logging into your Deel account at app.deel.com. Once logged in, locate the Developer Center, which is typically found in the settings or developer menu. This is where you will set up your sandbox environment and manage your API keys.
- Create an API sandbox environment and obtain your sandbox API key: In the Developer Center, navigate to the API Sandbox tab and click on the ‘Create Sandbox’ button. Enter a unique email address and password for your sandbox account and click ‘Confirm’ to create it. After creating your sandbox, locate your API key or access token and copy it securely. Treat this key like a password and never share it or commit it to version control.
- Use the sandbox API base URL: https://api-staging.letsdeel.com/rest: The sandbox API base URL is crucial for making API calls in the sandbox environment. Always use this URL instead of the production URL to avoid affecting real data or production systems.
- Make a GET request to the /rest/contracts endpoint to verify your setup: To verify that your sandbox environment is set up correctly, make a GET request to the /rest/contracts endpoint. This will return a list of contracts associated with your sandbox account, confirming that your setup is working as expected.
- Use the curl command to test the API with your sandbox API key: To test the API, use the curl command with the sandbox API base URL and your sandbox API key. Replace ‘YOUR_API_KEY’ with your actual sandbox API key in the curl command. This will help you ensure that your API key is correctly formatted and that your sandbox environment is functioning properly.
- Replace YOUR_API_KEY with your actual sandbox API key in the curl command: If you receive an error, double-check your API key and ensure that you are using the correct sandbox URL. This step is critical to ensure that your API calls are authenticated and authorized correctly.
- If you get an error, double-check your API key and ensure you’re using the sandbox URL: If you encounter an error during your API call, it is essential to verify that your API key is correct and that you are using the sandbox URL. This will help you identify and resolve any issues quickly.
Verification
After making your first API call, it is important to verify the following to ensure that your setup is working correctly:
- Check the response from the API call to ensure it is successful: A successful API call will return a response with a status code of 200 OK. This indicates that your request was processed correctly and that the API is functioning as expected.
- Verify that the API key and sandbox URL are correctly used: Ensure that your API key is correctly formatted and that you are using the sandbox URL instead of the production URL. This will help prevent any unintended changes to real data or production systems.
- Ensure that the API call is not affecting real data or production systems: Since the sandbox environment is designed for testing, it is crucial to ensure that your API calls are not affecting real data or production systems. This will help maintain the integrity of your data and prevent any unintended consequences.
Troubleshooting
If you encounter issues while using the Deel API, follow these steps to troubleshoot and resolve the problem:
- If you get an error, double-check your API key and ensure you’re using the sandbox URL: If you receive an error during your API call, it is essential to verify that your API key is correct and that you are using the sandbox URL. This will help identify and resolve any authentication or authorization issues.
- Ensure that your API key is not shared or committed to version control: Never share your API key or commit it to version control. This will help protect your account and prevent unauthorized access to your sandbox environment.
- Verify that your API call is using the correct HTTP method and headers: Ensure that your API call is using the correct HTTP method (GET, POST, PUT, DELETE) and that the headers are properly formatted. This will help ensure that your API requests are processed correctly.
- Check the Deel API documentation for any changes or updates to the endpoints: The Deel API documentation is regularly updated, so it is important to check for any changes or updates to the endpoints. This will help ensure that your API calls are using the latest and most accurate information.
- If the issue persists, contact Deel Support for further assistance: If you are unable to resolve the issue on your own, contact Deel Support for further assistance. They can provide additional guidance and support to help you troubleshoot and resolve the problem.
Limitations
The Deel API sandbox environment has the following limitations that you should be aware of:
- The sandbox environment is for testing and does not affect real data or production systems: The sandbox environment is designed for testing and experimentation, and it does not affect real data or production systems. This ensures that your testing activities do not interfere with your actual business operations.
- The sandbox API base URL is different from the production API base URL: The sandbox API base URL is different from the production API base URL. Always use the sandbox URL for testing and the production URL for live API calls to ensure that your data is handled correctly.
- The sandbox environment may have different endpoints or features compared to the production environment: The sandbox environment may have different endpoints or features compared to the production environment. This means that some features or endpoints may not be available in the sandbox environment, so it is important to test thoroughly before deploying to production.
- The sandbox environment may have limitations on the number of API calls or data size: The sandbox environment may have limitations on the number of API calls or data size. This means that you should test your API calls within these limitations to ensure that your application functions correctly in the sandbox environment.
FAQs
To set up the Deel API for time tracking, you need to create a Deel account, set up an API sandbox environment, and obtain your sandbox API key. This will allow you to test API calls without affecting real data or production systems.
The sandbox API base URL for Deel is https://api-staging.letsdeel.com/rest. This URL is used to make API calls in the sandbox environment and should not be used for production API calls.
To make your first API call, use the curl command with the sandbox API base URL and your sandbox API key. Replace ‘YOUR_API_KEY’ with your actual sandbox API key in the curl command to ensure that your API call is authenticated and authorized correctly.
If you get an error when making an API call, double-check your API key and ensure that you are using the sandbox URL. This will help identify and resolve any authentication or authorization issues that may be causing the error.
To update a shift recorded on a contract before its payroll period closes, use the Deel API endpoint for updating a shift. This endpoint allows you to correct a shift recorded on a contract before its payroll period closes, ensuring that the data is accurate and up-to-date.
Methodology Note
This guide is based on official Deel API documentation reviewed with local AI screening. It does not include hands-on testing. All steps are derived from documented product controls and settings. No compensation, disclosure, or marketing content is included. Illustrative examples are hypothetical and not based on real-world data.

