Saved Replies

GET /users/:user/saved_replies

A Saved Reply is a user-defined canned message body that can be quickly chosen from a list and sent as a message.

Examples

List all Saved Replies a User has available

Request

GET /users/zygnZv/saved_replies
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X GET /users/zygnZv/saved_replies
    

Response

Status

200

Response Type

SavedReplyCollection

Example Body

{
  "@type": "SavedReplyCollection",
  "id": "/users/zygnZv/saved_replies",
  "@context": "/contexts/SavedReplyCollection.jsonld",
  "totalItems": 1,
  "members": [
    {
      "@type": "SavedReply",
      "@context": "/contexts/SavedReply.jsonld",
      "id": "/saved_replies/QxvonQv",
      "title": "User's Reply",
      "content": "Thanks!",
      "shared": false,
      "user": "/users/zygnZv"
    }
  ],
  "view": {
    "@type": "hydra:PartialCollectionView",
    "id": "/users/zygnZv/saved_replies",
    "@context": "/contexts/hydra:PartialCollectionView.jsonld",
    "first": "/users/zygnZv/saved_replies",
    "next": null,
    "previous": null
  }
}

Table of contents


© 2024 TextUs