EasyRoutes API Getting Started Guide
EasyRoutes API is currently in public preview. During the public preview phase, frameworks may be subject to potential changes.
Table of Contents:
Set up API client ID and secret key
Before using the API, you need to complete a quick verification process:
1. Go to the API Settings page. You may see the following banner:
2. Click on Request access, enter your contact information, and submit the request form.
3. Our team will review your submission and notify you once verified.
Once we have verified your account, you'll be able to generate an API key. To enable API access, go to EasyRoutes Settings
> API settings
and click Generate API Key
.
Your Client ID
is associated with your shop and always available through this settings page. However, the Secret key
is only available immediately after it is generated. The secret key should be copied and stored in a secure location. If you forget your secret key, you will have to rotate it to a new one.
Authenticating and making requests
See our EasyRoutes Routes API article for full API documentation.
To get started, exchange your client ID and secret key for a short-lived access token using the /authenticate
endpoint.
curl -X POST \ -H "Content-Type: application/json; charset=utf-8" \ -d '{ "clientId":"...", "clientSecret":"..." }' \ https://easyroutes.roundtrip.ai/api/2024-07/authenticate
You can then use the access token to retrieve routes like so:
curl \ -H "Authorization: Bearer ..." \ https://easyroutes.roundtrip.ai/api/2024-07/routes
Refer to Authenticate API for details.
Rotating Secrets
Forgot your secret key? If you have forgotten your secret key, you can initiate a key rotation to generate a new one. During the rotation, both the old key and the newly generated one will be valid for API authentication.
Once again, the new secret key is only viewable immediately after you generate it. Please copy and store it in a secure location before completing the rotation!
Once you have migrated clients to the new key, click the Finish rotation
button to disable the old key. You can also cancel the rotation at any time to disable the new key instead.
Routes and Webhooks API Documentation
Now that you have setup your initial API access, learn more about our API below and view our docs:
- Routes API - add stops into EasyRoutes for route planning, and access route and stop data
- Webhooks API - react to real-time changes in routes and stops for integrations or connect with Zapier to integrate with no-code workflows
Zapier Integrations
You can use our API with Zapier to unlock seamless no-code workflows with your favorite apps and services, triggered by route updates in EasyRoutes or to import stops from your own data sources
- Integrate Zapier with Webhooks - Learn how to connect webhooks to Zapier that are triggered by route updates or events in EasyRoutes.
- Import Stops Action - You can Import stops into EasyRoutes for planning with our Import Stop action on Zapier.