Get a Canned Response
    • Dark
      Light
    • PDF

    Get a Canned Response

    • Dark
      Light
    • PDF

    Article summary

    Get
    /api/v1/canned-responses/{_id}
    Premium tag

    Get a specific canned response.

    Permission required: view-canned-responses

    Changelog

    VersionDescription
    1.0.0Added
    Header parameters
    X-Auth-Token
    stringRequired

    The authToken of the authenticated user.

    ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
    X-User-Id
    stringRequired

    The userId of the authenticated user.

    ExamplerbAXPnMktTFbNpwtJ
    Path parameters
    _id
    stringRequired

    The canned response's ID.

    ExampleEwmbZ9nLSx7kFamYB
    Responses
    200

    OK

    Success Example
    {
      "cannedResponse": {
        "_id": "EwmbZ9nLSx7kFamYB",
        "shortcut": "user",
        "text": "Meu 32423423423423423",
        "scope": "user",
        "userId": "9L3wuBXKpbAWdfgx8",
        "createdBy": {
          "_id": "9L3wuBXKpbAWdfgx8",
          "username": "rafael.ferreira"
        },
        "_createdAt": "2021-05-26T18:59:17.929Z",
        "_updatedAt": "2021-05-26T18:59:17.929Z"
      },
      "success": true
    }
    Expand All
    object
    cannedResponse
    object
    _id
    string
    shortcut
    string
    text
    string
    scope
    string
    userId
    string
    createdBy
    object
    _id
    string
    username
    string
    _createdAt
    string
    _updatedAt
    string
    success
    boolean
    401

    Unauthorized

    Authorization Error
    {
      "status": "error",
      "message": "You must be logged in to do this."
    }
    object
    status
    string
    message
    string
    403

    Forbidden

    Example 1
    {
      "success": false,
      "error": "User does not have the permissions required for this action [error-unauthorized]"
    }
    Example 2
    {
      "success": false,
      "error": "unauthorized"
    }
    object
    success
    boolean
    error
    string


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.