<slug> is the tool’s slug from the Tools tab.
Request
- Header:
Authorization: Bearer $GRADIENT_API_KEY. The key needs thetools:invokescope. See Authentication. - Header:
content-type: application/json. - Query:
v=<n>selects a specific deployed tool version. Omit it to run the latest deployed version. - Body: a JSON object with an
inputfield. The value ofinputis delivered to your handler as itsinputargument.
Response
The response also carries execution metadata such as
durationMs and httpStatus for the underlying handler run.
Pass an
idempotency-key header to make a retry safe: the same key returns the first run’s result rather than invoking the handler again.Errors
Handler shape, runtimes, deploy history, and how a tool attaches to a node are covered in Custom tools.