AI inventory workflows: create custom endpoints
Define custom input fields, let Resell Scan calculate a concrete output value from them, and use that value in your inventory system, for example in JTL workflows.
In this guide
One endpoint returns one plain text value
An inventory workflow is a custom AI endpoint. You send JSON with your input fields, authenticate with x-api-key, and receive text/plain with the calculated value.
Create an AI inventory workflow
Open “Developer” -> “AI inventory workflows” and create a new workflow with name, output field, and input fields.

Secure API key and endpoint URL
After creation, Resell Scan shows the API key once and redirects you to the endpoint detail page.
Header
The inventory endpoint uses x-api-key. This is separate from the bearer token used by the general API.
Cost
In the interface, the workflow is shown as 1 token per execution. If tokens are insufficient, the endpoint responds with 402.
curl -X POST "<API_SERVICE_URL>/wawi/{endpointId}" \
-H "x-api-key: rsw_..." \
-H "Content-Type: application/json" \
-d '{"ItemName":"Pokemon Diamond","Console":"Nintendo DS"}'Use the URL from the detail page
Set up the JTL workflow
Create a JTL workflow that sends a web request to your Resell Scan endpoint.

Fill the body template with inventory variables
Copy the body template and replace placeholders with suitable JTL variables.


{
"ItemName": "{{Workflow.Item.Name}}",
"Platform": "{{Workflow.Attributes.Platform}}"
}Fill number fields cleanly
Test and review logs
Send a test request or start the JTL workflow. In the endpoint details, you see recent requests with input, output, and status.
Pokemon Diamond Edition