Execute Agent (Deprecated)
POST/agent-studio/public-api/agents/:agentId/execute
deprecated
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Deprecated endpoint - use POST /agent/:agentId/execute instead.
Executes the specified agent and returns a non-streaming JSON response with the complete agent output. The agent must be in active status and belong to the specified location. locationId is required in the request body.
Session Management:
- For the first message in a new session, do not include the
executionIdin the request payload. - The API will return an
executionIdalong with the agent response, which uniquely identifies this conversation session. - To continue the conversation within the same session, include the
executionIdfrom the previous response in subsequent requests.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
Agent executed successfully
Agent is not active or invalid request - locationId is required
Unauthorized
User does not have required scopes to execute this agent
Agent not found
Unprocessable Entity
Internal Server Error