{ "info": { "_postman_id": "a00b34b2-7a4f-4a86-96f9-d081f065f0c8", "name": "Amio Messaging API", "description": "Amio Messaging API is a service you can use for implementing various messengers into your software. It provides endpoints for sending messages, creating channels, etc.\n\nThe full API reference documentation can be found at [https://docs.amio.io](https://docs.amio.io/v1.0/reference).", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Messages", "item": [ { "name": "Amio Chat", "item": [ { "name": "List Messages", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts/{{amio_chat.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts", "{{amio_chat.contact.id}}", "messages" ] }, "description": "List messages of given Facebook Messenger channel and contact. See [documentation](https://docs.amio.io/reference#facebook-messenger-messages-list-messages)." }, "response": [ { "name": "List Messages", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts/{{amio_chat.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts", "{{amio_chat.contact.id}}", "messages" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:21:59 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769650" }, { "key": "X-RateLimit-Remaining", "value": "981" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Total-Count", "value": "2" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "[\n {\n \"id\": \"6516975431861424692\",\n \"sent\": \"2019-03-28T10:13:42.537Z\",\n \"delivered\": \"2019-03-28T10:13:43Z\",\n \"read\": null,\n \"direction\": \"received\",\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"content\": {\n \"payload\": \"asd\",\n \"type\": \"text\"\n }\n }\n]" } ] }, { "name": "Text", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-text)." }, "response": [ { "name": "Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:23:07 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769649" }, { "key": "X-RateLimit-Remaining", "value": "980" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/6516977801299251765" } ], "cookie": [], "body": "{\n \"id\": \"6516977801299251765\",\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" } ] }, { "name": "Image", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send image message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-image)." }, "response": [ { "name": "Image", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:24:57 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769649" }, { "key": "X-RateLimit-Remaining", "value": "979" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/6516978263989703222" } ], "cookie": [], "body": "{\n \"id\": \"6516978263989703222\",\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" } ] }, { "name": "Metadata", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"any\": \"arbitrary data\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send message with metadata. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-metadata)." }, "response": [ { "name": "Metadata", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"any\": \"arbitrary data\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:26:11 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769649" }, { "key": "X-RateLimit-Remaining", "value": "978" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/6516978571964863031" } ], "cookie": [], "body": "{\n \"id\": \"6516978571964863031\",\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"any\": \"arbitrary data\"\n }\n}" } ] } ] }, { "name": "Email", "item": [ { "name": "List Messages", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts/{{amio_chat.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts", "{{amio_chat.contact.id}}", "messages" ] }, "description": "List messages of given Facebook Messenger channel and contact. See [documentation](https://docs.amio.io/reference#facebook-messenger-messages-list-messages)." }, "response": [ { "name": "List Messages", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts/{{amio_chat.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts", "{{amio_chat.contact.id}}", "messages" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:21:59 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769650" }, { "key": "X-RateLimit-Remaining", "value": "981" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Total-Count", "value": "2" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "[\n {\n \"id\": \"6516975431861424692\",\n \"sent\": \"2019-03-28T10:13:42.537Z\",\n \"delivered\": \"2019-03-28T10:13:43Z\",\n \"read\": null,\n \"direction\": \"received\",\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"content\": {\n \"payload\": \"asd\",\n \"type\": \"text\"\n }\n }\n]" } ] }, { "name": "Text", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{email.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{email.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-text)." }, "response": [ { "name": "Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:23:07 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769649" }, { "key": "X-RateLimit-Remaining", "value": "980" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/6516977801299251765" } ], "cookie": [], "body": "{\n \"id\": \"6516977801299251765\",\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" } ] } ] }, { "name": "Facebook Messenger", "item": [ { "name": "List Messages", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}/contacts/{{fb.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}", "contacts", "{{fb.contact.id}}", "messages" ] }, "description": "List messages of given Facebook Messenger channel and contact. See [documentation](https://docs.amio.io/reference#facebook-messenger-messages-list-messages)." }, "response": [ { "name": "List Messages", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}/contacts/{{fb.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}", "contacts", "{{fb.contact.id}}", "messages" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "" }, { "key": "Content-Length", "value": "1595", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Thu, 15 Feb 2018 13:29:34 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.10.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "999", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1518704974", "name": "X-RateLimit-Reset", "description": "" }, { "key": "X-Total-Count", "value": "29", "name": "X-Total-Count", "description": "" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "[\n {\n \"id\": \"151845599083747\",\n \"sent\": \"2018-02-12T17:19:49.692Z\",\n \"delivered\": \"2018-02-12T17:19:52Z\",\n \"read\": \"2018-02-12T17:19:52Z\",\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"151601809387428\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"content\": {\n \"payload\": \"Hello world!\",\n \"type\": \"text\"\n }\n },\n {\n \"id\": \"151845594619884\",\n \"sent\": \"2018-02-12T17:19:04.010Z\",\n \"delivered\": \"2018-02-12T17:19:07Z\",\n \"read\": \"2018-02-12T17:19:13Z\",\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"151601809387428\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"content\": {\n \"payload\": \"Hello world!\",\n \"type\": \"text\"\n }\n },\n {\n \"id\": \"151799774995833\",\n \"sent\": \"2018-02-07T10:02:29.338Z\",\n \"delivered\": \"2018-02-07T10:02:33Z\",\n \"read\": \"2018-02-07T13:23:08Z\",\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"151601809387428\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"content\": {\n \"payload\": \"Ahoj\",\n \"type\": \"text\"\n },\n \"metadata\": {\n \"sent_by\": \"MatouÅ¡ Kučera\",\n \"uuid\": \"01a3e3c0-0bee-11e8-9f71-217a3eb318e8\"\n }\n },\n {\n \"id\": \"151782858273169\",\n \"sent\": \"2018-02-05T11:03:02.730Z\",\n \"delivered\": \"2018-02-05T11:03:02Z\",\n \"read\": \"2018-02-05T11:03:03Z\",\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"151601809387428\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"content\": {\n \"payload\": \"Thanks for messaging us. We try to be as responsive as possible. We'll get back to you soon.\",\n \"type\": \"text\"\n }\n },\n {\n \"id\": \"151752221128068\",\n \"sent\": \"2018-02-01T21:56:50.412Z\",\n \"delivered\": \"2018-02-01T21:56:51Z\",\n \"read\": \"2018-02-01T21:56:52Z\",\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"151601809387428\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"content\": {\n \"payload\": \"lao\",\n \"type\": \"text\"\n },\n \"metadata\": {\n \"sent_by\": \"MatouÅ¡ Kučera\",\n \"uuid\": \"ce383bf0-079a-11e8-b3c4-99a6b0a92695\"\n }\n },\n {\n \"id\": \"151752219645728\",\n \"sent\": \"2018-02-01T21:56:36.453Z\",\n \"delivered\": \"2018-02-01T21:56:40Z\",\n \"read\": \"2018-02-01T21:56:52Z\",\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"151601809387428\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"content\": {\n \"payload\": \"Hi MatouÅ¡, thanks for your message. We are not here right now, but we'll get back to you soon!\",\n \"type\": \"text\"\n }\n },\n {\n \"id\": \"151752219619999\",\n \"sent\": \"2018-02-01T21:56:36.197Z\",\n \"delivered\": null,\n \"read\": null,\n \"direction\": \"received\",\n \"channel\": {\n \"id\": \"151601809387428\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"content\": {\n \"payload\": \"ola\",\n \"type\": \"text\"\n }\n },\n {\n \"id\": \"151739274220361\",\n \"sent\": \"2018-01-31T09:59:02.202Z\",\n \"delivered\": null,\n \"read\": null,\n \"direction\": \"received\",\n \"channel\": {\n \"id\": \"151601809387428\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"content\": {\n \"payload\": \"aaa\",\n \"type\": \"text\"\n }\n }\n]" } ] }, { "name": "Contact - User Id", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message using Page Scoped user id. See [documentation](https://docs.amio.io/reference#section-user-id)." }, "response": [ { "name": "Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"text\",\n\t\t\"payload\": \"Hello world!\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "188", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 22 Nov 2017 14:39:59 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3971", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511361931", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151136159963896", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151136159963896\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1096280500453211\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" } ] }, { "name": "Contact - Phone Number", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{fb.contact.phone_number}}\",\n \"first_name\": \"{{fb.contact.first_name}}\",\n \"last_name\": \"{{fb.contact.last_name}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message using Phone Number. See [documentation](https://docs.amio.io/reference#section-phone-number)." }, "response": [ { "name": "Phone Number - Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"phone_number\": \"{{fb.contact.phone_number}}\",\n\t\t\"first_name\": \"{{fb.contact.first_name}}\",\n \t\"last_name\": \"{{fb.contact.last_name}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"text\",\n\t\t\"payload\": \"Hello world!\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Fri, 08 Dec 2017 14:14:56 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "5000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "4998", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512745345", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151274249627065", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151274249627065\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"15277672508965176\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" } ] }, { "name": "Contact - User Ref", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"user_ref\": \"{{fb.contact.user_ref}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message using User Ref. See [documentation](https://docs.amio.io/reference#section-user-ref)." }, "response": [] }, { "name": "Text", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-text)." }, "response": [ { "name": "Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"text\",\n\t\t\"payload\": \"Hello world!\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "188", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 22 Nov 2017 14:39:59 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3971", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511361931", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151136159963896", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151136159963896\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1096280500453211\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" } ] }, { "name": "Image", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send image message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-image)." }, "response": [ { "name": "Image", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"image\",\n\t\t\"payload\": {\n\t\t\t\"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 22 Nov 2017 14:48:22 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3996", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511365670", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151136210250187", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151136210250187\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1096280500453211\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" } ] }, { "name": "Audio", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"audio\",\n \"payload\": {\n \"url\": \"http://dubioza.org/site/wp-content/uploads/2016/02/1.-All-Equal-feat-BEE2.mp3\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send audio message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-audio)." }, "response": [ { "name": "Audio", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"audio\",\n\t\t\"payload\": {\n\t\t\t\"url\": \"http://dubioza.org/site/wp-content/uploads/2016/02/1.-All-Equal-feat-BEE2.mp3\"\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 22 Nov 2017 14:48:58 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3995", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511365670", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151136213874690", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151136213874690\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1096280500453211\"\n },\n \"content\": {\n \"type\": \"audio\",\n \"payload\": {\n \"url\": \"http://dubioza.org/site/wp-content/uploads/2016/02/1.-All-Equal-feat-BEE2.mp3\"\n }\n }\n}" } ] }, { "name": "Video", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"video\",\n \"payload\": {\n \"url\": \"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send video message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-video)." }, "response": [ { "name": "Video", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"video\",\n\t\t\"payload\": {\n\t\t\t\"url\": \"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\"\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 22 Nov 2017 14:49:33 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3994", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511365670", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151136217366523", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151136217366523\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1096280500453211\"\n },\n \"content\": {\n \"type\": \"video\",\n \"payload\": {\n \"url\": \"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\"\n }\n }\n}" } ] }, { "name": "File", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"file\",\n \"payload\": {\n \"url\": \"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send file attachment. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-file)." }, "response": [ { "name": "File", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"file\",\n\t\t\"payload\": {\n\t\t\t\"url\": \"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\"\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "254", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 22 Nov 2017 14:54:25 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3989", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511365670", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151136246554862", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151136246554862\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1096280500453211\"\n },\n \"content\": {\n \"type\": \"file\",\n \"payload\": {\n \"url\": \"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\"\n }\n }\n}" } ] }, { "name": "Receipt", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"receipt\",\n \"payload\": {\n \"order_id\": \"id546584\",\n \"timestamp\": \"2016-10-06T13:42:48Z\",\n \"currency\": \"USD\",\n \"payment_method\": \"Visa ***8138.\",\n \"url_order\": \"http://petersapparel.parseapp.com/order?order_id=id546584\",\n \"shipping_address\": {\n \"name\": \"Tomáš BaÃ…Â¥a\",\n \"address_line_1\": \"tÃ…â„¢. Tomáše Bati 46\",\n \"address_line_2\": \"company Bata a.s.\",\n \"city\": \"Otrokovice\",\n \"postal_code\": \"765 02\",\n \"state\": \"Zlín Region\",\n \"country_code\": \"CZ\"\n },\n \"items\": [\n {\n \"title\": \"Winter Mens' Footware\",\n \"text\": \"100% Leather\",\n \"quantity\": 1,\n \"price\": 67.5,\n \"image_url\": \"http://3-cz-cdn.bata.eu/gallery/1/6/4/5/7/c.jpg\"\n }\n ],\n \"summary\": {\n \"shipping\": 4.95,\n \"tax\": 6.19,\n \"total\": 78.64\n }\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send structure message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-receipt)." }, "response": [ { "name": "Receipt", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"receipt\",\n\t\t\"payload\": {\n\t\t\t\"order_id\": \"id546584\",\n\t\t\t\"timestamp\": \"2016-10-06T13:42:48Z\",\n\t\t\t\"currency\": \"USD\",\n\t\t\t\"payment_method\": \"Visa ***8138.\",\n\t\t\t\"url_order\": \"http://petersapparel.parseapp.com/order?order_id=id546584\",\n\t\t\t\"shipping_address\": {\n\t\t\t\t\"name\": \"Tomáš BaÃ…Â¥a\",\n\t\t\t\t\"address_line_1\": \"tÃ…â„¢. Tomáše Bati 46\",\n\t\t\t\t\"address_line_2\": \"company Bata a.s.\",\n\t\t\t\t\"city\": \"Otrokovice\",\n\t\t\t\t\"postal_code\": \"765 02\",\n\t\t\t\t\"state\": \"Zlín Region\",\n\t\t\t\t\"country_code\": \"CZ\"\n\t\t\t},\n\t\t\t\"items\": [\n\t\t\t\t{\n\t\t\t\t\t\"title\": \"Winter Mens' Footware\",\n\t\t\t\t\t\"text\": \"100% Leather\",\n\t\t\t\t\t\"quantity\": 1,\n\t\t\t\t\t\"price\": 67.5,\n\t\t\t\t\t\"image_url\": \"http://3-cz-cdn.bata.eu/gallery/1/6/4/5/7/c.jpg\"\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"summary\": {\n\t\t\t\t\"shipping\": 4.95,\n\t\t\t\t\"tax\": 6.19,\n\t\t\t\t\"total\": 78.64\n\t\t\t}\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "912", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 22 Nov 2017 16:09:43 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3990", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511370028", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151136698322158", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151136698322158\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1096280500453211\"\n },\n \"content\": {\n \"type\": \"receipt\",\n \"payload\": {\n \"timestamp\": \"2016-10-06T13:42:48Z\",\n \"currency\": \"USD\",\n \"order_id\": \"id546584\",\n \"payment_method\": \"Visa ***8138.\",\n \"url_order\": \"http://petersapparel.parseapp.com/order?order_id=id546584\",\n \"shipping_address\": {\n \"name\": \"Tomáš BaÃ…Â¥a\",\n \"address_line_1\": \"tÃ…â„¢. Tomáše Bati 46\",\n \"address_line_2\": \"company Bata a.s.\",\n \"postal_code\": \"765 02\",\n \"state\": \"Zlín Region\",\n \"country_code\": \"CZ\",\n \"city\": \"Otrokovice\"\n },\n \"items\": [\n {\n \"title\": \"Winter Mens' Footware\",\n \"text\": \"100% Leather\",\n \"quantity\": 1,\n \"price\": 67.5,\n \"image_url\": \"http://3-cz-cdn.bata.eu/gallery/1/6/4/5/7/c.jpg\"\n }\n ],\n \"summary\": {\n \"shipping\": 4.95000000000000017763568394002504646778106689453125,\n \"tax\": 6.19000000000000039079850466805510222911834716796875,\n \"total\": 78.6400000000000005684341886080801486968994140625\n }\n }\n }\n}" } ] }, { "name": "Structure", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"title\": \"Leaf salad with smoked eggplant and zuchhini and dried tomatoes\",\n \"text\": \"9.5 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n }\n ]\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send structure message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-structure)." }, "response": [ { "name": "Structure - Title & Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"structure\",\n\t\t\"payload\": {\n\t\t\t\"title\": \"Leaf salad with smoked eggplant and zuchhini and dried tomatoes\",\n\t\t\t\"text\": \"9.5 €\",\n\t\t\t\"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n\t\t\t\"item_url\": \"https://example.com/daily-menu\",\n\t\t\t\"buttons\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 22 Nov 2017 15:03:28 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3986", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511365670", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151136300795386", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151136300795386\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1096280500453211\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"title\": \"Freedom for everyone!\",\n \"text\": \"For humans and dogs too.\"\n }\n }\n}" }, { "name": "Structure", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"structure\",\n\t\t\"payload\": {\n\t\t\t\"title\": \"Leaf salad with smoked eggplant and zuchhini and dried tomatoes\",\n\t\t\t\"text\": \"9.5 €\",\n\t\t\t\"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n\t\t\t\"item_url\": \"https://example.com/daily-menu\",\n\t\t\t\"buttons\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 22 Nov 2017 14:57:02 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3988", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511365670", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151136262214814", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151136262214814\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1096280500453211\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"title\": \"Leaf salad with smoked eggplant and zuchhini and dried tomatoes\",\n \"text\": \"9.5 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n }\n ]\n }\n }\n}" }, { "name": "Structure - Text & Buttons", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"structure\",\n\t\t\"payload\": {\n\t\t\t\"title\": \"Leaf salad with smoked eggplant and zuchhini and dried tomatoes\",\n\t\t\t\"text\": \"9.5 €\",\n\t\t\t\"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n\t\t\t\"item_url\": \"https://example.com/daily-menu\",\n\t\t\t\"buttons\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 22 Nov 2017 15:07:45 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3983", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511365670", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151136326533289", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151136326533289\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1096280500453211\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"text\": \"Vote your president!\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Donald Trump\",\n \"payload\": \"https://cs.wikipedia.org/wiki/Donald_Trump\"\n }\n ]\n }\n }\n}" }, { "name": "Structure - Title & Image", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"structure\",\n\t\t\"payload\": {\n\t\t\t\"title\": \"Leaf salad with smoked eggplant and zuchhini and dried tomatoes\",\n\t\t\t\"text\": \"9.5 €\",\n\t\t\t\"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n\t\t\t\"item_url\": \"https://example.com/daily-menu\",\n\t\t\t\"buttons\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "312", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 22 Nov 2017 15:06:01 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3984", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511365670", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151136316089523", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151136316089523\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1096280500453211\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"title\": \"Flight Ticket to TimiÈ™oara\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/5/5f/Catedrala_din_Timisoara.jpg\"\n }\n }\n}" } ] }, { "name": "Structure - Horizontal Scroll", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": [\n {\n \"title\": \"Leaf salad with smoked eggplant and zuchhini and dried tomatoes\",\n \"text\": \"9.5 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n }\n ]\n },\n {\n \"title\": \"Beef burger with Coleslaw salad\",\n \"text\": \"12.0 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/9/9b/YOKOSUKA-NAVY-BURGER-TSUNAMI.JPG\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-2\"\n }\n ]\n }\n ]\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send structure message with horizontal scroll. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-structure-horizontal-scroll)." }, "response": [ { "name": "Structure - Horizontal Scroll", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": [\n {\n \"title\": \"Leaf salad with smoked eggplant and zuchhini and dried tomatoes\",\n \"text\": \"9.5 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n }\n ]\n },\n {\n \"title\": \"Beef burger with Coleslaw salad\",\n \"text\": \"12.0 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/9/9b/YOKOSUKA-NAVY-BURGER-TSUNAMI.JPG\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-2\"\n }\n ]\n }\n ]\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Thu, 14 Dec 2017 11:14:12 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3998", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1513253601", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151325005166978", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151325005166978\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": [\n {\n \"title\": \"Leaf salad with smoked eggplant and zuchhini and dried tomatoes\",\n \"text\": \"9.5 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n }\n ]\n },\n {\n \"title\": \"Beef burger with Coleslaw salad\",\n \"text\": \"12.0 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/9/9b/YOKOSUKA-NAVY-BURGER-TSUNAMI.JPG\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-2\"\n }\n ]\n }\n ]\n }\n}" } ] }, { "name": "Buttons", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"text\": \"9.5 €\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n },\n {\n \"type\": \"postback\",\n \"title\": \"List Items\",\n \"payload\": \"{{PASS_THROUGH_PARAM}}\"\n },\n {\n \"type\": \"phone\",\n \"title\": \"Call Us\",\n \"payload\": \"+420777111222\"\n }\n ]\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send message with buttons. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-buttons)." }, "response": [ { "name": "Buttons", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"structure\",\n\t\t\"payload\": {\n\t\t\t\"text\": \"9.5 €\",\n\t\t\t\"buttons\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"postback\",\n\t\t\t\t\t\"title\": \"List Items\",\n\t\t\t\t\t\"payload\": \"{{PASS_THROUGH_PARAM}}\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"phone\",\n\t\t\t\t\t\"title\": \"Call Us\",\n\t\t\t\t\t\"payload\": \"+420777111222\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Thu, 23 Nov 2017 10:45:18 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3995", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511435766", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151143391846629", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151143391846629\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1096280500453211\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"text\": \"9.5 €\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n },\n {\n \"type\": \"postback\",\n \"title\": \"List Items\",\n \"payload\": \"{{PASS_THROUGH_PARAM}}\"\n },\n {\n \"type\": \"phone\",\n \"title\": \"Call Us\",\n \"payload\": \"+420777111222\"\n }\n ]\n }\n }\n}" } ] }, { "name": "Quick Replies", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"See all different quick replies!\",\n \"quick_replies\": [\n {\n \"type\": \"text\",\n \"title\": \"Pilsner Urquell\",\n \"payload\": \"DEVELOPER_DEFINED_PAYLOAD\",\n \"image_url\": \"http://www.logotypes101.com/logos/778/70D1EF7E13BFAC232F2D05DE2E5594E0/pubisc.png\"\n },\n {\n \"type\": \"location\"\n },\n {\n \"type\": \"phone_number\"\n },\n {\n \"type\": \"email\"\n }\n ]\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send message with quick replies. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-quick-replies)." }, "response": [ { "name": "Quick Replies", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"text\",\n\t\t\"payload\": \"See all different quick replies!\",\n\t\t\"quick_replies\": [\n\t\t\t{\n\t\t\t\t\"type\": \"text\",\n\t\t\t\t\"title\": \"Pilsner Urquell\",\n\t\t\t\t\"payload\": \"DEVELOPER_DEFINED_PAYLOAD\",\n\t\t\t\t\"image_url\": \"http://www.logotypes101.com/logos/778/70D1EF7E13BFAC232F2D05DE2E5594E0/pubisc.png\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"type\": \"location\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"type\": \"phone_number\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"type\": \"email\"\n\t\t\t}\n\t\t]\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Mon, 18 Jun 2018 14:32:17 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "996", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1529335574", "name": "X-RateLimit-Reset", "description": "" }, { "key": "transfer-encoding", "value": "chunked", "name": "transfer-encoding", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/15293323379218880", "name": "Location", "description": "", "type": "text" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\n \"id\": \"15293323379218880\",\n \"channel\": {\n \"id\": \"152933153806911\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"15293317092038605\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Provide your phone number please?\",\n \"quick_replies\": [\n {\n \"payload\": \"DEVELOPER_DEFINED_PAYLOAD\",\n \"image_url\": \"http://www.logotypes101.com/logos/778/70D1EF7E13BFAC232F2D05DE2E5594E0/pubisc.png\",\n \"type\": \"text\",\n \"title\": \"Pilsner Urquell\"\n },\n {\n \"type\": \"location\"\n },\n {\n \"type\": \"phone_number\"\n },\n {\n \"type\": \"email\"\n }\n ]\n }\n}" } ] }, { "name": "Metadata", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"any\": \"arbitrary data\",\n \"platform_metadata\": \"these data are going to be sent directly to Facebook Messenger API as metadata attribute\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send message with metadata. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-metadata)." }, "response": [ { "name": "Metadata", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"text\",\n\t\t\"payload\": \"Hello world!\"\n\t},\n\t\"metadata\": {\n\t\t\"any\": \"arbitrary data\",\n\t\t\"platform_metadata\": \"these data are going to be sent directly to Facebook Messenger API as metadata attribute\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "335", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 06 Dec 2017 10:53:45 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3963", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512559668", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151255762511397", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151255762511397\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"platform_metadata\": \"these data are going to be sent directly to Facebook Messenger API as metadata attribute\",\n \"any\": \"arbitrary data\"\n }\n}" } ] }, { "name": "Types", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"type\": \"response\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send message with type. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-types)." }, "response": [ { "name": "Types", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"text\",\n\t\t\"payload\": \"Hello world!\"\n\t},\n\t\"metadata\": {\n\t\t\"type\": \"response\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "208", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Tue, 01 May 2018 07:26:14 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "995", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1525162758", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/15251595740719005", "name": "Location", "description": "", "type": "text" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\"id\":\"15251595740719005\",\"channel\":{\"id\":\"151601809387428\",\"type\":\"facebook_messenger\"},\"contact\":{\"id\":\"15217933990261301\"},\"content\":{\"type\":\"text\",\"payload\":\"Hello world!\"},\"metadata\":{\"type\":\"response\"}}" } ] }, { "name": "Tags", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"tag\": \"ticket_update\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send message with tag. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-tags)." }, "response": [ { "name": "Tags", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"text\",\n\t\t\"payload\": \"Hello world!\"\n\t},\n\t\"metadata\": {\n\t\t\"tag\": \"TICKET_UPDATE\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 06 Dec 2017 15:17:47 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3984", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512574804", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151257346675234", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151257346675234\",\n \"channel\": {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\"\n },\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"tag\": \"ticket_update\"\n }\n}" } ] } ], "description": "Messages resource is the main entry point for sending messages. See [Documentation](https://docs.amio.io/reference#facebook-messenger-messages)." }, { "name": "Mobile", "item": [ { "name": "List Messages", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}/contacts/{{mobile.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}", "contacts", "{{mobile.contact.id}}", "messages" ] }, "description": "List messages of given Mobile channel and contact. See [documentation](https://docs.amio.io/reference#mobile-messages-list-messages)." }, "response": [ { "name": "List Messages", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}/contacts/{{mobile.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}", "contacts", "{{mobile.contact.id}}", "messages" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "239", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Thu, 31 May 2018 11:50:49 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "968", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1527769346", "name": "X-RateLimit-Reset", "description": "Custom header" }, { "key": "X-Total-Count", "value": "2", "name": "X-Total-Count", "description": "Custom header" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "[\n {\n \"id\": \"15277673563871670\",\n \"sent\": \"2018-05-31T11:49:16.334Z\",\n \"delivered\": null,\n \"read\": null,\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"152775927128158\",\n \"type\": \"mobile\"\n },\n \"contact\": {\n \"id\": \"15277672508965176\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"payload\": \"Hello world!\",\n \"type\": \"text\"\n }\n }\n]" } ] }, { "name": "Text", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{mobile.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{mobile.contact.phone_number}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#mobile-messages-text)." }, "response": [ { "name": "Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{mobile.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"phone_number\": \"{{mobile.contact.phone_number}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"text\",\n\t\t\"payload\": \"Hello world!\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "199", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Thu, 31 May 2018 11:49:16 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "969", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1527769346", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/15277673563871670", "name": "Location", "description": "", "type": "text" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\n \"id\": \"15277673563871670\",\n \"channel\": {\n \"id\": \"152775927128158\",\n \"type\": \"mobile\"\n },\n \"contact\": {\n \"id\": \"15277672508965176\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" } ] }, { "name": "Metadata", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{mobile.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{mobile.contact.phone_number}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"any\": \"arbitrary data\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send message with metadata. See [documentation](https://docs.amio.io/v1.0/reference#mobile-messages-metadata)." }, "response": [ { "name": "Metadata", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{mobile.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"phone_number\": \"{{mobile.contact.phone_number}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"text\",\n\t\t\"payload\": \"Hello world!\"\n\t},\n\t\"metadata\": {\n\t\t\"any\": \"arbitrary data\",\n\t\t\"platform_metadata\": \"these data are going to be sent directly to Facebook Messenger API as metadata attribute\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "346", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Thu, 31 May 2018 11:56:06 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "933", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1527769346", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/15277677664757965", "name": "Location", "description": "", "type": "text" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\n \"id\": \"15277677664757965\",\n \"channel\": {\n \"id\": \"152775927128158\",\n \"type\": \"mobile\"\n },\n \"contact\": {\n \"id\": \"15277672508965176\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"any\": \"arbitrary data\"\n }\n}" } ] } ], "description": "Messages resource is the main entry point for sending messages. See [Documentation](https://docs.amio.io/reference#mobile-messages).", "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] }, { "name": "Viber Bot", "item": [ { "name": "List Messages", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber_bot.channel.id}}/contacts/{{viber_bot.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber_bot.channel.id}}", "contacts", "{{viber_bot.contact.id}}", "messages" ] }, "description": "List messages of given Viber channel and contact. See [documentation](https://docs.amio.io/reference#viber-messages-list-messages)." }, "response": [ { "name": "List Messages", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts/{{viber.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts", "{{viber.contact.id}}", "messages" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "" }, { "key": "Content-Length", "value": "200", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Thu, 15 Feb 2018 13:31:28 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.10.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "998", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1518704974", "name": "X-RateLimit-Reset", "description": "" }, { "key": "X-Total-Count", "value": "1", "name": "X-Total-Count", "description": "" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "[\n {\n \"id\": \"151731969302243\",\n \"sent\": \"2018-01-30T13:41:33.020Z\",\n \"delivered\": null,\n \"read\": null,\n \"direction\": \"received\",\n \"channel\": {\n \"id\": \"151601599264629\",\n \"type\": \"viber\"\n },\n \"contact\": {\n \"id\": \"15219196820732912\"\n },\n \"content\": {\n \"payload\": \"Hello\",\n \"type\": \"text\"\n }\n }\n]" } ] }, { "name": "Text", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber_bot.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{viber_bot.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#viber-messages-text)." }, "response": [ { "name": "Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{viber.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{viber.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"text\",\n\t\t\"payload\": \"Hello world!\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "175", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Thu, 23 Nov 2017 10:57:23 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3980", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511435765", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151143464341669", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151143464341669\",\n \"channel\": {\n \"id\": \"151454470963967\",\n \"type\": \"viber\"\n },\n \"contact\": {\n \"id\": \"15219196820732912\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" } ] }, { "name": "Image", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber_bot.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{viber_bot.contact.id}}\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send image message. See [documentation](https://docs.amio.io/v1.0/reference#viber-messages-image)." }, "response": [ { "name": "Image", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{viber.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{viber.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"image\",\n\t\t\"payload\": {\n\t\t\t\"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Sat, 09 Dec 2017 14:01:42 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "5000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "4999", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512831699", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151282810213068", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151282810213068\",\n \"channel\": {\n \"id\": \"151454470963967\",\n \"type\": \"viber\"\n },\n \"contact\": {\n \"id\": \"15219196820732912\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" } ] }, { "name": "Video", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber_bot.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{viber_bot.contact.id}}\"\n },\n \"content\": {\n \"type\": \"video\",\n \"payload\": {\n \"url\": \"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send video message. See [documentation](https://docs.amio.io/v1.0/reference#viber-messages-video)." }, "response": [ { "name": "Video", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{viber.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{viber.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"video\",\n\t\t\"payload\": {\n\t\t\t\"url\": \"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\"\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Sat, 09 Dec 2017 14:12:22 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "5000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "4996", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512831699", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151282874220347", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151282874220347\",\n \"channel\": {\n \"id\": \"151454470963967\",\n \"type\": \"viber\"\n },\n \"contact\": {\n \"id\": \"15219196820732912\"\n },\n \"content\": {\n \"type\": \"video\",\n \"payload\": {\n \"url\": \"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\"\n }\n }\n}" } ] }, { "name": "File", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber_bot.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{viber_bot.contact.id}}\"\n },\n \"content\": {\n \"type\": \"video\",\n \"payload\": {\n \"url\": \"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send file message. See [documentation](https://docs.amio.io/v1.0/reference#viber-messages-file)." }, "response": [ { "name": "File", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{viber.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{viber.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"video\",\n\t\t\"payload\": {\n\t\t\t\"url\": \"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\"\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Sat, 09 Dec 2017 14:38:43 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "5000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "4982", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512831699", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151283032359314", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151283032359314\",\n \"channel\": {\n \"id\": \"151454470963967\",\n \"type\": \"viber\"\n },\n \"contact\": {\n \"id\": \"15219196820732912\"\n },\n \"content\": {\n \"type\": \"video\",\n \"payload\": {\n \"url\": \"http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4\"\n }\n }\n}" } ] }, { "name": "Structure", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber_bot.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{viber_bot.contact.id}}\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"title\": \"Leaf salad with smoked egg\",\n \"text\": \"9.5 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n },\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n }\n ]\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send structure message. See [documentation](https://docs.amio.io/reference#viber-messages-structure-viber)." }, "response": [ { "name": "Structure", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{viber.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{viber.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"structure\",\n\t\t\"payload\": {\n\t\t\t\"title\": \"Leaf salad with smoked egg\",\n\t\t\t\"text\": \"9.5 €\",\n\t\t\t\"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n\t\t\t\"item_url\": \"https://example.com/daily-menu\",\n\t\t\t\"buttons\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "529", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Sat, 13 Jan 2018 19:27:56 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.10.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "988", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1515873703", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151587167597869", "name": "Location", "description": "", "type": "text" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\n \"id\": \"151587167597869\",\n \"channel\": {\n \"id\": \"151515343979291\",\n \"type\": \"viber\"\n },\n \"contact\": {\n \"id\": \"15219196820732912\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"buttons\": [\n {\n \"payload\": \"https://example.com/daily-menu/food-1\",\n \"type\": \"url\",\n \"title\": \"Show Details\"\n },\n {\n \"payload\": \"https://example.com/daily-menu/food-1\",\n \"type\": \"url\",\n \"title\": \"Show Details\"\n }\n ],\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"text\": \"9.5 €\",\n \"title\": \"Leaf salad with smoked egg\"\n }\n }\n}" }, { "name": "Structure - Title & Image", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{viber.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{viber.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"structure\",\n\t\t\"payload\": {\n\t\t\t\"title\": \"Leaf salad with smoked egg\",\n\t\t\t\"text\": \"9.5 €\",\n\t\t\t\"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n\t\t\t\"item_url\": \"https://example.com/daily-menu\",\n\t\t\t\"buttons\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "280", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Sat, 13 Jan 2018 19:32:06 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.10.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "985", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1515873703", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151587192667246", "name": "Location", "description": "", "type": "text" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\n \"id\": \"151587192667246\",\n \"channel\": {\n \"id\": \"151515343979291\",\n \"type\": \"viber\"\n },\n \"contact\": {\n \"id\": \"15219196820732912\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"title\": \"Leaf salad with smoked egg\"\n }\n }\n}" }, { "name": "Structure - Text & Buttons", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{viber.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{viber.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"structure\",\n\t\t\"payload\": {\n\t\t\t\"title\": \"Leaf salad with smoked egg\",\n\t\t\t\"text\": \"9.5 €\",\n\t\t\t\"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n\t\t\t\"item_url\": \"https://example.com/daily-menu\",\n\t\t\t\"buttons\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "366", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Sat, 13 Jan 2018 19:32:36 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.10.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "984", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1515873703", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151587195671192", "name": "Location", "description": "", "type": "text" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\n \"id\": \"151587195671192\",\n \"channel\": {\n \"id\": \"151515343979291\",\n \"type\": \"viber\"\n },\n \"contact\": {\n \"id\": \"15219196820732912\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"buttons\": [\n {\n \"payload\": \"https://example.com/daily-menu/food-1\",\n \"type\": \"url\",\n \"title\": \"Show Details\"\n },\n {\n \"payload\": \"https://example.com/daily-menu/food-1\",\n \"type\": \"url\",\n \"title\": \"Show Details\"\n }\n ],\n \"text\": \"9.5 €\"\n }\n }\n}" }, { "name": "Structure - Title & Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{viber.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{viber.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"structure\",\n\t\t\"payload\": {\n\t\t\t\"title\": \"Leaf salad with smoked egg\",\n\t\t\t\"text\": \"9.5 €\",\n\t\t\t\"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n\t\t\t\"item_url\": \"https://example.com/daily-menu\",\n\t\t\t\"buttons\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "215", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Sat, 13 Jan 2018 19:31:17 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.10.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "986", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1515873703", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151587192667246", "name": "Location", "description": "", "type": "text" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\n \"id\": \"151587187698817\",\n \"channel\": {\n \"id\": \"151515343979291\",\n \"type\": \"viber\"\n },\n \"contact\": {\n \"id\": \"15219196820732912\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"text\": \"9.5 €\",\n \"title\": \"Leaf salad with smoked egg\"\n }\n }\n}" } ] }, { "name": "Structure - Horizontal Scroll", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber_bot.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{viber_bot.contact.id}}\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": [\n {\n \"title\": \"Leaf salad\",\n \"text\": \"9.5 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n }\n ]\n },\n {\n \"title\": \"Beef burger\",\n \"text\": \"12.0 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/9/9b/YOKOSUKA-NAVY-BURGER-TSUNAMI.JPG\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-2\"\n }\n ]\n }\n ]\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send structure message with horizontal scroll. See [documentation](https://docs.amio.io/reference#viber-messages-structure-horizontal-scroll)." }, "response": [ { "name": "Structure - Horizontal Scroll", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{viber.contact.id}}\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": [\n {\n \"title\": \"Leaf salad\",\n \"text\": \"9.5 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n }\n ]\n },\n {\n \"title\": \"Beef burger\",\n \"text\": \"12.0 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/9/9b/YOKOSUKA-NAVY-BURGER-TSUNAMI.JPG\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-2\"\n }\n ]\n }\n ]\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "712", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Fri, 12 Jan 2018 16:49:36 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.10.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "951", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1515776757", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151577577618240", "name": "Location", "description": "", "type": "text" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\"id\":\"151577577618240\",\"channel\":{\"id\":\"151515343979291\",\"type\":\"viber\"},\"contact\":{\"id\":\"oP5LFnRU2aGUbs1AiSYBPQ==\"},\"content\":{\"type\":\"structure\",\"payload\":[{\"buttons\":[{\"payload\":\"https://example.com/daily-menu/food-1\",\"type\":\"url\",\"title\":\"Show Details\"}],\"image_url\":\"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\"item_url\":\"https://example.com/daily-menu\",\"text\":\"9.5 €\",\"title\":\"Leaf salad\"},{\"buttons\":[{\"payload\":\"https://example.com/daily-menu/food-2\",\"type\":\"url\",\"title\":\"Show Details\"}],\"image_url\":\"https://upload.wikimedia.org/wikipedia/commons/9/9b/YOKOSUKA-NAVY-BURGER-TSUNAMI.JPG\",\"item_url\":\"https://example.com/daily-menu\",\"text\":\"12.0 €\",\"title\":\"Beef burger\"}]}}" } ] }, { "name": "Buttons", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber_bot.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{viber_bot.contact.id}}\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"text\": \"9.5 €\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n },\n {\n \"type\": \"postback\",\n \"title\": \"List Items\",\n \"payload\": \"{{PASS_THROUGH_PARAM}}\"\n }\n ]\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send message with buttons. See [documentation](https://docs.amio.io/reference#viber-messages-buttons)." }, "response": [ { "name": "Buttons", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{viber.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{viber.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"structure\",\n\t\t\"payload\": {\n\t\t\t\"text\": \"9.5 €\",\n\t\t\t\"buttons\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"url\",\n\t\t\t\t\t\"title\": \"Show Details\",\n\t\t\t\t\t\"payload\": \"https://example.com/daily-menu/food-1\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"postback\",\n\t\t\t\t\t\"title\": \"List Items\",\n\t\t\t\t\t\"payload\": \"{{PASS_THROUGH_PARAM}}\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "354", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Sat, 13 Jan 2018 19:03:47 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.10.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "998", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1515873703", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151587022710597", "name": "Location", "description": "", "type": "text" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\n \"id\": \"151587022710597\",\n \"channel\": {\n \"id\": \"151515343979291\",\n \"type\": \"viber\"\n },\n \"contact\": {\n \"id\": \"15219196820732912\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"buttons\": [\n {\n \"payload\": \"https://example.com/daily-menu/food-1\",\n \"type\": \"url\",\n \"title\": \"Show Details\"\n },\n {\n \"payload\": \"{{PASS_THROUGH_PARAM}}\",\n \"type\": \"postback\",\n \"title\": \"List Items\"\n }\n ],\n \"text\": \"9.5 €\"\n }\n }\n}" } ] }, { "name": "Metadata", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber_bot.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{viber_bot.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"any\": \"arbitrary data\",\n \"platform_metadata\": \"these data are going to be sent directly to Viber API as tracking_data attribute\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#viber-messages-metadata)." }, "response": [ { "name": "Metadata", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{viber.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{viber.contact.id}}\"\n\t},\n\t\"content\": {\n\t\t\"type\": \"text\",\n\t\t\"payload\": \"Hello world!\"\n\t},\n\t\"metadata\": {\n\t\t\"any\": \"arbitrary data\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 06 Dec 2017 15:15:36 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3986", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512574803", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/151257333595839", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151257333595839\",\n \"channel\": {\n \"id\": \"151454470963967\",\n \"type\": \"viber\"\n },\n \"contact\": {\n \"id\": \"15219196820732912\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"any\": \"arbitrary data\"\n }\n}" } ] } ], "description": "Messages resource is the main entry point for sending messages. See [Documentation](https://docs.amio.io/reference#viber-messages)." }, { "name": "Viber Business Messages", "item": [ { "name": "List Messages", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts/{{viber.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts", "{{viber.contact.id}}", "messages" ] }, "description": "List messages of given Viber Business channel and contact. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-list-messages)." }, "response": [ { "name": "List Messages", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts/{{viber.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts", "{{viber.contact.id}}", "messages" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 09:15:21 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "999", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534241721", "name": "X-RateLimit-Reset", "description": "Custom header" }, { "key": "X-Total-Count", "value": "11", "name": "X-Total-Count", "description": "Custom header" } ], "cookie": [], "body": "[\n {\n \"id\": \"151870486006194\",\n \"sent\": \"2018-02-15T14:27:39.612Z\",\n \"delivered\": \"2018-02-15T14:27:41Z\",\n \"read\": \"2018-02-15T14:28:54Z\",\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"151870424671553\",\n \"type\": \"viber_business_messages\"\n },\n \"contact\": {\n \"id\": \"151870432653590\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"payload\": \"Hello again!\",\n \"type\": \"text\"\n }\n },\n {\n \"id\": \"151870448290649\",\n \"sent\": \"2018-02-15T14:21:22.447Z\",\n \"delivered\": \"2018-02-15T14:28:54Z\",\n \"read\": \"2018-02-15T14:28:54Z\",\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"151870424671553\",\n \"type\": \"viber_business_messages\"\n },\n \"contact\": {\n \"id\": \"151870432653590\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"payload\": \"Hello world!\",\n \"type\": \"text\"\n }\n }\n]" } ] }, { "name": "Text", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{viber.contact.phone_number}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-messages-text)." }, "response": [ { "name": "Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{viber.contact.phone_number}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 09:17:47 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/15342382676705774", "name": "Location", "description": "Used in redirection, or when a new resource has been created." }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "998", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534241721", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\n \"id\": \"15342382676705774\",\n \"channel\": {\n \"id\": \"151870424671553\",\n \"type\": \"viber_business_messages\"\n },\n \"contact\": {\n \"id\": \"15342382674218164\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" } ] }, { "name": "Image", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{viber.contact.phone_number}}\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send image message. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-messages-image)." }, "response": [ { "name": "Image", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{viber.contact.phone_number}}\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 09:18:46 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/15342383269814290", "name": "Location", "description": "Used in redirection, or when a new resource has been created." }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "997", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534241721", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\n \"id\": \"15342383269814290\",\n \"channel\": {\n \"id\": \"151870424671553\",\n \"type\": \"viber_business_messages\"\n },\n \"contact\": {\n \"id\": \"15342382674218164\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" } ] }, { "name": "Structure", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{viber.contact.phone_number}}\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"title\": \"Leaf salad with smoked egg\",\n \"text\": \"9.5 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n }\n ]\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send structure message. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-messages-structure)." }, "response": [ { "name": "Structure", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{viber.contact.phone_number}}\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"title\": \"Leaf salad with smoked egg\",\n \"text\": \"9.5 €\",\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"buttons\": [\n {\n \"type\": \"url\",\n \"title\": \"Show Details\",\n \"payload\": \"https://example.com/daily-menu/food-1\"\n }\n ]\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 09:19:12 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/15342383523578916", "name": "Location", "description": "Used in redirection, or when a new resource has been created." }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "996", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534241721", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\n \"id\": \"15342383523578916\",\n \"channel\": {\n \"id\": \"151870424671553\",\n \"type\": \"viber_business_messages\"\n },\n \"contact\": {\n \"id\": \"15342382674218164\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"buttons\": [\n {\n \"payload\": \"https://example.com/daily-menu/food-1\",\n \"type\": \"url\",\n \"title\": \"Show Details\"\n }\n ],\n \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/f/fa/Fish_-lunch.jpg\",\n \"item_url\": \"https://example.com/daily-menu\",\n \"text\": \"9.5 €\",\n \"title\": \"Leaf salad with smoked egg\"\n }\n }\n}" } ] }, { "name": "Metadata", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{viber.contact.phone_number}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"any\": \"arbitrary data\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-messages-metadata)." }, "response": [ { "name": "Metadata", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{viber.contact.phone_number}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"any\": \"arbitrary data\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 09:19:53 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/15342383933915088", "name": "Location", "description": "Used in redirection, or when a new resource has been created." }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "995", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534241721", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\n \"id\": \"15342383933915088\",\n \"channel\": {\n \"id\": \"151870424671553\",\n \"type\": \"viber_business_messages\"\n },\n \"contact\": {\n \"id\": \"15342382674218164\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n },\n \"metadata\": {\n \"any\": \"arbitrary data\"\n }\n}" } ] } ] }, { "name": "RCS Business Messages (RBM)", "item": [ { "name": "List Messages", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{rbm.channel.id}}/contacts/{{rbm.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{rbm.channel.id}}", "contacts", "{{rbm.contact.id}}", "messages" ] }, "description": "List messages of given Viber Business channel and contact. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-list-messages)." }, "response": [ { "name": "List Messages", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts/{{viber.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts", "{{viber.contact.id}}", "messages" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 09:15:21 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "999", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534241721", "name": "X-RateLimit-Reset", "description": "Custom header" }, { "key": "X-Total-Count", "value": "11", "name": "X-Total-Count", "description": "Custom header" } ], "cookie": [], "body": "[\n {\n \"id\": \"151870486006194\",\n \"sent\": \"2018-02-15T14:27:39.612Z\",\n \"delivered\": \"2018-02-15T14:27:41Z\",\n \"read\": \"2018-02-15T14:28:54Z\",\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"151870424671553\",\n \"type\": \"viber_business_messages\"\n },\n \"contact\": {\n \"id\": \"151870432653590\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"payload\": \"Hello again!\",\n \"type\": \"text\"\n }\n },\n {\n \"id\": \"151870448290649\",\n \"sent\": \"2018-02-15T14:21:22.447Z\",\n \"delivered\": \"2018-02-15T14:28:54Z\",\n \"read\": \"2018-02-15T14:28:54Z\",\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"151870424671553\",\n \"type\": \"viber_business_messages\"\n },\n \"contact\": {\n \"id\": \"151870432653590\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"payload\": \"Hello world!\",\n \"type\": \"text\"\n }\n }\n]" } ] }, { "name": "Text", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{rbm.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{rbm.contact.phone_number}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-messages-text)." }, "response": [ { "name": "Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{viber.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{viber.contact.phone_number}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 09:17:47 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/15342382676705774", "name": "Location", "description": "Used in redirection, or when a new resource has been created." }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "998", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534241721", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\n \"id\": \"15342382676705774\",\n \"channel\": {\n \"id\": \"151870424671553\",\n \"type\": \"viber_business_messages\"\n },\n \"contact\": {\n \"id\": \"15342382674218164\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" } ] } ] }, { "name": "Telegram", "item": [ { "name": "List Messages", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{telegram.channel.id}}/contacts/{{telegram.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{telegram.channel.id}}", "contacts", "{{telegram.contact.id}}", "messages" ] }, "description": "List messages of given Viber Business channel and contact. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-list-messages)." }, "response": [ { "name": "List Messages", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts/{{viber.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts", "{{viber.contact.id}}", "messages" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 09:15:21 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "999", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534241721", "name": "X-RateLimit-Reset", "description": "Custom header" }, { "key": "X-Total-Count", "value": "11", "name": "X-Total-Count", "description": "Custom header" } ], "cookie": [], "body": "[\n {\n \"id\": \"151870486006194\",\n \"sent\": \"2018-02-15T14:27:39.612Z\",\n \"delivered\": \"2018-02-15T14:27:41Z\",\n \"read\": \"2018-02-15T14:28:54Z\",\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"151870424671553\",\n \"type\": \"viber_business_messages\"\n },\n \"contact\": {\n \"id\": \"151870432653590\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"payload\": \"Hello again!\",\n \"type\": \"text\"\n }\n },\n {\n \"id\": \"151870448290649\",\n \"sent\": \"2018-02-15T14:21:22.447Z\",\n \"delivered\": \"2018-02-15T14:28:54Z\",\n \"read\": \"2018-02-15T14:28:54Z\",\n \"direction\": \"sent\",\n \"channel\": {\n \"id\": \"151870424671553\",\n \"type\": \"viber_business_messages\"\n },\n \"contact\": {\n \"id\": \"151870432653590\",\n \"phone_number\": \"15558576309\"\n },\n \"content\": {\n \"payload\": \"Hello world!\",\n \"type\": \"text\"\n }\n }\n]" } ] }, { "name": "Text", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{telegram.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{telegram.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-text)." }, "response": [ { "name": "Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:23:07 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769649" }, { "key": "X-RateLimit-Remaining", "value": "980" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/6516977801299251765" } ], "cookie": [], "body": "{\n \"id\": \"6516977801299251765\",\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" } ] } ] }, { "name": "WhatsApp", "item": [ { "name": "List Messages", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{whatsapp.channel.id}}/contacts/{{whatsapp.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{whatsapp.channel.id}}", "contacts", "{{whatsapp.contact.id}}", "messages" ] }, "description": "List messages of given Facebook Messenger channel and contact. See [documentation](https://docs.amio.io/reference#facebook-messenger-messages-list-messages)." }, "response": [ { "name": "List Messages", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts/{{amio_chat.contact.id}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts", "{{amio_chat.contact.id}}", "messages" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:21:59 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769650" }, { "key": "X-RateLimit-Remaining", "value": "981" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Total-Count", "value": "2" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "[\n {\n \"id\": \"6516975431861424692\",\n \"sent\": \"2019-03-28T10:13:42.537Z\",\n \"delivered\": \"2019-03-28T10:13:43Z\",\n \"read\": null,\n \"direction\": \"received\",\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"content\": {\n \"payload\": \"asd\",\n \"type\": \"text\"\n }\n }\n]" } ] }, { "name": "Text", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{whatsapp.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{whatsapp.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-text)." }, "response": [ { "name": "Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:23:07 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769649" }, { "key": "X-RateLimit-Remaining", "value": "980" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/6516977801299251765" } ], "cookie": [], "body": "{\n \"id\": \"6516977801299251765\",\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" } ] }, { "name": "Structure", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{whatsapp.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{whatsapp.contact.id}}\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"text\":\"🚚📦 Your Order #12374 has been shipped\",\n \"buttons\": [\n {\n \"type\":\"postback\",\n \"title\": \"Track Package\",\n \"payload\": \"button_payload1\"\n },\n {\n \"type\":\"postback\",\n \"title\": \"Get Receipt\",\n \"payload\": \"button_payload2\"\n },\n {\n \"type\":\"postback\",\n \"title\": \"Change Address\",\n \"payload\": \"button_payload3\"\n }\n ]\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-text)." }, "response": [ { "name": "Structure", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:23:07 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769649" }, { "key": "X-RateLimit-Remaining", "value": "980" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/6516977801299251765" } ], "cookie": [], "body": "{\n \"id\": \"6516977801299251765\",\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"content\": {\n \"type\": \"structure\",\n \"payload\": {\n \"text\":\"🚚📦 Your Order #12374 has been shipped\",\n \"buttons\": [\n {\n \"type\":\"postback\",\n \"title\": \"Track Package\",\n \"payload\": \"button_payload1\"\n },\n {\n \"type\":\"postback\",\n \"title\": \"Get Receipt\",\n \"payload\": \"button_payload2\"\n },\n {\n \"type\":\"postback\",\n \"title\": \"Change Address\",\n \"payload\": \"button_payload3\"\n }\n ]\n }\n }\n}" } ] }, { "name": "Image", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{whatsapp.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{whatsapp.contact.id}}\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send image message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-image)." }, "response": [ { "name": "Image", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:24:57 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769649" }, { "key": "X-RateLimit-Remaining", "value": "979" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/6516978263989703222" } ], "cookie": [], "body": "{\n \"id\": \"6516978263989703222\",\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"content\": {\n \"type\": \"image\",\n \"payload\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/1/11/V%C3%A1clav_Havel_cut_out.jpg\"\n }\n }\n}" } ] } ] } ], "description": "Messages resource is the main entry point for sending messages. See [Documentation](https://docs.amio.io/reference#messages)." }, { "name": "Notifications", "item": [ { "name": "Amio Chat", "item": [ { "name": "Typing On", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"type\": \"typing_on\"\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] }, "description": "Send typing on notification. See [documentation](https://docs.amio.io/reference#facebook-messenger-notifications-send-notification)." }, "response": [ { "name": "Typing On", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"type\": \"typing_on\"\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:28:04 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769649" }, { "key": "X-RateLimit-Remaining", "value": "977" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"type\": \"typing_on\"\n}" } ] }, { "name": "Typing Off", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"type\": \"typing_off\"\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] }, "description": "Send typing on notification. See [documentation](https://docs.amio.io/reference#facebook-messenger-notifications-send-notification)." }, "response": [ { "name": "Typing Off", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"type\": \"typing_off\"\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:29:12 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769649" }, { "key": "X-RateLimit-Remaining", "value": "976" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"type\": \"typing_off\"\n}" } ] }, { "name": "Messages Read", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"type\": \"messages_read\"\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] }, "description": "Send notification that all messages have been read. See [documentation](https://docs.amio.io/reference#facebook-messenger-notifications-send-notification)." }, "response": [ { "name": "Messages Read", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"type\": \"messages_read\"\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:30:02 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769649" }, { "key": "X-RateLimit-Remaining", "value": "975" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"type\": \"messages_read\"\n}" } ] }, { "name": "Custom Notification", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"type\": \"custom\",\n \"payload\": {\n \t\"any\": \"arbitrary data\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] }, "description": "Send notification that all messages have been read. See [documentation](https://docs.amio.io/reference#facebook-messenger-notifications-send-notification)." }, "response": [ { "name": "Custom Notification", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"type\": \"custom\",\n \"payload\": {\n \t\"any\": \"arbitrary data\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:41:10 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553773269" }, { "key": "X-RateLimit-Remaining", "value": "999" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"type\": \"custom\",\n \"payload\": {\n \"any\": \"arbitrary data\"\n }\n}" } ] } ] }, { "name": "Facebook Messenger", "item": [ { "name": "Typing On", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"type\": \"typing_on\"\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] }, "description": "Send typing on notification. See [documentation](https://docs.amio.io/reference#facebook-messenger-notifications-send-notification)." }, "response": [ { "name": "Typing On", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"type\": \"typing_on\"\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "" }, { "key": "Content-Length", "value": "109", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Mon, 27 Nov 2017 16:40:28 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3995", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511801911", "name": "X-RateLimit-Reset", "description": "" } ], "cookie": [], "body": "{\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"channel\": {\n \"id\": \"151445772969853\"\n },\n \"type\": \"typing_on\"\n}" } ] }, { "name": "Typing Off", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"type\": \"typing_off\"\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] }, "description": "Send typing on notification. See [documentation](https://docs.amio.io/reference#facebook-messenger-notifications-send-notification)." }, "response": [ { "name": "Typing Off", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"type\": \"typing_off\"\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "" }, { "key": "Content-Length", "value": "110", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Mon, 27 Nov 2017 16:41:17 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3994", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511801911", "name": "X-RateLimit-Reset", "description": "" } ], "cookie": [], "body": "{\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"channel\": {\n \"id\": \"151445772969853\"\n },\n \"type\": \"typing_off\"\n}" } ] }, { "name": "Messages Read", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{fb.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{fb.contact.id}}\"\n },\n \"type\": \"messages_read\"\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] }, "description": "Send notification that all messages have been read. See [documentation](https://docs.amio.io/reference#facebook-messenger-notifications-send-notification)." }, "response": [ { "name": "Messages Read", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"channel\": {\n\t\t\"id\": \"{{fb.channel.id}}\"\n\t},\n\t\"contact\": {\n\t\t\"id\": \"{{fb.contact.id}}\"\n\t},\n\t\"type\": \"messages_read\"\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/notifications", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "notifications" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "" }, { "key": "Content-Length", "value": "110", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Mon, 27 Nov 2017 16:41:25 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3993", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511801911", "name": "X-RateLimit-Reset", "description": "" } ], "cookie": [], "body": "{\n \"contact\": {\n \"id\": \"1255524614484281\"\n },\n \"channel\": {\n \"id\": \"151445772969853\"\n },\n \"type\": \"messages_read\"\n}" } ] } ], "description": "Notifications resource is used for sending various events like messages read or typing to the contact. See [Documentation](https://docs.amio.io/reference#notifications)." } ], "description": "Notifications resource is used for sending various events like messages read or typing to the contact. See [Documentation](https://docs.amio.io/reference#facebook-messenger-notifications).", "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] }, { "name": "Channels", "item": [ { "name": "Amio Chat", "item": [ { "name": "List Channels", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "List channels. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-channels-list-channels)." }, "response": [ { "name": "List Channels", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels?offset=30", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ], "query": [ { "key": "offset", "value": "30" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 15:53:47 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703973" }, { "key": "X-RateLimit-Remaining", "value": "991" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Total-Count", "value": "41" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "[\n {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"6516692048501556799\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"E4G2mVWKd7yU72gXaAo73sl6FGkFF0\",\n \"ssl_verification\": true\n }\n }\n]" } ] }, { "name": "Get Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}" ] }, "description": "Get channel. See [documentation](https://docs.amio.io/reference#facebook-messenger-channels-get-channel)." }, "response": [ { "name": "Get Channel", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 15:56:23 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703973" }, { "key": "X-RateLimit-Remaining", "value": "990" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"6516692048501556799\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"E4G2mVWKd7yU72gXaAo73sl6FGkFF0\",\n \"ssl_verification\": true\n }\n}" } ] }, { "name": "Create Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "Create channel. See [documentation](https://docs.amio.io/reference#facebook-messenger-channels-create-channel)." }, "response": [ { "name": "Create Channel", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 15:27:39 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703974" }, { "key": "X-RateLimit-Remaining", "value": "998" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Location", "value": "https://api.amio.io/v1/channels/6516692048501556798" } ], "cookie": [], "body": "{\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"6516692048501556799\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"E4G2mVWKd7yU72gXaAo73sl6FGkFF0\",\n \"ssl_verification\": true\n }\n}" } ] }, { "name": "Update Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Amio\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}" ] }, "description": "Update channel. See [documentation](https://docs.amio.io/reference#facebook-messenger-channels-update-channel)." }, "response": [ { "name": "Update Channel", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Amio\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 15:57:27 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703974" }, { "key": "X-RateLimit-Remaining", "value": "989" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"6516692048501556799\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"E4G2mVWKd7yU72gXaAo73sl6FGkFF0\",\n \"ssl_verification\": true\n }\n}" } ] }, { "name": "Delete Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}" ] }, "description": "Delete channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-channels-delete-channel)." }, "response": [ { "name": "Delete Channel", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/facebook_messenger_151257606487430", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "facebook_messenger_151257606487430" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:09:14 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "7000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "6976", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "" } ], "cookie": [], "body": "" } ] } ] }, { "name": "Email", "item": [ { "name": "List Channels", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "List channels. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-channels-list-channels)." }, "response": [ { "name": "List Channels", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels?offset=30", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ], "query": [ { "key": "offset", "value": "30" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 15:53:47 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703973" }, { "key": "X-RateLimit-Remaining", "value": "991" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Total-Count", "value": "41" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "[\n {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"6516692048501556799\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"E4G2mVWKd7yU72gXaAo73sl6FGkFF0\",\n \"ssl_verification\": true\n }\n }\n]" } ] }, { "name": "Get Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{email.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{email.channel.id}}" ] }, "description": "Get channel. See [documentation](https://docs.amio.io/reference#facebook-messenger-channels-get-channel)." }, "response": [ { "name": "Get Channel", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 15:56:23 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703973" }, { "key": "X-RateLimit-Remaining", "value": "990" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"6516692048501556799\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"E4G2mVWKd7yU72gXaAo73sl6FGkFF0\",\n \"ssl_verification\": true\n }\n}" } ] }, { "name": "Create Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\r\n \"type\": \"email\",\r\n \"name\": \"Support Email\",\r\n \"webhook\": {\r\n \"url\": \"https://your-company.com/webhooks\"\r\n },\r\n \"provider\": {\r\n \"type\": \"mailgun\",\r\n \"access_token\": \"123456789abcdef-9c999993-sdaf82cfd9\",\r\n \"domain\": \"your-company.com\",\r\n \"default_attributes\": {\r\n \"from\": {\r\n \"email\": \"support@your-company.com\",\r\n \"name\": \"Customer Support\"\r\n }\r\n }\r\n }\r\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "Create channel. See [documentation](https://docs.amio.io/reference#facebook-messenger-channels-create-channel)." }, "response": [ { "name": "Create Channel", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 15:27:39 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703974" }, { "key": "X-RateLimit-Remaining", "value": "998" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Location", "value": "https://api.amio.io/v1/channels/6516692048501556798" } ], "cookie": [], "body": "{\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"6516692048501556799\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"E4G2mVWKd7yU72gXaAo73sl6FGkFF0\",\n \"ssl_verification\": true\n }\n}" } ] }, { "name": "Update Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\r\n \"name\": \"New Support Email\",\r\n \"mode\": \"production\",\r\n \"webhook\": {\r\n \"url\": \"https://new-company.com/webhooks\"\r\n },\r\n \"provider\": {\r\n \"access_token\": \"123456789abcdef-9c999993-sdaf82cfd9\",\r\n \"domain\": \"new-company.com\",\r\n \"default_attributes\": {\r\n \"from\": {\r\n \"email\": \"support@new-company.com\",\r\n \"name\": \"Customer Support\"\r\n }\r\n }\r\n }\r\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}" ] }, "description": "Update channel. See [documentation](https://docs.amio.io/reference#facebook-messenger-channels-update-channel)." }, "response": [ { "name": "Update Channel", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Amio\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 15:57:27 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703974" }, { "key": "X-RateLimit-Remaining", "value": "989" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"6516692048501556799\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"E4G2mVWKd7yU72gXaAo73sl6FGkFF0\",\n \"ssl_verification\": true\n }\n}" } ] }, { "name": "Delete Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{email.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{email.channel.id}}" ] }, "description": "Delete channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-channels-delete-channel)." }, "response": [ { "name": "Delete Channel", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/facebook_messenger_151257606487430", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "facebook_messenger_151257606487430" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:09:14 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "7000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "6976", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "" } ], "cookie": [], "body": "" } ] } ] }, { "name": "Facebook Messenger", "item": [ { "name": "List Channels", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "List channels. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-channels-list-channels)." }, "response": [ { "name": "List Channels", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "1192", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:08:21 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "7000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "6978", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "Custom header" }, { "key": "X-Total-Count", "value": "7", "name": "X-Total-Count", "description": "Custom header" } ], "cookie": [], "body": "[\n {\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"151180150794266\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"W9r0S3UBO4K6d6JnZqmXkWVFS1WBy5\",\n \"ssl_verification\": true\n },\n \"zendesk_integration\": null,\n \"facebook_page\": {\n \"id\": \"747722755375845\",\n \"name\": \"Amio\",\n \"category\": \"Internet Company\",\n \"access_token\": \"***\"\n }\n }\n]" } ] }, { "name": "Get Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}" ] }, "description": "Get channel. See [documentation](https://docs.amio.io/reference#facebook-messenger-channels-get-channel)." }, "response": [ { "name": "Get Channel", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "406", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:08:03 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "7000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "6979", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"151180150794266\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"W9r0S3UBO4K6d6JnZqmXkWVFS1WBy5\",\n \"ssl_verification\": true\n },\n \"zendesk_integration\": {\n \"subdomain\": \"envelon\"\n },\n \"facebook_page\": {\n \"id\": \"747722755375845\",\n \"name\": \"Amio\",\n \"category\": \"Internet Company\",\n \"access_token\": \"***\"\n }\n}" } ] }, { "name": "Create Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"facebook_messenger\",\n \"name\": \"Amio\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n },\n \"facebook_page\": {\n \"id\": \"747722755375845\",\n \"access_token\": \"{{fb.access_token}}\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "Create channel. See [documentation](https://docs.amio.io/reference#facebook-messenger-channels-create-channel)." }, "response": [ { "name": "Create Channel", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"type\": \"facebook_messenger\",\n\t\"name\": \"Amio\",\n\t\"webhook\": {\n\t\t\"url\": \"https://requestb.in/tqp125tq\"\n\t},\n\t\"facebook_page\": {\n \"id\": \"747722755375845\",\n \"access_token\": \"{{fb.access_token}}\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "517", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:03:04 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "5000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "4983", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/channels/151445772969853", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"151180150794266\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"W9r0S3UBO4K6d6JnZqmXkWVFS1WBy5\",\n \"ssl_verification\": true\n },\n \"facebook_page\": {\n \"id\": \"747722755375845\",\n \"name\": \"Amio\",\n \"category\": \"Internet Company\",\n \"access_token\": \"***\"\n }\n}" } ] }, { "name": "Update Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Amio\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}" ] }, "description": "Update channel. See [documentation](https://docs.amio.io/reference#facebook-messenger-channels-update-channel)." }, "response": [ { "name": "Update Channel", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"name\": \"Amio\",\n\t\"webhook\": {\n\t\t\"url\": \"https://requestb.in/tqp125tq\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "406", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:05:54 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "7000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "6980", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1512578437", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\n \"id\": \"151445772969853\",\n \"type\": \"facebook_messenger\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"151180150794266\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"W9r0S3UBO4K6d6JnZqmXkWVFS1WBy5\",\n \"ssl_verification\": true\n },\n \"zendesk_integration\": {\n \"subdomain\": \"envelon\"\n },\n \"facebook_page\": {\n \"id\": \"747722755375845\",\n \"name\": \"Amio\",\n \"category\": \"Internet Company\",\n \"access_token\": \"***\"\n }\n}" } ] }, { "name": "Delete Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}" ] }, "description": "Delete channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-channels-delete-channel)." }, "response": [ { "name": "Delete Channel", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/facebook_messenger_151257606487430", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "facebook_messenger_151257606487430" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:09:14 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "7000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "6976", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "" } ], "cookie": [], "body": "" } ] } ], "description": "Channel represents a medium through which you can send and receive messages. See [Documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-channels)." }, { "name": "Mobile", "item": [ { "name": "List Channels", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "List channels. See [documentation](https://docs.amio.io/v1.0/reference#mobile-channels-list-channels)." }, "response": [ { "name": "List Channels", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "1215", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Thu, 31 May 2018 09:50:50 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "998", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1527763581", "name": "X-RateLimit-Reset", "description": "Custom header" }, { "key": "X-Total-Count", "value": "7", "name": "X-Total-Count", "description": "Custom header" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "[\n {\n \"id\": \"152775927128158\",\n \"type\": \"mobile\",\n \"name\": \"Amio Mobile\",\n \"webhook\": {\n \"id\": \"152775927629429\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"Ssjjvwul10vGYgtL9hrsaHO802p61i\",\n \"ssl_verification\": true\n },\n \"provider\": {\n \"type\": \"messagebird\",\n \"sender_id\": \"phonenumber\",\n \"access_token\": \"r3TniW2smgLGE3ntqHT\",\n \"signing_key\": \"GDVCrN9tgECUrkouzh4gyn7k\",\n \"status_webhook_url\": \"https://api.amio.io/webhook/messagebird/status/152775927128158\",\n \"receive_webhook_url\": \"https://api.amio.io/webhook/messagebird/message/6204630442/152775927128158\"\n }\n }\n]" } ] }, { "name": "Get Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}" ] }, "description": "Get channel. See [documentation](https://docs.amio.io/reference#facebook-messenger-channels-get-channel)." }, "response": [ { "name": "Get Channel", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "294", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Thu, 31 May 2018 10:04:12 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "997", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1527763581", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\n \"id\": \"152775927128158\",\n \"type\": \"mobile\",\n \"name\": \"Amio Mobile\",\n \"webhook\": {\n \"id\": \"152775927629429\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"Ssjjvwul10vGYgtL9hrsaHO80\",\n \"ssl_verification\": true\n },\n \"provider\": {\n \"type\": \"messagebird\",\n \"sender_id\": \"phonenumber\",\n \"access_token\": \"m4tswKaIwXMhWp1pn1CK0ftGZ\",\n \"signing_key\": \"GDVCrN9tgECUrkouzh4gyn7k\",\n \"status_webhook_url\": \"https://api.amio.io/webhook/messagebird/status/152775927128158\",\n \"receive_webhook_url\": \"https://api.amio.io/webhook/messagebird/message/6204630442/152775927128158\"\n }\n}" } ] }, { "name": "Create Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"mobile\",\n \"name\": \"Amio Mobile\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n },\n \"provider\": {\n \"type\": \"messagebird\",\n \"sender_id\": \"phonenumber\",\n \"access_token\": \"m4tswKaIwXMhWp1pn1CK0ftGZ\",\n \"signing_key\": \"GDVCrN9tgECUrkouzh4gyn7k\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "Create channel. See [documentation](https://docs.amio.io/reference#mobile-channels-create-channel)." }, "response": [ { "name": "Create Channel", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"type\": \"mobile\",\n\t\"name\": \"Amio Mobile\",\n\t\"webhook\": {\n\t\t\"url\": \"https://requestb.in/tqp125tq\"\n\t},\n\t\"provider\": {\n\t\t\"type\": \"messagebird\",\n\t\t\"access_token\": \"m4tswKaIwXMhWp1pn1CK0ftGZ\",\n\t\t\"sender_id\": \"phonenumber\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Thu, 31 May 2018 09:34:37 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "959", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1527759515", "name": "X-RateLimit-Reset", "description": "" }, { "key": "transfer-encoding", "value": "chunked", "name": "transfer-encoding", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/channels/152775927128158", "name": "Location", "description": "", "type": "text" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\n \"id\": \"152775927128158\",\n \"type\": \"mobile\",\n \"name\": \"Amio Mobile\",\n \"webhook\": {\n \"id\": \"152775927629429\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"Ssjjvwul10vGYgtL9hrsaHO802p61i\",\n \"ssl_verification\": true\n },\n \"provider\": {\n \"type\": \"messagebird\",\n \"sender_id\": \"phonenumber\",\n \"access_token\": \"m4tswKaIwXMhWp1pn1CK0ftGZ\",\n \"signing_key\": \"GDVCrN9tgECUrkouzh4gyn7k\",\n \"status_webhook_url\": \"https://api.amio.io/webhook/messagebird/status/152775927128158\",\n \"receive_webhook_url\": \"https://api.amio.io/webhook/messagebird/message/6204630442/152775927128158\"\n }\n}" } ] }, { "name": "Update Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Amio\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n },\n \"provider\": {\n \"sender_id\": \"phonenumber\",\n \"access_token\": \"m4tswKaIwXMhWp1pn1CK0ftGZ\",\n \"signing_key\": \"GDVCrN9tgECUrkouzh4gyn7k\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}" ] }, "description": "Update channel. See [documentation](https://docs.amio.io/reference#mobile-channels-update-channel)." }, "response": [ { "name": "Update Channel", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"name\": \"Amio\",\n\t\"webhook\": {\n\t\t\"url\": \"https://requestb.in/tqp125tq\"\n\t},\n\t\"provider\": {\n\t\t\"sender_id\": \"phonenumber\",\n\t\t\"access_token\": \"m4tswKaIwXMhWp1pn1CK0ftGZ\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "290", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 19 Jun 2018 09:37:15 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "991", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1529404375", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\n \"id\": \"152775927128158\",\n \"type\": \"mobile\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"152775927629429\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"Ssjjvwul10vGYgtL9hrsaHO802p61i\",\n \"ssl_verification\": true\n },\n \"provider\": {\n \"type\": \"messagebird\",\n \"sender_id\": \"phonenumber\",\n \"access_token\": \"m4tswKaIwXMhWp1pn1CK0ftGZ\",\n \"signing_key\": \"GDVCrN9tgECUrkouzh4gyn7k\",\n \"status_webhook_url\": \"https://api.amio.io/webhook/messagebird/status/152775927128158\",\n \"receive_webhook_url\": \"https://api.amio.io/webhook/messagebird/message/6204630442/152775927128158\"\n }\n}" } ] }, { "name": "Delete Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}" ] }, "description": "Delete channel. See [documentation](https://docs.amio.io/reference#mobile-channels-delete-channel)." }, "response": [ { "name": "Delete Channel", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/152775927128158", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "152775927128158" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Date", "value": "Thu, 31 May 2018 10:31:51 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "975", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1527763580", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "" } ] } ], "description": "Channel represents a medium through which you can send and receive messages. See [Documentation](https://docs.amio.io/v1.0/reference#mobile-channels).", "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] }, { "name": "Viber Bot", "item": [ { "name": "List Channels", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "List channels. See [documentation](https://docs.amio.io/reference#viber-channels-list-channels)." }, "response": [ { "name": "List Channels", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "748", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:12:50 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "3943", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "Custom header" }, { "key": "X-Total-Count", "value": "4", "name": "X-Total-Count", "description": "Custom header" } ], "cookie": [], "body": "[\n {\n \"id\": \"151454470963967\",\n \"type\": \"viber_business_messages\",\n \"name\": \"Amio Viber Business Messages\",\n \"webhook\": {\n \"id\": \"151180150794266\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"W9r0S3UBO4K6d6JnZqmXkWVFS1WBy5\",\n \"ssl_verification\": true\n },\n \"viber_business_messages\": {\n \t\"sender_id\": \"Amio\",\n \"default_message_ttl\": \"PT20M\",\n \"approved\": true,\n \"test_mode\": false\n }\n }\n]" } ] }, { "name": "Get Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber_bot.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber_bot.channel.id}}" ] }, "description": "Get channel. See [documentation](https://docs.amio.io/reference#viber-channels-get-channel)." }, "response": [ { "name": "Get Channel", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "254", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:10:25 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "6000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "5975", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\n \"id\": \"151454470963967\",\n \"type\": \"viber_business_messages\",\n \"name\": \"Amio Viber Business Messages\",\n \"webhook\": {\n \"id\": \"151180150794266\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"W9r0S3UBO4K6d6JnZqmXkWVFS1WBy5\",\n \"ssl_verification\": true\n },\n \"viber_business_messages\": {\n \t\"sender_id\": \"Amio\",\n \"default_message_ttl\": \"PT20M\",\n \"approved\": true,\n \"test_mode\": false\n }\n}" } ] }, { "name": "Create Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"viber\",\n \"name\": \"Amio Viber\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://example.com/webhook\"\n },\n \"viber\": {\n \"access_token\": \"{{viber_bot.access_token}}\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "Create channel. See [documentation](https://docs.amio.io/reference#viber-channels-create-channel)." }, "response": [ { "name": "Create Channel", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"type\": \"viber\",\n\t\"name\": \"Amio Viber\",\n\t\"webhook\": {\n\t\t\"url\": \"https://requestb.in/tqp125tq\"\n\t},\n\t\"viber\": {\n \"access_token\": \"{{viber.public_account.access_token}}\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "343", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:29:22 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3938", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/channels/151454470963967", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151454470963967\",\n \"type\": \"viber_business_messages\",\n \"name\": \"Amio Viber Business Messages\",\n \"webhook\": {\n \"id\": \"151180150794266\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"W9r0S3UBO4K6d6JnZqmXkWVFS1WBy5\",\n \"ssl_verification\": true\n },\n \"viber_business_messages\": {\n \t\"sender_id\": \"Amio\",\n \"default_message_ttl\": \"PT20M\",\n \"approved\": false,\n \"test_mode\": false\n }\n}" } ] }, { "name": "Update Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Amio Viber\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber_bot.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber_bot.channel.id}}" ] }, "description": "Update channel. See [documentation](https://docs.amio.io/reference#viber-channels-update-channel)." }, "response": [ { "name": "Update Channel", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"name\": \"Amio Viber\",\n\t\"webhook\": {\n\t\t\"url\": \"https://requestb.in/tqp125tq\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "254", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:30:42 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "5000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "4936", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\n \"id\": \"151454470963967\",\n \"type\": \"viber_business_messages\",\n \"name\": \"Amio Viber Business Messages\",\n \"webhook\": {\n \"id\": \"151180150794266\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"W9r0S3UBO4K6d6JnZqmXkWVFS1WBy5\",\n \"ssl_verification\": true\n },\n \"viber_business_messages\": {\n \t\"sender_id\": \"Amio\",\n \"default_message_ttl\": \"PT20M\",\n \"approved\": true,\n \"test_mode\": false\n }\n}" } ] }, { "name": "Delete Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber_bot.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber_bot.channel.id}}" ] }, "description": "Delete channel. See [documentation](https://docs.amio.io/reference#viber-channels-delete-channel)." }, "response": [ { "name": "Delete Channel", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/viber_151187103741221", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "viber_151187103741221" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Date", "value": "Tue, 28 Nov 2017 12:24:36 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "7000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "6972", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511873655", "name": "X-RateLimit-Reset", "description": "" } ], "cookie": [], "body": "" } ] } ], "description": "Channel represents a medium through which you can send and receive messages. See [Documentation](https://docs.amio.io/v1.0/reference#viber-channels)." }, { "name": "Viber Business Messages", "item": [ { "name": "List Channels", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "List channels. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-channels-list)." }, "response": [ { "name": "List Channels", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Tue, 14 Aug 2018 11:37:39 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "992", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1534249743", "name": "X-RateLimit-Reset", "description": "" }, { "key": "X-Total-Count", "value": "1", "name": "X-Total-Count", "description": "" } ], "cookie": [], "body": "[\n {\n \"id\": \"153424652235498\",\n \"type\": \"viber_business_messages\",\n \"name\": \"Example\",\n \"webhook\": {\n \"id\": \"153424652235513\",\n \"url\": \"https://example.com/webhook\",\n \"secret\": \"StsLzne2w8YI211KcBhnosprLrBvYU\",\n \"ssl_verification\": true\n },\n \"viber_business_messages\": {\n \"sender_id\": \"Example\",\n \"default_message_ttl\": \"PT24H\",\n \"approved\": false\n }\n\t}\n]" } ] }, { "name": "Get Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] }, "description": "Get channel. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-channels-get)." }, "response": [ { "name": "Get Channel", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 11:37:22 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "993", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534249744", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\"id\":\"153424652235498\",\"type\":\"viber_business_messages\",\"name\":\"Example\",\"webhook\":{\"id\":\"153424652235513\",\"url\":\"https://example.com/webhook\",\"secret\":\"StsLzne2w8YI211KcBhnosprLrBvYU\",\"ssl_verification\":true},\"viber_business_messages\":{\"sender_id\":\"Example\",\"default_message_ttl\":\"PT24H\",\"approved\":false}}" } ] }, { "name": "Create Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"viber_business_messages\",\n \"name\": \"Example\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://example.com/webhook\"\n },\n \"viber_business_messages\": {\n \t\"sender_id\": \"Example\",\n \t\"default_message_ttl\": \"PT20M\",\n \"mode\": \"amio\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "Create channel. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-channels-create)." }, "response": [ { "name": "Create Channel", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"viber_business_messages\",\n \"name\": \"Example\",\n \"webhook\": {\n \"url\": \"https://example.com/webhook\"\n },\n \"viber_business_messages\": {\n \t\"sender_id\": \"Example\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 11:35:22 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Location", "value": "https://api.amio.io/v1/channels/153424652235498", "name": "Location", "description": "Used in redirection, or when a new resource has been created." }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "997", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534249744", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\"id\":\"153424652235498\",\"type\":\"viber_business_messages\",\"name\":\"Example\",\"webhook\":{\"id\":\"153424652235513\",\"url\":\"https://example.com/webhook\",\"secret\":\"StsLzne2w8YI211KcBhnosprLrBvYU\",\"ssl_verification\":true},\"viber_business_messages\":{\"sender_id\":\"Example\",\"default_message_ttl\":\"PT20M\",\"approved\":false,\n \"mode\": \"amio\"}}" } ] }, { "name": "Update Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"My New Name\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://example.com/new-webhook\"\n },\n \"viber\": {\n \t\"default_message_ttl\": \"PT20M\",\n \"mode\": \"amio\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] }, "description": "Update channel. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-channels-update)." }, "response": [ { "name": "Update Channel", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"My New Name\",\n \"webhook\": {\n \"url\": \"https://example.com/new-webhook\"\n },\n \"viber_business_messages\": {\n \t\"default_message_ttl\": \"PT20M\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 11:39:05 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "991", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534249744", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\"id\":\"153424652235498\",\"type\":\"viber_business_messages\",\"name\":\"My New Name\",\"webhook\":{\"id\":\"153424652235513\",\"url\":\"https://example.com/new-webhook\",\"secret\":\"StsLzne2w8YI211KcBhnosprLrBvYU\",\"ssl_verification\":true},\"viber_business_messages\":{\"sender_id\":\"Example\",\"default_message_ttl\":\"PT20M\",\"approved\":false,\"mode\":\"amio\"}}" } ] }, { "name": "Delete Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] }, "description": "Delete channel. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-channels-delete)." }, "response": [ { "name": "Delete Channel", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Date", "value": "Tue, 14 Aug 2018 11:39:28 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "990", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534249744", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "" } ] } ] }, { "name": "RCS Business Messages (RBM)", "item": [ { "name": "List Channels", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "List channels. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-channels-list)." }, "response": [ { "name": "List Channels", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Tue, 14 Aug 2018 11:37:39 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "992", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1534249743", "name": "X-RateLimit-Reset", "description": "" }, { "key": "X-Total-Count", "value": "1", "name": "X-Total-Count", "description": "" } ], "cookie": [], "body": "[\n {\n \"id\": \"153424652235498\",\n \"type\": \"viber_business_messages\",\n \"name\": \"Example\",\n \"webhook\": {\n \"id\": \"153424652235513\",\n \"url\": \"https://example.com/webhook\",\n \"secret\": \"StsLzne2w8YI211KcBhnosprLrBvYU\",\n \"ssl_verification\": true\n },\n \"viber_business_messages\": {\n \"sender_id\": \"Example\",\n \"default_message_ttl\": \"PT24H\",\n \"approved\": false\n }\n\t}\n]" } ] }, { "name": "Get Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{rbm.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{rbm.channel.id}}" ] }, "description": "Get channel. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-channels-get)." }, "response": [ { "name": "Get Channel", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 11:37:22 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "993", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534249744", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\"id\":\"153424652235498\",\"type\":\"viber_business_messages\",\"name\":\"Example\",\"webhook\":{\"id\":\"153424652235513\",\"url\":\"https://example.com/webhook\",\"secret\":\"StsLzne2w8YI211KcBhnosprLrBvYU\",\"ssl_verification\":true},\"viber_business_messages\":{\"sender_id\":\"Example\",\"default_message_ttl\":\"PT24H\",\"approved\":false}}" } ] }, { "name": "Create Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"type\": \"rbm\",\r\n \"name\": \"Example\",\r\n \"mode\": \"production\",\r\n \"webhook\": {\r\n \"url\": \"https://example.com/webhook\"\r\n },\r\n \"rbm\": {\r\n \t\"agent_name\": \"ACME\",\r\n \"agent_state\": \"create_requested\",\r\n \"region\": \"europe\"\r\n }\r\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "Create channel. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-channels-create)." }, "response": [ { "name": "Create Channel", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"viber_business_messages\",\n \"name\": \"Example\",\n \"webhook\": {\n \"url\": \"https://example.com/webhook\"\n },\n \"viber_business_messages\": {\n \t\"sender_id\": \"Example\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 11:35:22 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Location", "value": "https://api.amio.io/v1/channels/153424652235498", "name": "Location", "description": "Used in redirection, or when a new resource has been created." }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "997", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534249744", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\"id\":\"153424652235498\",\"type\":\"viber_business_messages\",\"name\":\"Example\",\"webhook\":{\"id\":\"153424652235513\",\"url\":\"https://example.com/webhook\",\"secret\":\"StsLzne2w8YI211KcBhnosprLrBvYU\",\"ssl_verification\":true},\"viber_business_messages\":{\"sender_id\":\"Example\",\"default_message_ttl\":\"PT20M\",\"approved\":false,\n \"mode\": \"amio\"}}" } ] }, { "name": "Update Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"My New Name\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://example.com/new-webhook\"\n },\n \"rbm\": {\n \"agent_name\": \"ACME\",\n \"agent_state\": \"create_requested\",\n \"region\": \"europe\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{rbm.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{rbm.channel.id}}" ] }, "description": "Update channel. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-channels-update)." }, "response": [ { "name": "Update Channel", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"My New Name\",\n \"webhook\": {\n \"url\": \"https://example.com/new-webhook\"\n },\n \"viber_business_messages\": {\n \t\"default_message_ttl\": \"PT20M\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 11:39:05 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "991", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534249744", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\"id\":\"153424652235498\",\"type\":\"viber_business_messages\",\"name\":\"My New Name\",\"webhook\":{\"id\":\"153424652235513\",\"url\":\"https://example.com/new-webhook\",\"secret\":\"StsLzne2w8YI211KcBhnosprLrBvYU\",\"ssl_verification\":true},\"viber_business_messages\":{\"sender_id\":\"Example\",\"default_message_ttl\":\"PT20M\",\"approved\":false,\"mode\":\"amio\"}}" } ] }, { "name": "Delete Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{rbm.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{rbm.channel.id}}" ] }, "description": "Delete channel. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-channels-delete)." }, "response": [ { "name": "Delete Channel", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Date", "value": "Tue, 14 Aug 2018 11:39:28 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "990", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534249744", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "" } ] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] }, { "name": "Telegram", "item": [ { "name": "List Channels", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "List channels. See [documentation](https://docs.amio.io/reference#viber-channels-list-channels)." }, "response": [ { "name": "List Channels", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "748", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:12:50 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "3943", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "Custom header" }, { "key": "X-Total-Count", "value": "4", "name": "X-Total-Count", "description": "Custom header" } ], "cookie": [], "body": "[\n {\n \"id\": \"151454470963967\",\n \"type\": \"viber_business_messages\",\n \"name\": \"Amio Viber Business Messages\",\n \"webhook\": {\n \"id\": \"151180150794266\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"W9r0S3UBO4K6d6JnZqmXkWVFS1WBy5\",\n \"ssl_verification\": true\n },\n \"viber_business_messages\": {\n \t\"sender_id\": \"Amio\",\n \"default_message_ttl\": \"PT20M\",\n \"approved\": true,\n \"test_mode\": false\n }\n }\n]" } ] }, { "name": "Get Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{telegram.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{telegram.channel.id}}" ] }, "description": "Get channel. See [documentation](https://docs.amio.io/reference#viber-channels-get-channel)." }, "response": [ { "name": "Get Channel", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "254", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:10:25 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "6000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "5975", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\n \"id\": \"151454470963967\",\n \"type\": \"viber_business_messages\",\n \"name\": \"Amio Viber Business Messages\",\n \"webhook\": {\n \"id\": \"151180150794266\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"W9r0S3UBO4K6d6JnZqmXkWVFS1WBy5\",\n \"ssl_verification\": true\n },\n \"viber_business_messages\": {\n \t\"sender_id\": \"Amio\",\n \"default_message_ttl\": \"PT20M\",\n \"approved\": true,\n \"test_mode\": false\n }\n}" } ] }, { "name": "Create Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"telegram\",\n \"name\": \"Your Telegram Bot\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://example.com/webhook\"\n },\n \"telegram\": {\n \"access_token\": \"Fill with your telegram bot 'token'.\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "Create channel. See [documentation](https://docs.amio.io/reference#viber-channels-create-channel)." }, "response": [ { "name": "Create Channel", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"type\": \"viber\",\n\t\"name\": \"Amio Viber\",\n\t\"webhook\": {\n\t\t\"url\": \"https://requestb.in/tqp125tq\"\n\t},\n\t\"viber\": {\n \"access_token\": \"{{viber.public_account.access_token}}\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Length", "value": "343", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:29:22 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3938", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "" }, { "key": "Location", "value": "https://api.amio.io/v1/channels/151454470963967", "name": "Location", "description": "", "type": "text" } ], "cookie": [], "body": "{\n \"id\": \"151454470963967\",\n \"type\": \"viber_business_messages\",\n \"name\": \"Amio Viber Business Messages\",\n \"webhook\": {\n \"id\": \"151180150794266\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"W9r0S3UBO4K6d6JnZqmXkWVFS1WBy5\",\n \"ssl_verification\": true\n },\n \"viber_business_messages\": {\n \t\"sender_id\": \"Amio\",\n \"default_message_ttl\": \"PT20M\",\n \"approved\": false,\n \"test_mode\": false\n }\n}" } ] }, { "name": "Update Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Amio Telegram\",\n \"mode\": \"production\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{telegram.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{telegram.channel.id}}" ] }, "description": "Update channel. See [documentation](https://docs.amio.io/reference#viber-channels-update-channel)." }, "response": [ { "name": "Update Channel", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n\t\"name\": \"Amio Viber\",\n\t\"webhook\": {\n\t\t\"url\": \"https://requestb.in/tqp125tq\"\n\t}\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "254", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:30:42 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "5000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "4936", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\n \"id\": \"151454470963967\",\n \"type\": \"viber_business_messages\",\n \"name\": \"Amio Viber Business Messages\",\n \"webhook\": {\n \"id\": \"151180150794266\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"W9r0S3UBO4K6d6JnZqmXkWVFS1WBy5\",\n \"ssl_verification\": true\n },\n \"viber_business_messages\": {\n \t\"sender_id\": \"Amio\",\n \"default_message_ttl\": \"PT20M\",\n \"approved\": true,\n \"test_mode\": false\n }\n}" } ] }, { "name": "Delete Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{telegram.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{telegram.channel.id}}" ] }, "description": "Delete channel. See [documentation](https://docs.amio.io/reference#viber-channels-delete-channel)." }, "response": [ { "name": "Delete Channel", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/viber_151187103741221", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "viber_151187103741221" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Date", "value": "Tue, 28 Nov 2017 12:24:36 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "7000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "6972", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511873655", "name": "X-RateLimit-Reset", "description": "" } ], "cookie": [], "body": "" } ] } ] }, { "name": "WhatsApp", "item": [ { "name": "List Channels", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "List channels. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-channels-list-channels)." }, "response": [ { "name": "List Channels", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels?offset=30", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ], "query": [ { "key": "offset", "value": "30" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 15:53:47 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703973" }, { "key": "X-RateLimit-Remaining", "value": "991" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Total-Count", "value": "41" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "[\n {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"6516692048501556799\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"E4G2mVWKd7yU72gXaAo73sl6FGkFF0\",\n \"ssl_verification\": true\n }\n }\n]" } ] }, { "name": "Get Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{whatsapp.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{whatsapp.channel.id}}" ] }, "description": "Get channel. See [documentation](https://docs.amio.io/reference#facebook-messenger-channels-get-channel)." }, "response": [ { "name": "Get Channel", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 15:56:23 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703973" }, { "key": "X-RateLimit-Remaining", "value": "990" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"6516692048501556799\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"E4G2mVWKd7yU72gXaAo73sl6FGkFF0\",\n \"ssl_verification\": true\n }\n}" } ] }, { "name": "Create Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"whatsapp\",\n \"name\": \"Your WA Business Account\",\n \"mode\": \"sandbox\",\n \"webhook\": {\n \"url\": \"https://my-project.com/webhooks\"\n },\n \"whatsapp_business_account\": {\n \"phone_number\": \"+11 123 456 789\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] }, "description": "Create channel. See [documentation](https://docs.amio.io/reference#facebook-messenger-channels-create-channel)." }, "response": [ { "name": "Create Channel", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"url\": \"https://requestb.in/tqp125tq\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 15:27:39 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703974" }, { "key": "X-RateLimit-Remaining", "value": "998" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Location", "value": "https://api.amio.io/v1/channels/6516692048501556798" } ], "cookie": [], "body": "{\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\",\n \"name\": \"Amio\",\n \"webhook\": {\n \"id\": \"6516692048501556799\",\n \"url\": \"https://requestb.in/tqp125tq\",\n \"secret\": \"E4G2mVWKd7yU72gXaAo73sl6FGkFF0\",\n \"ssl_verification\": true\n }\n}" } ] }, { "name": "Delete Channel", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{whatsapp.channel.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{whatsapp.channel.id}}" ] }, "description": "Delete channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-channels-delete-channel)." }, "response": [ { "name": "Delete Channel", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/facebook_messenger_151257606487430", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "facebook_messenger_151257606487430" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Date", "value": "Wed, 06 Dec 2017 16:09:14 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.7", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "7000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "6976", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1512578438", "name": "X-RateLimit-Reset", "description": "" } ], "cookie": [], "body": "" } ] } ] } ], "description": "Channel represents a medium through which you can send and receive message. See [Documentation](https://docs.amio.io/v1.0/reference#channels)." }, { "name": "Contacts", "item": [ { "name": "Amio Chat", "item": [ { "name": "List Contacts", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts" ] }, "description": "List contacts of given Facebook Messenger channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-contacts-list-contacts)." }, "response": [ { "name": "List Contacts", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 16:24:30 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703973" }, { "key": "X-RateLimit-Remaining", "value": "983" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Total-Count", "value": "1" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "[\n {\n \"id\": \"6503986013434162130\",\n \"name\": \"6503986013434162130\"\n }\n]" } ] }, { "name": "Get Contact", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts/{{amio_chat.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts", "{{amio_chat.contact.id}}" ] }, "description": "Get contact of given Facebook Messenger channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-contacts-get-contact)." }, "response": [ { "name": "Get Contact", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts/{{amio_chat.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts", "{{amio_chat.contact.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 16:25:59 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703974" }, { "key": "X-RateLimit-Remaining", "value": "982" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"id\": \"6503986013434162130\",\n \"name\": \"6503986013434162130\"\n}" } ] }, { "name": "Delete Contact", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts/{{amio_chat.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts", "{{amio_chat.contact.id}}" ] }, "description": "Delete contact of given Facebook Messenger channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-contacts-delete-contact)." }, "response": [ { "name": "Delete Contact", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts/{{amio_chat.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts", "{{amio_chat.contact.id}}" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 16:28:14 GMT" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553707685" }, { "key": "X-RateLimit-Remaining", "value": "999" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" } ], "cookie": [], "body": "" } ] } ] }, { "name": "Facebook Messenger", "item": [ { "name": "List Contacts", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}/contacts", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}", "contacts" ] }, "description": "List contacts of given Facebook Messenger channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-contacts-list-contacts)." }, "response": [ { "name": "List Contacts", "originalRequest": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}/contacts", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}", "contacts" ] }, "description": "List contacts of given Facebook Messenger channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-contacts-list-contacts)." }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "" }, { "key": "Content-Length", "value": "874", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Thu, 23 Nov 2017 12:42:27 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3999", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511444547", "name": "X-RateLimit-Reset", "description": "" }, { "key": "X-Total-Count", "value": "16", "name": "X-Total-Count", "description": "" } ], "cookie": [], "body": "[\n {\n \"id\": \"1096280500453211\",\n \"name\": \"MatouÅ¡ Kučera\",\n \"gender\": \"male\",\n \"locale\": \"en_US\",\n \"time_zone\": \"+01:00\",\n \"photo_url\": \"https://scontent.xx.fbcdn.net/v/t1.0-1/12548863_1686095324971409_1335029826839245237_n.jpg?oh=3608db40885a437b84c909c4d9646fe3&oe=5A9D524B\"\n },\n {\n \"id\": \"1128998867161920\",\n \"name\": \"Honza Donátek\",\n \"gender\": \"male\",\n \"locale\": \"en_US\",\n \"time_zone\": \"+02:00\",\n \"photo_url\": \"https://scontent.xx.fbcdn.net/v/t1.0-1/541992_511761562179706_48931455_n.jpg?oh=1157a5aa485fd1f2f51984fb9261c125&oe=5A01EEB3\"\n }\n]" } ] }, { "name": "Get Contact", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}/contacts/{{fb.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}", "contacts", "{{fb.contact.id}}" ] }, "description": "Get contact of given Facebook Messenger channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-contacts-get-contact)." }, "response": [ { "name": "Get Contact", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}/contacts/{{fb.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}", "contacts", "{{fb.contact.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "" }, { "key": "Content-Length", "value": "236", "name": "Content-Length", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Thu, 23 Nov 2017 12:45:21 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3998", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511444547", "name": "X-RateLimit-Reset", "description": "" } ], "cookie": [], "body": "{\"id\":\"1096280500453211\",\"name\":\"MatouÅ¡ Kučera\",\"gender\":\"male\",\"locale\":\"en_US\",\"time_zone\":\"+01:00\",\"photo_url\":\"https://scontent.xx.fbcdn.net/v/t1.0-1/12548863_1686095324971409_1335029826839245237_n.jpg?oh=3608db40885a437b84c909c4d9646fe3&oe=5A9D524B\"}" } ] }, { "name": "Delete Contact", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}/contacts/{{fb.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}", "contacts", "{{fb.contact.id}}" ] }, "description": "Delete contact of given Facebook Messenger channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-contacts-delete-contact)." }, "response": [ { "name": "Delete Contact", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}/contacts/{{fb.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}", "contacts", "{{fb.contact.id}}" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Date", "value": "Thu, 23 Nov 2017 12:46:39 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3997", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511444547", "name": "X-RateLimit-Reset", "description": "" } ], "cookie": [], "body": "" } ] } ], "description": "Contact represents the Facebook Messenger user. See [Documentation](https://docs.amio.io/reference#facebook-messenger-contacts)." }, { "name": "Mobile", "item": [ { "name": "List Contacts", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}/contacts", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}", "contacts" ] }, "description": "List contacts of given Mobile channel. See [documentation](https://docs.amio.io/v1.0/reference#mobile-contacts-list-contacts)." }, "response": [ { "name": "List Contacts", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}/contacts", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}", "contacts" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "88", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Thu, 31 May 2018 12:04:37 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "910", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1527769346", "name": "X-RateLimit-Reset", "description": "Custom header" }, { "key": "X-Total-Count", "value": "1", "name": "X-Total-Count", "description": "Custom header" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "[\n {\n \"id\": \"15277672508965176\",\n \"name\": \"15558576309\",\n \"phone_number\": \"15558576309\"\n }\n]" } ] }, { "name": "Get Contact", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}/contacts/{{mobile.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}", "contacts", "{{mobile.contact.id}}" ] }, "description": "Get contact of given Mobile channel. See [documentation](https://docs.amio.io/v1.0/reference#mobile-contacts-get-contact)." }, "response": [ { "name": "Get Contact", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}/contacts/{{mobile.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}", "contacts", "{{mobile.contact.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Length", "value": "86", "name": "Content-Length", "description": "The length of the response body in octets (8-bit bytes)" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Thu, 31 May 2018 12:09:03 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "909", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1527769346", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "{\n \"id\": \"15277672508965176\",\n \"name\": \"15558576309\",\n \"phone_number\": \"15558576309\"\n}" } ] }, { "name": "Delete Contact", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}/contacts/{{mobile.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}", "contacts", "{{mobile.contact.id}}" ] }, "description": "Delete contact of given Mobile channel. See [documentation](https://docs.amio.io/v1.0/reference#mobile-contacts-delete-contact)." }, "response": [ { "name": "Delete Contact", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{mobile.channel.id}}/contacts/{{mobile.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{mobile.channel.id}}", "contacts", "{{mobile.contact.id}}" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Date", "value": "Thu, 31 May 2018 12:15:17 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "880", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1527769345", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [ { "expires": "Invalid Date", "httpOnly": true, "domain": "api.amio.io", "path": "/", "secure": false, "value": "43A9F3BB09A4FA0F6E642FFC0F30CC41", "key": "JSESSIONID" } ], "body": "" } ] } ], "description": "Contact represents the Viber user. See [Documentation](https://docs.amio.io/reference#mobile-contacts).", "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] }, { "name": "Viber Bot", "item": [ { "name": "List Contacts", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber_bot.channel.id}}/contacts", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber_bot.channel.id}}", "contacts" ] }, "description": "List contacts of given Viber channel. See [documentation](https://docs.amio.io/reference#viber-list-contacts)." }, "response": [ { "name": "List Contacts", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber_bot.channel.id}}/contacts", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber_bot.channel.id}}", "contacts" ] } }, "_postman_previewlanguage": "Text", "header": [ { "key": "Cache-Control", "value": "no-cache", "description": "", "type": "text" }, { "key": "Connection", "value": "keep-alive", "description": "", "type": "text" }, { "key": "Content-Encoding", "value": "gzip", "description": "", "type": "text" }, { "key": "Content-Length", "value": "874", "description": "", "type": "text" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "description": "", "type": "text" }, { "key": "X-RateLimit-Limit", "value": "4000", "description": "", "type": "text" }, { "key": "X-RateLimit-Remaining", "value": "3999", "description": "", "type": "text" }, { "key": "X-RateLimit-Reset", "value": "1511444547", "description": "", "type": "text" }, { "key": "X-Total-Count", "value": "1", "description": "", "type": "text" } ], "cookie": [], "body": "[\n {\n \"id\": \"6456078781510718339\",\n\t \"name\": \"Dietrich Bonhoeffer\",\n\t \"locale\": \"de_DE\",\n\t \"photo_url\": \"https://scontent.xx.fbcdn.net/v/t1.0-1/541992_511761562179706_48931455_n.jpg?oh=1b30d9f950c70b19cf99ef8ea81a169e&oe=5A5108B3\"\n }\n]" } ] }, { "name": "Get Contact", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts/{{viber.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts", "{{viber.contact.id}}" ] }, "description": "Get contact of given Viber channel. See [documentation](https://docs.amio.io/reference#viberget-contact)." }, "response": [ { "name": "Get Contact", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts/{{viber.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts", "{{viber.contact.id}}" ] } }, "_postman_previewlanguage": "Text", "header": [], "cookie": [], "body": "{\n \"id\": \"6456078781510718339\",\n \"name\": \"Dietrich Bonhoeffer\",\n \"locale\": \"de_DE\",\n \"photo_url\": \"https://scontent.xx.fbcdn.net/v/t1.0-1/541992_511761562179706_48931455_n.jpg?oh=1b30d9f950c70b19cf99ef8ea81a169e&oe=5A5108B3\"\n}" } ] }, { "name": "Delete Contact", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber_bot.channel.id}}/contacts/{{viber_bot.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber_bot.channel.id}}", "contacts", "{{viber_bot.contact.id}}" ] }, "description": "Delete contact of given Viber channel. See [documentation](https://docs.amio.io/reference#viber-delete-contact)." }, "response": [ { "name": "Delete Contact", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts/{{viber.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts", "{{viber.contact.id}}" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Date", "value": "Thu, 23 Nov 2017 12:53:58 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.13.6", "name": "Server", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "4000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "3971", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1511444547", "name": "X-RateLimit-Reset", "description": "" } ], "cookie": [], "body": "" } ] } ], "description": "Contact represents the Viber user. See [Documentation](https://docs.amio.io/reference#viber-contacts)." }, { "name": "Viber Business Messages", "item": [ { "name": "List Contacts", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts" ] }, "description": "List contacts of given Viber channel. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-contacts-list)." }, "response": [ { "name": "List Contacts", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "" }, { "key": "Date", "value": "Tue, 14 Aug 2018 11:44:19 GMT", "name": "Date", "description": "" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "" }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "" }, { "key": "X-RateLimit-Remaining", "value": "984", "name": "X-RateLimit-Remaining", "description": "" }, { "key": "X-RateLimit-Reset", "value": "1534249744", "name": "X-RateLimit-Reset", "description": "" }, { "key": "X-Total-Count", "value": "1", "name": "X-Total-Count", "description": "" } ], "cookie": [], "body": "[\n {\n \"id\": \"15342382674218164\",\n \"name\": \"15558576309\",\n \"phone_number\": \"15558576309\"\n }\n]" } ] }, { "name": "Get Contact", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts/{{viber.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts", "{{viber.contact.id}}" ] }, "description": "Get contact of given Viber channel. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-contacts-get)." }, "response": [ { "name": "Get Contact", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts/{{viber.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts", "{{viber.contact.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache", "name": "Cache-Control", "description": "Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds" }, { "key": "Connection", "value": "keep-alive", "name": "Connection", "description": "Options that are desired for the connection" }, { "key": "Content-Encoding", "value": "gzip", "name": "Content-Encoding", "description": "The type of encoding used on the data." }, { "key": "Content-Type", "value": "application/json;charset=UTF-8", "name": "Content-Type", "description": "The mime type of this content" }, { "key": "Date", "value": "Tue, 14 Aug 2018 11:45:02 GMT", "name": "Date", "description": "The date and time that the message was sent" }, { "key": "Expires", "value": "0", "name": "Expires", "description": "Gives the date/time after which the response is considered stale" }, { "key": "Server", "value": "nginx/1.12.1", "name": "Server", "description": "A name for the server" }, { "key": "Transfer-Encoding", "value": "chunked", "name": "Transfer-Encoding", "description": "The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity." }, { "key": "X-Application-Context", "value": "application:production:8080", "name": "X-Application-Context", "description": "Custom header" }, { "key": "X-RateLimit-Limit", "value": "1000", "name": "X-RateLimit-Limit", "description": "Custom header" }, { "key": "X-RateLimit-Remaining", "value": "983", "name": "X-RateLimit-Remaining", "description": "Custom header" }, { "key": "X-RateLimit-Reset", "value": "1534249744", "name": "X-RateLimit-Reset", "description": "Custom header" } ], "cookie": [], "body": "{\n \"id\": \"151870432653590\",\n \"name\": \"15558576309\",\n \"phone_number\": \"15558576309\"\n}" } ] }, { "name": "Delete Contact", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{viber.channel.id}}/contacts/{{viber.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{viber.channel.id}}", "contacts", "{{viber.contact.id}}" ] }, "description": "Delete contact of given Viber channel. See [documentation](https://docs.amio.io/v1.0/reference#viber-business-contacts-delete)." }, "response": [] } ] }, { "name": "Telegram", "item": [ { "name": "List Contacts", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts" ] }, "description": "List contacts of given Facebook Messenger channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-contacts-list-contacts)." }, "response": [ { "name": "List Contacts", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 16:24:30 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703973" }, { "key": "X-RateLimit-Remaining", "value": "983" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Total-Count", "value": "1" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "[\n {\n \"id\": \"6503986013434162130\",\n \"name\": \"6503986013434162130\"\n }\n]" } ] }, { "name": "Get Contact", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{telegram.channel.id}}/contacts/{{telegram.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{telegram.channel.id}}", "contacts", "{{telegram.contact.id}}" ] }, "description": "Get contact of given Facebook Messenger channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-contacts-get-contact)." }, "response": [ { "name": "Get Contact", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts/{{amio_chat.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts", "{{amio_chat.contact.id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 16:25:59 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553703974" }, { "key": "X-RateLimit-Remaining", "value": "982" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"id\": \"6503986013434162130\",\n \"name\": \"6503986013434162130\"\n}" } ] }, { "name": "Delete Contact", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{telegram.channel.id}}/contacts/{{telegram.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{telegram.channel.id}}", "contacts", "{{telegram.contact.id}}" ] }, "description": "Delete contact of given Facebook Messenger channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-contacts-delete-contact)." }, "response": [ { "name": "Delete Contact", "originalRequest": { "method": "DELETE", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/contacts/{{amio_chat.contact.id}}", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "contacts", "{{amio_chat.contact.id}}" ] } }, "status": "No Content", "code": 204, "_postman_previewlanguage": "plain", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 16:28:14 GMT" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553707685" }, { "key": "X-RateLimit-Remaining", "value": "999" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" } ], "cookie": [], "body": "" } ] } ] } ], "description": "Contact represents the end user on given channel. See [Documentation](https://docs.amio.io/reference#contacts)." }, { "name": "Settings", "item": [ { "name": "Amio Chat", "item": [ { "name": "Get Settings", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/settings", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "settings" ] }, "description": "Get contact of given Facebook Messenger channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-settings-get-settings)." }, "response": [ { "name": "Get Settings", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/settings", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "settings" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 16:42:26 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553707686" }, { "key": "X-RateLimit-Remaining", "value": "998" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"domains_whitelist\": null\n}" } ] }, { "name": "Update Settings", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"domains_whitelist\": [\n \"https://app.amio.io\"\n ]\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/settings", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "settings" ] }, "description": "Update Get Started Button. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messeger-settings-get-started-button-create)." }, "response": [ { "name": "Update Settings", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"domains_whitelist\": [\n \"https://app.amio.io\"\n ]\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{amio_chat.channel.id}}/settings", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{amio_chat.channel.id}}", "settings" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 27 Mar 2019 17:00:55 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553707685" }, { "key": "X-RateLimit-Remaining", "value": "997" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"domains_whitelist\": [\n \"https://app.amio.io\"\n ]\n}" } ] } ] }, { "name": "Facebook Messenger", "item": [ { "name": "Get Settings", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}/settings", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}", "settings" ] }, "description": "Get contact of given Facebook Messenger channel. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-settings-get-settings)." }, "response": [ { "name": "Get Settings", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}/settings", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}", "settings" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 13 Feb 2019 12:33:25 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1550064804" }, { "key": "X-RateLimit-Remaining", "value": "999" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"get_started_button\": {\n \"payload\": \"{{GET_STARTED_PAYLOAD}}\"\n },\n \"menu\": [\n {\n \"locale\": \"default\",\n \"items\": [\n {\n \"type\": \"url\",\n \"title\": \"URL Item\",\n \"payload\": \"http://www.google.com/\"\n },\n {\n \"type\": \"postback\",\n \"title\": \"POSTBACK Item\",\n \"payload\": \"POSTBACK DATA\"\n },\n {\n \"type\": \"menu\",\n \"title\": \"NESTED Item\",\n \"payload\": {\n \"items\": [\n {\n \"type\": \"url\",\n \"title\": \"NESTED URL Item\",\n \"payload\": \"http://www.google.com/\"\n },\n {\n \"type\": \"postback\",\n \"title\": \"NESTED POSTBACK Item\",\n \"payload\": \"POSTBACK DATA\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"user_inputs\": [\n {\n \"locale\": \"default\",\n \"enabled\": true\n }\n ],\n \"domains_whitelist\": [\n \"https://app.amio.io/\"\n ]\n}" } ] }, { "name": "Update Settings", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"get_started_button\": {\n \"payload\": \"{{GET_STARTED_PAYLOAD}}\"\n },\n \"menu\": [\n {\n \"locale\": \"default\",\n \"items\": [\n {\n \"type\": \"url\",\n \"title\": \"URL Item\",\n \"payload\": \"http://www.google.com\"\n },\n {\n \"type\": \"postback\",\n \"title\": \"POSTBACK Item\",\n \"payload\": \"POSTBACK DATA\"\n },\n {\n \"type\": \"menu\",\n \"title\": \"NESTED Item\",\n \"payload\": {\n \"items\": [\n {\n \"type\": \"url\",\n \"title\": \"NESTED URL Item\",\n \"payload\": \"http://www.google.com\"\n },\n {\n \"type\": \"postback\",\n \"title\": \"NESTED POSTBACK Item\",\n \"payload\": \"POSTBACK DATA\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"user_inputs\": [\n {\n \"locale\": \"default\",\n \"enabled\": true\n }\n ],\n \"domains_whitelist\": [\n \"https://app.amio.io\"\n ]\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}/settings", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}", "settings" ] }, "description": "Update Get Started Button. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messeger-settings-get-started-button-create)." }, "response": [ { "name": "Update Settings", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"get_started_button\": {\n \"payload\": \"{{GET_STARTED_PAYLOAD}}\"\n },\n \"menu\": [\n {\n \"locale\": \"default\",\n \"items\": [\n {\n \"type\": \"url\",\n \"title\": \"URL Item\",\n \"payload\": \"http://www.google.com\"\n },\n {\n \"type\": \"postback\",\n \"title\": \"POSTBACK Item\",\n \"payload\": \"POSTBACK DATA\"\n },\n {\n \"type\": \"menu\",\n \"title\": \"NESTED Item\",\n \"payload\": {\n \"items\": [\n {\n \"type\": \"url\",\n \"title\": \"NESTED URL Item\",\n \"payload\": \"http://www.google.com\"\n },\n {\n \"type\": \"postback\",\n \"title\": \"NESTED POSTBACK Item\",\n \"payload\": \"POSTBACK DATA\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"user_inputs\": [\n {\n \"locale\": \"default\",\n \"enabled\": true\n }\n ],\n \"domains_whitelist\": [\n \"https://app.amio.io\"\n ]\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/channels/{{fb.channel.id}}/settings", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "channels", "{{fb.channel.id}}", "settings" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 13 Feb 2019 09:17:28 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1550050918" }, { "key": "X-RateLimit-Remaining", "value": "986" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"get_started_button\": {\n \"payload\": \"{{GET_STARTED_PAYLOAD}}\"\n },\n \"menu\": [\n {\n \"locale\": \"default\",\n \"items\": [\n {\n \"type\": \"url\",\n \"title\": \"URL Item\",\n \"payload\": \"http://www.google.com\"\n },\n {\n \"type\": \"postback\",\n \"title\": \"POSTBACK Item\",\n \"payload\": \"POSTBACK DATA\"\n },\n {\n \"type\": \"menu\",\n \"title\": \"NESTED Item\",\n \"payload\": {\n \"items\": [\n {\n \"type\": \"url\",\n \"title\": \"NESTED URL Item\",\n \"payload\": \"http://www.google.com\"\n },\n {\n \"type\": \"postback\",\n \"title\": \"NESTED POSTBACK Item\",\n \"payload\": \"POSTBACK DATA\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"user_inputs\": [\n {\n \"locale\": \"default\",\n \"enabled\": true\n }\n ],\n \"domains_whitelist\": [\n \"https://app.amio.io\"\n ]\n}" } ] } ], "description": "Settings resource is used for setting up certain properties of a Facebook Messenger channel like get started button, menu, etc. See [Documentation](https://docs.amio.io/reference#facebook-messenger-settings).", "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] } ], "description": "Settings resource is used for setting up certain properties of a channel like get started button, menu, etc. See [Documentation](https://docs.amio.io/reference#settings).", "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] }, { "name": "Templates", "item": [ { "name": "WhatsApp", "item": [ { "name": "Text", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "value": "{{access_token}}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "value": "", "type": "string" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{whatsapp.channel.id}}\"\n },\n \"contact\": {\n \"phone_number\": \"{{whatsapp.contact.phone_number}}\"\n },\n \"message_template\": {\n \"id\": \"4726078759445238153\",\n \"substitution\": {\n \"localizations\": {\n \"default\": {\n \"name\": \"Albert\"\n }\n }\n }\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] }, "description": "Send text message. See [documentation](https://docs.amio.io/v1.0/reference#facebook-messenger-messages-text)." }, "response": [ { "name": "Text", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"channel\": {\n \"id\": \"{{amio_chat.channel.id}}\"\n },\n \"contact\": {\n \"id\": \"{{amio_chat.contact.id}}\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" }, "url": { "raw": "{{server_url}}{{api_version}}/messages", "host": [ "{{server_url}}{{api_version}}" ], "path": [ "messages" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Thu, 28 Mar 2019 10:23:07 GMT" }, { "key": "Content-Type", "value": "application/json;charset=UTF-8" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Server", "value": "nginx/1.12.1" }, { "key": "X-Application-Context", "value": "application:production:8080" }, { "key": "X-RateLimit-Limit", "value": "1000" }, { "key": "X-RateLimit-Reset", "value": "1553769649" }, { "key": "X-RateLimit-Remaining", "value": "980" }, { "key": "Cache-Control", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "Location", "value": "https://api.amio.io/v1/messages/6516977801299251765" } ], "cookie": [], "body": "{\n \"id\": \"6516977801299251765\",\n \"channel\": {\n \"id\": \"6516692048501556798\",\n \"type\": \"amio_chat\"\n },\n \"contact\": {\n \"id\": \"6516975200579113522\"\n },\n \"content\": {\n \"type\": \"text\",\n \"payload\": \"Hello world!\"\n }\n}" } ] } ] } ] } ] }