SupportWidget
Update Email Agent Enabled
Turns the inbound-email AI agent on or off. When off, inbound support emails notify the team instead of the agent.
Authorization
Authorization AuthorizationBearer <token>
In: header
Path Parameters
projectIdrequiredstring
ID of the project whose email agent to update.
Request Body
application/json
emailAgentEnabledrequiredboolean
Whether the AI agent should reply to inbound support email.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://www.saasco.com/api/v2/projects/string/support/email-agent" \ -H "Content-Type: application/json" \ -d '{ "emailAgentEnabled": true }'{
"emailAgentEnabled": true
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}