Link Search Menu Expand Document

Updated Thu Sep 23rd 2021, 14:49 UTC

Index

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
{
  "@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": "Thanks!",
      "content": null,
      "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


© 2021 TextUs