The Redox Platform API is a RESTful JSON utility that you can use to automate your organization's monitoring and Redox workflows. You can call Platform API endpoints to programmatically:
- create and manage traffic alert rules;
- view audit events in your Redox organization;
- manage custom authentication for destinations;
- view environment(s) in your Redox organization;
- search and export log data;
- manage API connectivity, including API keys, sources, and destinations (or endpoints) for your Redox organization; or
- review and export transaction usage data.
The Platform API is meant to be used by back-end servers accessing Platform API resources and FHIR® endpoints. It also allows you to use record locator service.
The Platform API relies on user-level API keys to authenticate requests. User-level API keys are located in the user menu on the bottom left of the Redox dashboard. View user-level API keys in the dashboard or learn how to authenticate a user-level API key.
All requests via the Platform API should be sent to https://api.redoxengine.com/platform/{endpoint}. Check out our Platform API reference for more detailed endpoint specifications.
Depending on the Platform endpoint, you may need to include path and/or request parameters. Path parameters go directly into the endpoint URL while the request parameters go in the request body.
Typically, required parameters (e.g., log ID if querying for a specific log) should go in the URL path while optional parameters can be included in the request body.
Depending on the endpoint you're using, you may need to include some of these parameters:
Path parameter | Type | Description |
---|---|---|
:version | string | Depending on the Platform endpoint you're using, you may need to include which version of the Platform API you're using. This only applies if the endpoint is available for both v0 and v1. |
organizationID | string | If the Platform endpoint is specific to a Redox dashboard organization, then you must include the relevant organization ID. You can locate your organization ID on the Organization Profile page of the Redox dashboard. |
environment | string | If the Platform endpoint is specific to an environment (e.g., development, staging, production), then you must identify the relevant environment. For example, traffic alert rules apply to specific environments, so you'd need to identify the environment in the endpoint path. |
destinationID | string | If the Platform endpoint is specific to one of the destinations in your dashboard organization (i.e., one of your connection's configured endpoints that you want to send API requests to), then you must include the relevant destination ID. |
Any optional parameters (e.g., for filtering, sorting, or controlling response output) can be included in the query string like this: ?param=123. Just a note, any datetime request parameters are in ISO 8601 format (e.g., 2023-01-10T19:46:40.081Z).
If you want to paginate or count results in the response, you can add these parameters:
Query parameter | Type | Description |
---|---|---|
_page | Integer | Include this if you want the response to return a specific page number from the results. 1 is the first page. |
_count | Integer | Define the number of records to return per page. The maximum value per page is 50. |
Every response from the Platform API is contained in a wrapper object, even when the returned value is already an object. This payload wrapper contains a meta object, which contains metadata about your request, and a payload object, which contains the results related to your request.
The payload object may contain fields that return a single result (singular field name) or an array of results (plural field name).
You can page through results via the links provided in the meta.page object in the response. Specifically, you can page through a set of results using the next and prev paths indicated within the meta.page.links object. At the beginning or end of a set of results, the prev or next links are undefined.
You may also see metadata counts, which display the total size of the result set, including totalRecords, totalPages, and pageSize.
Platform API requests are limited to about 1 minute before timing out and returning a 504 Gateway Timeout. If your request keeps timing out, we recommend defining a shorter time period for results by using the updatedAfter and updatedBefore or createdAfter and createdBefore request parameters.
If there are any errors, they're returned in a standard payload. For reference, check out a list of possible error codes.