Get your saved replies
const url = 'https://app.mondochat.io/v1/me/replies';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.mondochat.io/v1/me/replies \ --header 'Authorization: Bearer <token>'Returns the caller’s quick replies and away reply. A part whose workspace key is off reads [] or {enabled: false, text: null}. Only the caller sees them: never the peer, webhooks, the server API or moderators. Needs a session token.
Errors: 403 policy_denied with reason seller when the caller’s role is not a seller.
Guide: Conversations.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
A seller’s quick replies and away reply.
object
Example
{ "away": { "enabled": true, "text": "Back at 21h" }, "quick": [ "Prices: 5 EUR/min", "Online at 21h" ]}Problem
An RFC 9457 problem: the body of every error answer.
object
The stable error code to branch on, such as policy_denied.
What went wrong this time, when there is more to say.
For validation, one entry per invalid field.
One invalid field.
object
The path to the field.
What is wrong with it.
The path of the request.
For policy_denied and limit_reached, the rule or limit that refused the request; for forbidden, a short cause such as you_blocked; for banned, temporary when the ban expires.
The HTTP status code.
A short summary of the problem.
A URL that names the problem, https://app.mondochat.io/problems/<code>.
Example
{ "code": "policy_denied", "detail": null, "instance": "/v1/conversations/0199d6a0-2000-7000-8000-000000000001", "reason": "pins", "status": 403, "title": "Policy denied", "type": "https://app.mondochat.io/problems/policy_denied"}