API Overview
The Errthquake API gives customers the same features and functions that are available in the Errthquake portal, through an HTTP interface delivering JSON documents.
The API is hosted at https://api.errthquake.com/. API calls require an Authorization header that identifies the caller. The identity of the caller determines which workspace can be accessed and what resources and actions are available to them there.
Authorization
Service Account Authorization
Include an Authorization header in Errthquake API calls, using the Authorization token provided when the service account was created on the portal's Access & Permissions page.
Example using the curl utility:
curl -H "Authorization: xxxxxxxxxxxxxxx= yyyyyyyyyyyyyy..." \
https://api.errthquake.com/workspaces
Service account authorization tokens do not expire, but service account permissions can be changed and a service account can be deleted.
Service Account Creation
Service accounts are created on the Access & Permissions page in the Errthquake Portal, with initial permissions assigned at creation time. Customers must have the Manage Service Accounts permission in order to create service accounts.
Customers who can create service accounts also have permission to update their permissions and delete service accounts.
Service accounts are tied to a single workspace. Customers operating multiple workspaces should create service accounts for each workspace they would like to manage through the Errthquake API.
Errthquake APIs
- Workspace API
https://api.errthquake.com/workspaces- List test asset files and recent test results
- Query workspace test hours
- Execute an Errthquake test
- Assets API
https://api.errthquake.com/assets- List test asset files -- test input files, test configuration files, and test object files
- Query test asset metadata
- Upload and download test asset files
- Delete test asset files
- Test Results API
https://api.errthquake.com/results- List load test history
- Query load test details
- Stop a test that is currently in progress
- Download test metrics
- Download test logs
- Variables & Secrets API
https://api.errthquake.com/vars- List environment variables and secrets
- View environment variable values (secrets values cannot be viewed)
- Create environment variables and secrets
- Update environment variables and secrets
- Delete environment variables and secrets
- Permissions API
https://api.errthquake.com/permissions- List customers and service accounts
- Invite collaborators to the workspace
- Create service accounts for the workspace
- View customer and service account permissions
- Update customer and service account permissions
- Remove customers and service accounts from the workspace