Test Using Your Own Input Payload

❗️

Only customers using Alloy-hosted custom models will have this endpoint enabled.

This endpoint allows your team to test Alloy-hosted custom models in isolation before testing them as part of a larger Workflow or Journey. This endpoint accepts a JSON payload to be passed to the custom model and returns the custom model output.

A new evaluation will not be created when using this testing endpoint. Only your custom model code will be executed.

Details

Endpoint: POST https://api.alloy.co/custom-models/<custom_model_id>

custom_model_id: This id is unique to each custom model and will be provided by Alloy

Auth: Standard workflow token / workflow secret auth

Body: JSON object representing the payload that will be used to invoke your custom model

🚧

This endpoint is subject to a rate limit of 10 requests per 5 second period.

Example

curl -X "POST" https://api.alloy.co/custom-models/<custom_model_id \
	-u workflow_token:workflow_secret \
	-H 'content-type:application/json' \
	-d '{"Alloy Data Supplied":[{"attributeName":"name_first","attributeValue":"true"}]}'

If successful, the response body from your custom model will be returned.