API Overview
We're happy to help you build whatever functionality you need with the API.
Please don't hesitate to :
- Contact us at support@expditedsecurity.com
- Book a Call at https://app.harmonizely.com/expedited/30-min
We're a team of developers and sysadmins who can troubleshoot and debug whatever API interactions you need to create.
API Key
Your API key can be found on the API Access page accessed from the side navigation menu after logging into your WAF dashboard.
- Each API Key is specific to a single WAF instance
- The API Key is required for all API endpoints
General API Usage
Requests
API endpoints are "RESTish" in that:
- Endpoints are organized around objects and their representation
- Different HTTP verbs applied to the same API endpoint have different effects
- Requests are standard HTTP parameters (not full objects)
- All endpoints are referenced to https://api.expeditedsecurity.com
All API endpoints require that the API key be passed in a URL/Form parameter named 'api_key'.
Responses
API responses are always returned as JSON objects.
Successful Responses
Successfully calling an API endpoint will:
- Return a HTTP Status code of 200
- Have a 'success' value of true
- Have a 'domain' value corresponding to the WAF instance associated with the API key (useful for differentiating staging from production applications)
- May have an additional 'message' value with more information on the request
Example
GET /api/origins?api_key=example-api-key
HTTP 200 - application/json { domain: "example.com", success: true, origin: "example-app.herokuapp.com" }
Failed Responses
Requests may fail for a variety of reasons, most often that:
- The API Key was not included as an 'api_key' parameter
- A required parameter is missing
- The wrong HTTP verb was used than intended
Bad API Key Example
GET /api/origins?api_key=BAD-API-KEY
HTTP 403 - application/json { success: false, message: "Bad API Key Value" }
Missing API Key Example
GET /api/origins
HTTP 403 - application/json { success: false, message: "Missing parameter api_key" }