Just a heads-up!
All the data in the Sandbox environment is fake. It’s designed to help you get familiar with how Jobs work before executing them on real data sources.
Once you’ve created a free account, you’ll immediately receive your Client ID and Sandbox secret through the Dashboard. You can use the Sandbox to test all of your Jobs and ensure everything works as expected.When you’re ready to interact with real data, you can upgrade to get your Production secret from your Dashboard.
Open the API Reference in a new tab.First, here is how to run EnsureConnection to get your Access token:
Click Try it while Send your job requests is selected from the menu on the left.
Use your Client ID and Sandbox secret (from the Dashboard) to authenticate.
Type EnsureConnection in the job_code field.
Click Add new property and type username, then press Enter.
Enter any value you want as the username (it doesn’t matter in Sandbox)
Click Add new property and type password, then press Enter.
Enter any value you want as the password (it doesn’t matter in Sandbox)
Click Add new property and type source_guid, then press Enter.
Enter fee328b0-fc48-4699-a245-5de34313952e as the source_guid (this is the source_guid for the source Aetna, but it could be any valid source_guid)
Click Send on top.
The response will come via webhook to the Webhook URL you have specified in your Dashboard.Alternatively, you can copy/paste the following curl request and inject the required fields.
Now, let’s call FetchBalance to receive a balance. The balance you will receive is fake, because we’re in Sandbox, but it should give you an idea of the sort of webhooks FetchBalance would return.
Here is how to do it from the same API Reference page.
Click Try it while Send your job requests is selected from the menu on the left.
Use your Client ID and Sandbox secret (from the Dashboard) to authenticate.
Type FetchBalance in the job_code field.
Click Add new property and type access_token, then press Enter.
Enter the access token value you got from the earlier EnsureConnection webhook.
There you have it!
You now know how to make calls to our API.Of course, different Job Codes will require different inputs, but the core concept is the same across the board.
Unlike the Sandbox, the Live environment connects to actual data sources.You can receive a Production secret by upgrading your subscription via the Dashboard.Use your Client ID and Production secret for authentication.
You will also need to point to the Live endpoint. You can change this by replacing “sandbox” for “live” in the URL.
Copy
Ask AI
https://live.deck.co/api/v1
The method, however, is exactly like the Sandbox.
Know your environmentsThe Production environment uses the Live API and connects to real data.
The Sandbox environment uses the Sandbox API and works entirely with mock data.