Toggle Autopilot
Toggle the autopilot mode of an existing message flow.
Headers
x-api-keystringrequiredAPI key used for authenticating requests to the API.
x-workspace-idstringrequiredWorkspace identifier for the API.
Path Parameters
idstringrequiredThe unique ID of the message flow where autopilot will be toggled.
stringdefault: sAn optional, empty object as the default body.
Response Fields
_idstringThe unique identifier for the message flow where autopilot was toggled.
workspaceIdstringThe identifier of the workspace containing the message flow.
namestringThe name of the message flow.
descriptionstringA description of what the message flow is designed to handle.
agentstringThe identifier of the agent associated with this message flow.
promptstringThe system or initial prompt set for the AI agent in the message flow.
initiationMessagestringThe initial message that triggers the message flow. This is crucial for the generateMessage functionality.
isActivebooleanIndicates whether the message flow is currently active.
autopilotbooleanShows the current state of autopilot for this message flow after toggling. If true, autopilot is now enabled; if false, it is now disabled.
messageChannelstringThe type of communication channel used by the message flow, such as "SMS".
createdAtstringThe timestamp when the message flow was created.
updatedAtstringThe timestamp the last time the message flow was updated.
{
"_id": "1234567890abcdef12345678",
"workspaceId": "abcdef1234567890abcdef12",
"name": "SampleFlow",
"description": "Sample description for the flow.",
"agent": "0987654321fedcba09876543",
"prompt": "You are a helpful assistant.",
"initiationMessage": "Hello!",
"isActive": true,
"autopilot": true,
"messageChannel": "SMS",
"createdAt": "2025-01-01T12:00:00.000Z",
"updatedAt": "2025-01-15T08:30:00.000Z"
}
