tool-registry
Test Execute Tool
Changed onpost/api/public/v2/tool-registry/{identifier}/test-execute
Request
- Base URLhttps://docs.promptlayer.com (the document declares no server; this is the origin it was published from)
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
identifierstring required
Tool ID (numeric) or name
Query parameters
labelstring
Resolve version by label name (e.g. production). Falls back to latest if neither label nor version supplied.
versionstring
Resolve by specific version number
Headers
X-API-KEYstring required
Request body
Response
Tool executed (success or user-code error). User-code errors return status="error" inside the result object — they do NOT raise.
Changes
- info
endpoint added
- info