cURL
curl --request GET \ --url https://bot.code4source.com/api/v1/typebots/{typebotId}/results/{resultId} \ --header 'Authorization: Bearer <token>'
{ "result": { "id": "<string>", "createdAt": "<string>", "typebotId": "<string>", "variables": [ { "id": "<string>", "name": "<string>", "value": "<string>", "isSessionVariable": true } ], "isCompleted": true, "hasStarted": true, "isArchived": true, "lastChatSessionId": "<string>", "answers": [ { "blockId": "<string>", "content": "<string>", "attachedFileUrls": [ "<string>" ] } ] } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Where to find my bot's ID?
The resultId is returned by the /startChat endpoint or you can find it by listing results with /results endpoint
resultId
/results
Successful response
Show child attributes