To interact with the Edge API, you’ll need to authenticate your requests using a token. This token is generated from your API credentials and is required for all API calls.
To generate your authentication , follow these steps:
Navigate to Your API Credentials Page:
Log in to your Edge dashboard and go to the section to retrieve your and .
Generate the Token:
Combine your client and secret keys, and encode them in . This will create the token you need for authentication.
Include the Token in Your Requests:
Add the generated token to the header of your API requests.
Here’s a sample request to help you get started:
Endpoint:
/users
Method:
POST
Headers:
Response Body:
Authorization
header of subsequent API requests.Bearer
.message
: A message indicating the result of the request, here showing "Completed successfully"
.status
: The status of the request, with "success"
indicating the request was processed correctly.statusCode
: The HTTP status code, 200
for a successful request.errors
: An array of errors, empty here indicating no errors occurred.When making API requests, you’ll need to use the appropriate depending on the environment:
Production Environment:
Use this URL for live, production-level operations:
Sandbox environment:
Use this URL for testing and development purposes. The sandbox environment mirrors the production environment but is intended for safe testing without affecting real data:
Ensure that you are using the correct base URL for your environment to avoid unintended data manipulation or errors. For testing, always start with the sandbox environment before moving to production.
For security reasons, ensure that your token is stored securely and never shared publicly. Tokens should be refreshed regularly to maintain secure access to the API.
To interact with the Edge API, you’ll need to authenticate your requests using a token. This token is generated from your API credentials and is required for all API calls.
To generate your authentication , follow these steps:
Navigate to Your API Credentials Page:
Log in to your Edge dashboard and go to the section to retrieve your and .
Generate the Token:
Combine your client and secret keys, and encode them in . This will create the token you need for authentication.
Include the Token in Your Requests:
Add the generated token to the header of your API requests.
Here’s a sample request to help you get started:
Endpoint:
/users
Method:
POST
Headers:
Response Body:
Authorization
header of subsequent API requests.Bearer
.message
: A message indicating the result of the request, here showing "Completed successfully"
.status
: The status of the request, with "success"
indicating the request was processed correctly.statusCode
: The HTTP status code, 200
for a successful request.errors
: An array of errors, empty here indicating no errors occurred.When making API requests, you’ll need to use the appropriate depending on the environment:
Production Environment:
Use this URL for live, production-level operations:
Sandbox environment:
Use this URL for testing and development purposes. The sandbox environment mirrors the production environment but is intended for safe testing without affecting real data:
Ensure that you are using the correct base URL for your environment to avoid unintended data manipulation or errors. For testing, always start with the sandbox environment before moving to production.
For security reasons, ensure that your token is stored securely and never shared publicly. Tokens should be refreshed regularly to maintain secure access to the API.