Send a chat message
Asks Paragraph to do anything it does in the app's chat, such as making a cover for a post or changing the brand, and returns its reply. Leave out sessionId to start a new chat, or send one to continue it. The request waits up to about 45 seconds. If Paragraph is still working then, status is working: check back with GET /v1/chat/{sessionId}. The chat also appears in the app. Chat can't publish, schedule, or send, and automations it sets up stay off: approve those in the app or with the /v1/content publish and /v1/schedule endpoints.
apiKeyAuthorizationBearer <token>API key for authenticating protected endpoints. Pass as Bearer token in Authorization header.
Body
application/json- body
message*stringWhat to ask, as you would in the app's chat
1 <= length <= 20000sessionId?stringContinue this chat. Leave out to start a new one
1 <= length <= 128postId?stringA post of this publication the chat is about, as when chatting beside it in the editor. A chat keeps the first post it's given
1 <= length <= 128Paragraph's reply
application/json- response
sessionId*stringThe chat. Send it with the next message to continue it
status*stringworking while Paragraph is still answering: check again with GET /v1/chat/{sessionId}. failed when the turn stopped before finishing: send the message again
"working""done""failed"reply*|Paragraph's reply to the latest message, so far
files*array<>Files the reply comes with, such as generated images
url*stringOpens this chat in the Paragraph app
curl -X POST "https://example.com/v1/chat" \ -H "Content-Type: application/json" \ -d '{ "message": "string" }'{ "sessionId": "string", "status": "working", "reply": "string", "files": [ { "filename": "string", "mime": "string", "url": "string", "label": "string" } ], "url": "string"}Launch an agent run POST
Approve a run's pieces together, the way the app's launch does. `start` picks when they go out: - `suggested` (default): each at its suggested time. - `now`: starting now, with the spacing between them kept. - `all_now`: all of them now. - `launch`: the article at its time, with its launch posts. - `launch_now`: the article and its launch posts now, the rest after. This counts the same as approving in the app. With no `entries`, it launches every piece of the run that's waiting for approval and not on hold.
Get a chat reply GET
Paragraph's reply to the latest message in a chat. While `status` is `working`, the request waits up to about 45 seconds for it to finish.