Back to Collection Items
-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
DECLARE @hr int
DECLARE @iTmp0 int
-- Important: Do not use nvarchar(max). See the warning about using nvarchar(max).
DECLARE @sTmp0 nvarchar(4000)
-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
DECLARE @http int
-- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
EXEC sp_OASetProperty @http, 'BasicAuth', 1
EXEC sp_OASetProperty @http, 'Login', 'username'
EXEC sp_OASetProperty @http, 'Password', 'password'
DECLARE @queryParams int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @queryParams OUT
EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'page[after]', '5e1606762556d93e9c176f69'
EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'page[before]', '5e1606762556d93e9c176f69'
EXEC sp_OAMethod @queryParams, 'UpdateInt', @success OUT, 'page[size]', 10
DECLARE @resp int
EXEC sp_OAMethod @http, 'QuickRequestParams', @resp OUT, 'GET', 'https://domain.com/v2/apps/{{appId}}/conversations/{{conversationId}}/messages', @queryParams
EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
IF @iTmp0 = 0
BEGIN
EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @queryParams
RETURN
END
DECLARE @sbResponseBody int
-- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody
DECLARE @jResp int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT
EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
EXEC sp_OASetProperty @jResp, 'EmitCompact', 0
PRINT 'Response Body:'
EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
PRINT @sTmp0
DECLARE @respStatusCode int
EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT
PRINT 'Response Status Code = ' + @respStatusCode
IF @respStatusCode >= 400
BEGIN
PRINT 'Response Header:'
EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
PRINT @sTmp0
PRINT 'Failed.'
EXEC @hr = sp_OADestroy @resp
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @queryParams
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
RETURN
END
EXEC @hr = sp_OADestroy @resp
-- Sample JSON response:
-- (Sample code for parsing the JSON response is shown below)
-- {
-- "messages": [
-- {
-- "id": "5e552ef595e5206375bb835d",
-- "received": "2019-03-21T18:48:52.760Z",
-- "author": {
-- "type": "business",
-- "userId": "5963c0d619a30a2e00de36b8",
-- "displayName": "Steve",
-- "avatarUrl": "https://www.gravatar.com/image.jpg"
-- },
-- "content": {
-- "type": "text",
-- "text": "Hello!",
-- "actions": [
-- {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- }
-- ]
-- },
-- "source": {
-- "type": "ios",
-- "integrationId": "de13bee15b51033b34162411",
-- "originalMessageId": "5f40256af057d0000dda9bd7",
-- "originalMessageTimestamp": "2019-03-21T18:45:53.720Z",
-- "client": {
-- "id": "5c9a34160c89726709136733",
-- "type": "telegram",
-- "status": "active",
-- "integrationId": "582dedf230e788746891281a",
-- "externalId": "your-own-id",
-- "lastSeen": "2020-08-20T16:13:07.462Z",
-- "linkedAt": "2020-06-23T14:33:47.492Z",
-- "displayName": "Steve",
-- "avatarUrl": "http://EGnaLcOXhxGTLKJ.jpuft043dnis59F",
-- "info": {},
-- "raw": {}
-- },
-- "device": {
-- "id": "de13bee15b51033b34162411",
-- "type": "web",
-- "guid": "in laboris ex",
-- "clientId": "amet minim do eu",
-- "status": "active",
-- "integrationId": "sed enim aliquip commodo",
-- "lastSeen": "elit proident",
-- "pushNotificationToken": "officia labore",
-- "info": {},
-- "appVersion": "irure deserunt qui veniam consequat"
-- }
-- },
-- "quotedMessage": {
-- "type": "message",
-- "message": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- }
-- },
-- "metadata": {
-- "lang": "en-ca"
-- },
-- "deleted": true
-- },
-- {
-- "id": "5e552ef595e5206375bb835d",
-- "received": "2019-03-21T18:48:52.760Z",
-- "author": {
-- "type": "business",
-- "userId": "5963c0d619a30a2e00de36b8",
-- "displayName": "Steve",
-- "avatarUrl": "https://www.gravatar.com/image.jpg"
-- },
-- "content": {
-- "type": "text",
-- "text": "Hello!",
-- "actions": [
-- {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- }
-- ]
-- },
-- "source": {
-- "type": "ios",
-- "integrationId": "de13bee15b51033b34162411",
-- "originalMessageId": "5f40256af057d0000dda9bd7",
-- "originalMessageTimestamp": "2019-03-21T18:45:53.720Z",
-- "client": {
-- "id": "5c9a34160c89726709136733",
-- "type": "telegram",
-- "status": "active",
-- "integrationId": "582dedf230e788746891281a",
-- "externalId": "your-own-id",
-- "lastSeen": "2020-08-20T16:13:07.462Z",
-- "linkedAt": "2020-06-23T14:33:47.492Z",
-- "displayName": "Steve",
-- "avatarUrl": "http://bnAEzvgnDimaLnqEYLUCQXbU.ywrnS-uvD-0kBryUe",
-- "info": {},
-- "raw": {}
-- },
-- "device": {
-- "id": "de13bee15b51033b34162411",
-- "type": "web",
-- "guid": "laborum eiusmod adipisicing esse",
-- "clientId": "labore adipisicing eiusmod",
-- "status": "inactive",
-- "integrationId": "aute",
-- "lastSeen": "anim reprehenderit proident pariatur incididunt",
-- "pushNotificationToken": "qui dolore Excepteur in",
-- "info": {},
-- "appVersion": "incididunt labore dolore pariatur"
-- }
-- },
-- "quotedMessage": {
-- "type": "message",
-- "message": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- }
-- },
-- "metadata": {
-- "lang": "en-ca"
-- },
-- "deleted": true
-- }
-- ],
-- "meta": {
-- "hasMore": false,
-- "afterCursor": "55c8d9758590aa1900b9b9f6",
-- "beforeCursor": "55c8d9758590aa1900b9b9f6"
-- },
-- "links": {
-- "prev": "https://api.smooch.io/v2/apps?page[before]=fcafad804c39a39648004af9",
-- "next": "https://api.smooch.io/v2/apps?page[after]=5ea868f862cdd24abf010b38"
-- }
-- }
-- Sample code for parsing the JSON response...
-- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
DECLARE @id nvarchar(4000)
DECLARE @received nvarchar(4000)
DECLARE @v_Type nvarchar(4000)
DECLARE @UserId nvarchar(4000)
DECLARE @DisplayName nvarchar(4000)
DECLARE @AvatarUrl nvarchar(4000)
DECLARE @contentType nvarchar(4000)
DECLARE @Text nvarchar(4000)
DECLARE @sourceType nvarchar(4000)
DECLARE @IntegrationId nvarchar(4000)
DECLARE @OriginalMessageId nvarchar(4000)
DECLARE @OriginalMessageTimestamp nvarchar(4000)
DECLARE @Id nvarchar(4000)
DECLARE @ClientType nvarchar(4000)
DECLARE @Status nvarchar(4000)
DECLARE @ClientIntegrationId nvarchar(4000)
DECLARE @ExternalId nvarchar(4000)
DECLARE @LastSeen nvarchar(4000)
DECLARE @LinkedAt nvarchar(4000)
DECLARE @ClientDisplayName nvarchar(4000)
DECLARE @ClientAvatarUrl nvarchar(4000)
DECLARE @DeviceId nvarchar(4000)
DECLARE @DeviceType nvarchar(4000)
DECLARE @Guid nvarchar(4000)
DECLARE @ClientId nvarchar(4000)
DECLARE @DeviceStatus nvarchar(4000)
DECLARE @DeviceIntegrationId nvarchar(4000)
DECLARE @DeviceLastSeen nvarchar(4000)
DECLARE @PushNotificationToken nvarchar(4000)
DECLARE @AppVersion nvarchar(4000)
DECLARE @quotedMessageType nvarchar(4000)
DECLARE @Value nvarchar(4000)
DECLARE @Lang nvarchar(4000)
DECLARE @deleted int
DECLARE @j int
DECLARE @count_j int
DECLARE @value nvarchar(4000)
DECLARE @HasMore int
EXEC sp_OAMethod @jResp, 'BoolOf', @HasMore OUT, 'meta.hasMore'
DECLARE @AfterCursor nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @AfterCursor OUT, 'meta.afterCursor'
DECLARE @BeforeCursor nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @BeforeCursor OUT, 'meta.beforeCursor'
DECLARE @Prev nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Prev OUT, 'links.prev'
DECLARE @v_Next nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @v_Next OUT, 'links.next'
DECLARE @i int
SELECT @i = 0
DECLARE @count_i int
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'messages'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'messages[i].id'
EXEC sp_OAMethod @jResp, 'StringOf', @received OUT, 'messages[i].received'
EXEC sp_OAMethod @jResp, 'StringOf', @v_Type OUT, 'messages[i].author.type'
EXEC sp_OAMethod @jResp, 'StringOf', @UserId OUT, 'messages[i].author.userId'
EXEC sp_OAMethod @jResp, 'StringOf', @DisplayName OUT, 'messages[i].author.displayName'
EXEC sp_OAMethod @jResp, 'StringOf', @AvatarUrl OUT, 'messages[i].author.avatarUrl'
EXEC sp_OAMethod @jResp, 'StringOf', @contentType OUT, 'messages[i].content.type'
EXEC sp_OAMethod @jResp, 'StringOf', @Text OUT, 'messages[i].content.text'
EXEC sp_OAMethod @jResp, 'StringOf', @sourceType OUT, 'messages[i].source.type'
EXEC sp_OAMethod @jResp, 'StringOf', @IntegrationId OUT, 'messages[i].source.integrationId'
EXEC sp_OAMethod @jResp, 'StringOf', @OriginalMessageId OUT, 'messages[i].source.originalMessageId'
EXEC sp_OAMethod @jResp, 'StringOf', @OriginalMessageTimestamp OUT, 'messages[i].source.originalMessageTimestamp'
EXEC sp_OAMethod @jResp, 'StringOf', @Id OUT, 'messages[i].source.client.id'
EXEC sp_OAMethod @jResp, 'StringOf', @ClientType OUT, 'messages[i].source.client.type'
EXEC sp_OAMethod @jResp, 'StringOf', @Status OUT, 'messages[i].source.client.status'
EXEC sp_OAMethod @jResp, 'StringOf', @ClientIntegrationId OUT, 'messages[i].source.client.integrationId'
EXEC sp_OAMethod @jResp, 'StringOf', @ExternalId OUT, 'messages[i].source.client.externalId'
EXEC sp_OAMethod @jResp, 'StringOf', @LastSeen OUT, 'messages[i].source.client.lastSeen'
EXEC sp_OAMethod @jResp, 'StringOf', @LinkedAt OUT, 'messages[i].source.client.linkedAt'
EXEC sp_OAMethod @jResp, 'StringOf', @ClientDisplayName OUT, 'messages[i].source.client.displayName'
EXEC sp_OAMethod @jResp, 'StringOf', @ClientAvatarUrl OUT, 'messages[i].source.client.avatarUrl'
EXEC sp_OAMethod @jResp, 'StringOf', @DeviceId OUT, 'messages[i].source.device.id'
EXEC sp_OAMethod @jResp, 'StringOf', @DeviceType OUT, 'messages[i].source.device.type'
EXEC sp_OAMethod @jResp, 'StringOf', @Guid OUT, 'messages[i].source.device.guid'
EXEC sp_OAMethod @jResp, 'StringOf', @ClientId OUT, 'messages[i].source.device.clientId'
EXEC sp_OAMethod @jResp, 'StringOf', @DeviceStatus OUT, 'messages[i].source.device.status'
EXEC sp_OAMethod @jResp, 'StringOf', @DeviceIntegrationId OUT, 'messages[i].source.device.integrationId'
EXEC sp_OAMethod @jResp, 'StringOf', @DeviceLastSeen OUT, 'messages[i].source.device.lastSeen'
EXEC sp_OAMethod @jResp, 'StringOf', @PushNotificationToken OUT, 'messages[i].source.device.pushNotificationToken'
EXEC sp_OAMethod @jResp, 'StringOf', @AppVersion OUT, 'messages[i].source.device.appVersion'
EXEC sp_OAMethod @jResp, 'StringOf', @quotedMessageType OUT, 'messages[i].quotedMessage.type'
EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'messages[i].quotedMessage.message.value'
EXEC sp_OAMethod @jResp, 'StringOf', @Lang OUT, 'messages[i].metadata.lang'
EXEC sp_OAMethod @jResp, 'BoolOf', @deleted OUT, 'messages[i].deleted'
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'messages[i].content.actions'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'messages[i].content.actions[j].value'
SELECT @j = @j + 1
END
SELECT @i = @i + 1
END
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @queryParams
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
END
GO
Curl Command
curl -G -d "page[after]=5e1606762556d93e9c176f69"
-d "page[before]=5e1606762556d93e9c176f69"
-d "page[size]=10"
-u 'username:password'
https://domain.com/v2/apps/{{appId}}/conversations/{{conversationId}}/messages
Postman Collection Item JSON
{
"name": "List Messages",
"_postman_id": "9f9b265c-7546-4b49-98bf-7e4d85bae5f2",
"request": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{url}}/v2/apps/{{appId}}/conversations/{{conversationId}}/messages?page[after]=5e1606762556d93e9c176f69&page[before]=5e1606762556d93e9c176f69&page[size]=10",
"host": [
"{{url}}"
],
"path": [
"v2",
"apps",
"{{appId}}",
"conversations",
"{{conversationId}}",
"messages"
],
"query": [
{
"key": "page[after]",
"value": "5e1606762556d93e9c176f69",
"description": "Contains parameters for applying cursor pagination."
},
{
"key": "page[before]",
"value": "5e1606762556d93e9c176f69",
"description": "Contains parameters for applying cursor pagination."
},
{
"key": "page[size]",
"value": "10",
"description": "Contains parameters for applying cursor pagination."
}
]
},
"description": "List all messages for a particular conversation. This API is paginated through\n[cursor pagination](#section/Introduction/API-pagination-and-records-limits), in the _backwards_ direction, with the\nmost recent (i.e. last) page of messages being returned by default. The `hasMore` flag indicates whether more messages\nexist in the direction you are currently paginating through. To page backwards in the history, use the `beforeCursor` or follow the `prev`\nlink. The page size limit is fixed at 100 messages per page.\n\n```shell\n/v2/apps/:appId/conversations/:conversationId/messages?page[before]=5f32b88acf6bf25073b2be56\n```\n"
},
"response": [
{
"id": "550b7411-8e33-4840-8701-23face25cb9a",
"name": "Ok",
"originalRequest": {
"method": "GET",
"header": [
{
"description": {
"content": "Added as a part of security scheme: bearer",
"type": "text/plain"
},
"key": "Authorization",
"value": "Bearer <token>"
}
],
"url": {
"raw": "{{baseUrl}}/v2/apps/:appId/conversations/:conversationId/messages?page[after]=5e1606762556d93e9c176f69&page[before]=5e1606762556d93e9c176f69&page[size]=10",
"host": [
"{{baseUrl}}"
],
"path": [
"v2",
"apps",
":appId",
"conversations",
":conversationId",
"messages"
],
"query": [
{
"key": "page[after]",
"value": "5e1606762556d93e9c176f69"
},
{
"key": "page[before]",
"value": "5e1606762556d93e9c176f69"
},
{
"key": "page[size]",
"value": "10"
}
],
"variable": [
{
"key": "appId"
},
{
"key": "conversationId"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"messages\": [\n {\n \"id\": \"5e552ef595e5206375bb835d\",\n \"received\": \"2019-03-21T18:48:52.760Z\",\n \"author\": {\n \"type\": \"business\",\n \"userId\": \"5963c0d619a30a2e00de36b8\",\n \"displayName\": \"Steve\",\n \"avatarUrl\": \"https://www.gravatar.com/image.jpg\"\n },\n \"content\": {\n \"type\": \"text\",\n \"text\": \"Hello!\",\n \"actions\": [\n {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n ]\n },\n \"source\": {\n \"type\": \"ios\",\n \"integrationId\": \"de13bee15b51033b34162411\",\n \"originalMessageId\": \"5f40256af057d0000dda9bd7\",\n \"originalMessageTimestamp\": \"2019-03-21T18:45:53.720Z\",\n \"client\": {\n \"id\": \"5c9a34160c89726709136733\",\n \"type\": \"telegram\",\n \"status\": \"active\",\n \"integrationId\": \"582dedf230e788746891281a\",\n \"externalId\": \"your-own-id\",\n \"lastSeen\": \"2020-08-20T16:13:07.462Z\",\n \"linkedAt\": \"2020-06-23T14:33:47.492Z\",\n \"displayName\": \"Steve\",\n \"avatarUrl\": \"http://EGnaLcOXhxGTLKJ.jpuft043dnis59F\",\n \"info\": {},\n \"raw\": {}\n },\n \"device\": {\n \"id\": \"de13bee15b51033b34162411\",\n \"type\": \"web\",\n \"guid\": \"in laboris ex\",\n \"clientId\": \"amet minim do eu\",\n \"status\": \"active\",\n \"integrationId\": \"sed enim aliquip commodo\",\n \"lastSeen\": \"elit proident\",\n \"pushNotificationToken\": \"officia labore\",\n \"info\": {},\n \"appVersion\": \"irure deserunt qui veniam consequat\"\n }\n },\n \"quotedMessage\": {\n \"type\": \"message\",\n \"message\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n \"metadata\": {\n \"lang\": \"en-ca\"\n },\n \"deleted\": true\n },\n {\n \"id\": \"5e552ef595e5206375bb835d\",\n \"received\": \"2019-03-21T18:48:52.760Z\",\n \"author\": {\n \"type\": \"business\",\n \"userId\": \"5963c0d619a30a2e00de36b8\",\n \"displayName\": \"Steve\",\n \"avatarUrl\": \"https://www.gravatar.com/image.jpg\"\n },\n \"content\": {\n \"type\": \"text\",\n \"text\": \"Hello!\",\n \"actions\": [\n {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n ]\n },\n \"source\": {\n \"type\": \"ios\",\n \"integrationId\": \"de13bee15b51033b34162411\",\n \"originalMessageId\": \"5f40256af057d0000dda9bd7\",\n \"originalMessageTimestamp\": \"2019-03-21T18:45:53.720Z\",\n \"client\": {\n \"id\": \"5c9a34160c89726709136733\",\n \"type\": \"telegram\",\n \"status\": \"active\",\n \"integrationId\": \"582dedf230e788746891281a\",\n \"externalId\": \"your-own-id\",\n \"lastSeen\": \"2020-08-20T16:13:07.462Z\",\n \"linkedAt\": \"2020-06-23T14:33:47.492Z\",\n \"displayName\": \"Steve\",\n \"avatarUrl\": \"http://bnAEzvgnDimaLnqEYLUCQXbU.ywrnS-uvD-0kBryUe\",\n \"info\": {},\n \"raw\": {}\n },\n \"device\": {\n \"id\": \"de13bee15b51033b34162411\",\n \"type\": \"web\",\n \"guid\": \"laborum eiusmod adipisicing esse\",\n \"clientId\": \"labore adipisicing eiusmod\",\n \"status\": \"inactive\",\n \"integrationId\": \"aute\",\n \"lastSeen\": \"anim reprehenderit proident pariatur incididunt\",\n \"pushNotificationToken\": \"qui dolore Excepteur in\",\n \"info\": {},\n \"appVersion\": \"incididunt labore dolore pariatur\"\n }\n },\n \"quotedMessage\": {\n \"type\": \"message\",\n \"message\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n \"metadata\": {\n \"lang\": \"en-ca\"\n },\n \"deleted\": true\n }\n ],\n \"meta\": {\n \"hasMore\": false,\n \"afterCursor\": \"55c8d9758590aa1900b9b9f6\",\n \"beforeCursor\": \"55c8d9758590aa1900b9b9f6\"\n },\n \"links\": {\n \"prev\": \"https://api.smooch.io/v2/apps?page[before]=fcafad804c39a39648004af9\",\n \"next\": \"https://api.smooch.io/v2/apps?page[after]=5ea868f862cdd24abf010b38\"\n }\n}"
},
{
"id": "b77a129c-bc78-489f-9630-1dbd1d0aa6bd",
"name": "Message not found",
"originalRequest": {
"method": "GET",
"header": [
{
"description": {
"content": "Added as a part of security scheme: bearer",
"type": "text/plain"
},
"key": "Authorization",
"value": "Bearer <token>"
}
],
"url": {
"raw": "{{baseUrl}}/v2/apps/:appId/conversations/:conversationId/messages?page[after]=5e1606762556d93e9c176f69&page[before]=5e1606762556d93e9c176f69&page[size]=10",
"host": [
"{{baseUrl}}"
],
"path": [
"v2",
"apps",
":appId",
"conversations",
":conversationId",
"messages"
],
"query": [
{
"key": "page[after]",
"value": "5e1606762556d93e9c176f69"
},
{
"key": "page[before]",
"value": "5e1606762556d93e9c176f69"
},
{
"key": "page[size]",
"value": "10"
}
],
"variable": [
{
"key": "appId"
},
{
"key": "conversationId"
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
}
]
}