workflow
Get Agent
get/workflows/{workflow_id_or_name}
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
workflow_id_or_namestring required
The agent ID or name.
Query parameters
versioninteger
Specific version number to retrieve. Mutually exclusive with label.
labelstring
Release label name to retrieve (e.g. 'prod', 'staging'). Mutually exclusive with version.
Response
Agent retrieved successfully
Example response
{
"success": true
}Changes
No recorded changes to this operation across all 3 revisions of this API.