The nexroute API uses API keys to authenticate requests. You can view and manage your API keys in your dashboard.
Authentication to the API is performed via the X-API-Key header. You must include your API key in every request to the API.
X-API-Key: <YOUR_API_KEY>
Example Request
Here is an example of a request authenticated with an API key:
curl https://api.nexroute.io/v1/quote \
-H "X-API-Key: 123456789" \
...
Error Codes
If your API key is missing or invalid, the API will return a 401 Unauthorized error.
| Code | Description |
|---|
401 | Unauthorized. Your API key is missing or invalid. |
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, etc.