Results in {
"status": 404,
"code": "not.found",
"message": "The response was not found for ID: "968e9ece-c425-4031-81e4-f115b1e13d59",
"contextId": "3c9d6765-24db-45ee-9eae-bec4385ea03e",
"details": [],
"errors": []
}
{
"status": 404,
"code": "not.found",
"message": "The response was not found for ID: 968e9ece-c425-4031-81e4-f115b1e13d59",
"contextId": "6369fa41-9482-4bf8-8508-b328ba35e528",
"details": [],
"errors": []
If I Use https://api.{{environment}}/api/v2/responsemanagement/libraries/968e9ece-c425-4031-81e4-f115b1e13d59/
I get details but not the content of the response
{
"id": "968e9ece-c425-4031-81e4-f115b1e13d59",
"name": "NLEMail",
"version": 2,
"createdBy": {
"id": "ed7b763b-2d4b-4636-91dc-912dc31d6a34",
"selfUri": "/api/v2/users/ed7b763b-2d4b-4636-91dc-912dc31d6a34"
},
"dateCreated": "2016-11-17T10:08:08.872Z",
"selfUri": "/api/v2/responsemanagement/libraries/968e9ece-c425-4031-81e4-f115b1e13d59"
}
I Want to retrieve the content (text) of a canned response
In my test environment, these all give me back the texts/content of the responses:
/responsemanagement/responses?pageSize=25&pageNumber=1&libraryId= - list of responses
/responsemanagement/responses/ - single response
/responsemanagement/responses/query with queryPhrase passed in - list of responses
Can you try the above APIs?
I think you have a point around the /responsemanagement/libraries API returning the content/text as well though. We can look into adding that.
Ok checked again and I was mistaken around the libraries API. That one simply returns a list of the libraries that exist in the system. The above 3 APIs are the ones that you can use to retrieve texts for multiple responses or a single response.
For your specific use case, try doing this: /responsemanagement/responses?pageSize=25&pageNumber=1&libraryId=968e9ece-c425-4031-81e4-f115b1e13d59