Skip to main content

Custom Endpoints

When a standard endpoint isn't quite enough to do what you want we can create a custom endpoint.

This is done through our scripting system and allows authorized resellers to create a script that can take inputs from your integration, perform actions and process data, then output a JSON value in an agreed format.

Triggering the script to run via the Run Script By ID endpoint using

ANY
method. The system invokes an RPC for the given script and returns the data after processing is completed.

info

Body, query parameters, headers, and the method will be passed into the script context.

The timeout for a script RPC is configurable, the default value is 5 seconds, configurable up to 60 seconds.

If you think a custom endpoint is better suited to your integration, contact your authorized reseller for more information.

Request
https://api.centrix.world/641c1177ebc8b2f3c195b02c/scripts/get_timestamp
Response
{
"timestamp": "2023-03-23T08:58:51.232Z",
"data": "2023-03-16T04:58:51.212-04:00"
}