Authentication
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.
Getting Your Token
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.
Example Request
Here’s a sample request to help you get started:
Endpoint:
/users
Method:
POST
Headers:
Sample Response
Response Body:
Key Terms Used:
- : The token used for authenticating API requests. This token should be included in the
Authorization
header of subsequent API requests. - : Indicates the type of token, typically
Bearer
. - : The duration (in seconds) before the token expires and needs to be refreshed.
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.
Base URL
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.
Was this page helpful?