The Redox Platform API is a RESTful JSON utility that you can use to automate your Redox organization's monitoring and workflows. You can call Platform API endpoints to perform administrative functions (e.g., manage access control), manage your Redox assets (e.g., sources, destinations, filters), search and export log data, and more. Review a list of available Platform API endpoints.
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 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, alert rules apply to specific environments, so you'd need to identify the environment in the endpoint path. |
Any optional parameters for filtering, sorting, or controlling response output can be included in the query string (e.g., ?param=123).
Any datetime request parameters are in ISO 8601 format (e.g., 2023-01-10T19:46:40.081Z).
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).
Pagination breaks up the results of a query into pages, or sets. So instead of returning all possible results at once, you can view a page at a time.
Refer to the supported query parameters in each endpoint schema to paginate results. Then you can query for pages of results using the URLs in the meta.page.links object in the paginated response.
The URL values return the relevant page of results. Sometimes, only a subset of links are available. For example, a next property isn't populated on the last page of results. But you can always use the available URLs to fetch additional pages of results.
The meta.page object may contain other properties or objects. For example, you may see metadata counts, which display the total size of the result set, including totalRecords, totalPages, and pageSize. These may be useful for troubleshooting purposes, but shouldn't be functionally relied upon.
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.