API Introduction
The Splight API is a powerful tool that allows you to interact with the Splight platform programmatically. It provides a wide range of endpoints for managing resources, retrieving data, and performing
Last updated
Was this helpful?
The Splight API is a powerful tool that allows you to interact with the Splight platform programmatically. It provides a wide range of endpoints for managing resources, retrieving data, and performing
Last updated
Was this helpful?
To authenticate with the Splight API, you need to include your access key and secret key in the request headers. Access key and secret key are unique for each user. You can find a guide on how to create them in the section of the documentation.
Secret keys can be provided to the API in the Authorization header as:
The full set of endpoints available in the API can be found in the .
You can find some examples of how to use the API according the resource you want to trigger in the section of the documentation.
The API allows you to filter resources using query parameters based on their fields, such as name, tag, and others.
The general syntax is:
Where
{url}
is the endpoint URL.
{field}
is the field you want to filter by.
{filter}
is the filter type.
{value}
is the value you want to match.
Example:
*This will retrieve all objects that contain the word "example" in their name field.
The following filter types are supported:
contains
Retrives all objects that contain the specified value in the field.
icontains
Retrieves all objects that contain the specified value in the field, ignoring case.
search
Retrieves all objects that match the specified value in the field.
The API response is paginated and the default page size is 20. You can use the page_size
query parameters to control the pagination of the response, as the following example: