Create AOP
Create a new AOP (Agent Operating Procedure) asset with the given configuration. The created AOP can then be executed via /aop/execute-async, inspected via /aop/{asset_id}/config, and updated via PUT /aop/{asset_id}/config. Use [[ placeholder ]] syntax in the prompt for user inputs supplied at execution time.
Authentication
X-API-KEYstring
API Key authentication via header
OR
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
agentId
ID of the agent to use for execution
agent_config
Full agent configuration override for this AOP
description
Human-readable description of what the AOP does
icon
Icon identifier for UI display
parent_folder_id
ID of the folder to create the AOP in (workspace root if omitted)
prompt
The main prompt/instructions for the AOP. Use [[ placeholder ]] syntax for user inputs supplied at execution time
section
Section/category for organization
structured_output
JSON schema for structured output
title
Title of the AOP (defaults to ‘Untitled AOP’)
Response
AOP created successfully
asset_id
ID of the newly created AOP asset
title
Title of the created AOP
message
Human-readable status message
status
Status of the operation
Errors
400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error
500
Internal Server Error
