Generate a reply draft, streaming the work
Draft with AI as a stream of Server-Sent Events. Writes exactly the reply the plain draft route writes, and says what it did on the way: a step frame for each piece of work once it is done (reading the conversation, reading the contact's LinkedIn profile when the conversation's agent does, writing the reply), each with its measured duration, then one result frame whose data is the draft, or null when nothing usable was written.
Failures arrive as an error frame, because the stream has already answered 200: reason not_found when the conversation is gone, limit when the workspace has used today's AI Assistant allowance, paused when the AI Assistant is paused, and no reason for anything else, including a sequence with no audience table, whose sentence says so.
Closing the connection does not stop the draft: it is still written and saved.
Request
- Base URL: https://api.getoneprofile.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.getoneprofile.ai/inbox-ai/threads/{thread_id}/draft/stream/
- Auth: HTTP bearer
Path parameters
Request body
Response
A stream of Server-Sent Events; the final result frame's data is the draft, or null.
Changes
No recorded changes to this operation across all 1 revision of this API.