GET
/v1/chat/{sessionId}

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.

Authorization

apiKey
headerAuthorizationBearer <token>

API key for authenticating protected endpoints. Pass as Bearer token in Authorization header.

Path Parameters

sessionId*string

The chat, from POST /v1/chat

Response Body

Paragraph's reply

application/json
  1. response
sessionId*string

The chat. Send it with the next message to continue it

status*string

working while Paragraph is still answering: check again with GET /v1/chat/{sessionId}. failed when the turn stopped before finishing: send the message again

Value in"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*string

Opens this chat in the Paragraph app

curl -X GET "https://example.com/v1/chat/string"
{  "sessionId": "string",  "status": "working",  "reply": "string",  "files": [    {      "filename": "string",      "mime": "string",      "url": "string",      "label": "string"    }  ],  "url": "string"}