{"info":{"_postman_id":"e092d63c-c138-43c6-ac4b-27a52f76cba5","name":"Oho Developer API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"21838525","collectionId":"e092d63c-c138-43c6-ac4b-27a52f76cba5","publishedId":"2sB2qXkNe5","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-05-19T07:38:44.000Z"},"item":[{"name":"Contact API","item":[{"name":"Get Contact","id":"7e9fe04a-cde2-455f-8d97-a3efbd7c049d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-oho-api-key"},{"key":"value","value":"{{OHO_DEV_API_KEY}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{OHO_DEV_HOST}}/contact/:platform/:platform_id/user/:user_id","urlObject":{"path":["contact",":platform",":platform_id","user",":user_id"],"host":["{{OHO_DEV_HOST}}"],"query":[],"variable":[{"type":"string","value":"facebook","key":"platform"},{"id":1,"type":"string","value":"201193903071023","key":"platform_id"},{"id":2,"type":"string","value":"25171241452474922","key":"user_id"}]}},"response":[],"_postman_id":"7e9fe04a-cde2-455f-8d97-a3efbd7c049d"},{"name":"Create Contact","id":"84ce5a43-c2b3-4130-913b-f3bcbdb8969b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-oho-api-key"},{"key":"value","value":"{{OHO_DEV_API_KEY}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"social_profile\": {\n        \"platform\": \"line\",\n        \"id\": \"U0a0b0c525e1ade1f909a58233f9e9aaa\",\n        \"platform_id\": \"Uf43c82b98f893660ff936c921ca4034b\",\n        \"platform_name\": \"ปักเป้า\",\n        \"line_basic_id\": \"@129oruit\"\n    },\n    \"profile_picture_url\": \"https://scontent.fbkk29-4.fna.fbcdn.net/v/t1.6435-9/67821959_1206784719525604_7081237341125214208_n.png?_nc_cat=110&ccb=1-7&_nc_sid=09cbfe&_nc_eui2=AeG0vSG89vfFQvjjf-yuN8ZKQNd5VKO885lA13lUo7zzmZinxwPmN4fC7daA_7KRNs7GKnzIt9kshxmAl2CzVBvb&_nc_ohc=wYfZLkdThgEAX-S02SB&_nc_ht=scontent.fbkk29-4.fna&oh=00_AfDV1YqSGo7fqp42V86OO47lFVN_Aq2kwtFARGGxzhDD0g&oe=644A4E7D\",\n    \"platform_display_name\": \"˚♡̴ 𝒇𝒂𝒏𝒈\",\n    \"display_name\": \"˚♡̴ 𝒇𝒂𝒏𝒈\",\n    \"first_name\": \"˚♡̴ 𝒇𝒂𝒏𝒈\",\n    \"last_name\": \"\",\n    \"phone\": \"0987654321\",\n    \"email\": \"hello@oho.chat\",\n    \"country\": \"ไทย\",\n    \"city\": \"กรุงเทพมหานคร\",\n    \"gender\": \"female\",\n    \"age\": 25,\n    \"birth_date\": \"1998-11-29\",\n    \"attributes\": [\n        {\n            \"display_name\": \"customer_group\",\n            \"value\": {\n                \"text\": \"Crown\"\n            }\n        },\n        {\n            \"display_name\": \"customer_id\",\n            \"value\": {\n                \"text\": \"123456789\"\n            }\n        },\n        {\n            \"display_name\": \"profile_link\",\n            \"value\": {\n                \"text\": \"https://www.facebook.com/GetOhoChat\"\n            }\n        }\n    ],\n    \"tags\": [\n        \"ลูกค้าประจำ\",\n        \"VIP\",\n        \"packgate รายเดือน\"\n    ],\n    \"labels\": [\n        \"ติดตามสินค้า\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{OHO_DEV_HOST}}/contact","urlObject":{"path":["contact"],"host":["{{OHO_DEV_HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"84ce5a43-c2b3-4130-913b-f3bcbdb8969b"},{"name":"Update Contact attributes","id":"8d698608-07e8-4ad5-97df-55b4ce89abb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-oho-api-key"},{"key":"value","value":"{{OHO_DEV_API_KEY}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n   \"attributes\": [\n        {\n            \"display_name\": \"customer_group\",\n            \"value\": {\n                \"text\": \"Gold\"\n            }\n        },\n        {\n            \"display_name\": \"customer_id\",\n\n            \"value\": {\n                \"text\": \"987654321\"\n            }\n        },\n        {\n            \"display_name\": \"profile_link\",\n            \"value\": {\n                \"text\": \"https://bmlpu.notion.site/Developer-API-Document-2fbf2905a2734cb8a5e87dcbd4ee34ad\"\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/contact/:platform/:platform_id/user/:user_id","urlObject":{"path":["contact",":platform",":platform_id","user",":user_id"],"host":["{{HOST}}"],"query":[],"variable":[{"type":"any","value":"line","key":"platform"},{"type":"any","value":"Uebef201e98cc729b62147a8ba3099d7c","key":"platform_id"},{"type":"any","value":"U9053fcba2a8ab2bd58021b8da6384e5c","key":"user_id"}]}},"response":[],"_postman_id":"8d698608-07e8-4ad5-97df-55b4ce89abb3"},{"name":"Update Contact tags","id":"e3009351-d6c5-43a3-ba99-d7d803f2020a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-oho-api-key"},{"key":"value","value":"{{OHO_DEV_API_KEY}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n   \"tags\": [\"ลูกค้าประจำ\", \"VIP\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/contact/:platform/:platform_id/user/:user_id","urlObject":{"path":["contact",":platform",":platform_id","user",":user_id"],"host":["{{HOST}}"],"query":[],"variable":[{"type":"any","value":"line","key":"platform"},{"type":"any","value":"U153efce8521420fe217491e84b59f72c","key":"platform_id"},{"type":"any","value":"U9053fcba2a8ab2bd58021b8da6384e5c","key":"user_id"}]}},"response":[],"_postman_id":"e3009351-d6c5-43a3-ba99-d7d803f2020a"},{"name":"Update Contact labels","id":"e255c2f2-e37d-420d-b01d-7277087fd52e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-oho-api-key"},{"key":"value","value":"{{OHO_DEV_API_KEY}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n   \"labels\": [\"ติดตามสินค้า\",\"Oho Team\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/contact/:platform/:platform_id/user/:user_id","urlObject":{"path":["contact",":platform",":platform_id","user",":user_id"],"host":["{{HOST}}"],"query":[],"variable":[{"id":"119e400c-c947-4ef4-9ff0-5fce7616d103","type":"any","value":"line","key":"platform"},{"id":"d48abbcc-03e4-4124-8cd5-b335e576e97a","type":"any","value":"U153efce8521420fe217491e84b59f72c","key":"platform_id"},{"id":"0cdff328-11cb-4e9b-a97b-a7a7f7e1eed9","type":"any","value":"U9053fcba2a8ab2bd58021b8da6384e5c","key":"user_id"}]}},"response":[],"_postman_id":"e255c2f2-e37d-420d-b01d-7277087fd52e"},{"name":"Update Contact","id":"b229b0ee-3bc8-4273-a35b-6283b55fe48f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-oho-api-key"},{"key":"value","value":"{{OHO_DEV_API_KEY}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    // \"tin\": \"koko\",\n    // \"org_name\": \"kokdokas\",\n    // \"address\": {\n    //     \"street\": \"asdsad\"\n    // }\n    \"display_name\": \"testtest\",\n    \"first_name\": \"123\",\n    \"last_name\": \"Oho\",\n    \"phone\": \"01234567892\",\n    \"email\": \"hi@oho.chat\",\n    \"country\": \"ไทย\",\n    \"city\": \"เชียงใหม่\",\n    \"gender\": \"female\",\n    \"age\": 24,\n    \"birth_date\": \"1999-11-29\",\n    \"attributes\": [\n        {\n            \"display_name\": \"customer_group\",\n            \"value\": {\n                \"text\": \"Gold\"\n            }\n        },\n        {\n            \"display_name\": \"customer_id\",\n            \"value\": {\n                \"text\": \"987654321\"\n            }\n        },\n        {\n            \"display_name\": \"profile_link\",\n            \"value\": {\n                \"text\": \"https://bmlpu.notion.site/Developer-API-Document-2fbf2905a2734cb8a5e87dcbd4ee34ad\"\n            }\n        }\n    ],\n    \"tags\": [\n        \"ลูกค้าประจำ\",\n        \"VIP\"\n    ],\n    \"labels\": [\n        \"ติดตามสินค้า\",\n        \"Oho Team\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{OHO_DEV_HOST}}/contact/:platform/:platform_id/user/:user_id","urlObject":{"path":["contact",":platform",":platform_id","user",":user_id"],"host":["{{OHO_DEV_HOST}}"],"query":[],"variable":[{"type":"string","value":"facebook","key":"platform"},{"id":1,"type":"string","value":"397046300150890","key":"platform_id"},{"id":2,"type":"string","value":"8550278755084664","key":"user_id"}]}},"response":[],"_postman_id":"b229b0ee-3bc8-4273-a35b-6283b55fe48f"}],"id":"5e30201f-b2e9-4457-89df-988f88b13b12","_postman_id":"5e30201f-b2e9-4457-89df-988f88b13b12","description":""},{"name":"Chat API","item":[{"name":"Request agent session for chat room","id":"ff7419d7-7d3f-40e1-b2f3-2d134676a64b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-oho-api-key"},{"key":"value","value":"{{OHO_DEV_API_KEY}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{OHO_DEV_HOST}}/chat/:platform/:platform_id/user/:user_id/request-agent","description":"<h2 id=\"request-description\">Request Description</h2>\n<p>Request a human agent for the chat room of a user. This effectively disables chat bot temporarily. This endpoint allows the client to request an agent for a chat on a specific platform for a given user. The request should include the platform type, platform ID, and user ID in the URL parameters.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>No request body is required for this endpoint.</li>\n</ul>\n<h3 id=\"path-parameters\">Path Parameters</h3>\n<ul>\n<li><code>platform</code> (string): The type of platform for the chat request.</li>\n<li><code>platform_id</code> (string): The ID of the platform for the chat request.</li>\n<li><code>user_id</code> (string): The ID of the user for the chat request.</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request will be in JSON format and will include the schema for the response.</p>\n","urlObject":{"path":["chat",":platform",":platform_id","user",":user_id","request-agent"],"host":["{{OHO_DEV_HOST}}"],"query":[],"variable":[{"type":"any","value":"","key":"platform"},{"type":"any","value":"","key":"platform_id"},{"type":"any","value":"","key":"user_id"}]}},"response":[],"_postman_id":"ff7419d7-7d3f-40e1-b2f3-2d134676a64b"},{"name":"Close agent session for chat room","id":"b0be141b-e3ca-492a-8ced-a23502e783b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-oho-api-key"},{"key":"value","value":"{{OHO_DEV_API_KEY}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{OHO_DEV_HOST}}/chat/:platform/:platform_id/user/:user_id/close-chat","description":"<h3 id=\"close-chat-session\">Close Chat Session</h3>\n<p>Close the current agent's chat session and enable the chat bot.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li>platform (string): The platform identifier.</li>\n<li>platform_id (string): The platform ID.</li>\n<li>user_id (string): The user ID.</li>\n</ul>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response body contains the result of the request to close the chat session.</p>\n","urlObject":{"path":["chat",":platform",":platform_id","user",":user_id","close-chat"],"host":["{{OHO_DEV_HOST}}"],"query":[],"variable":[{"id":"ab96ee29-2962-4ae0-a086-87e6636eeb4e","type":"any","value":"","key":"platform"},{"id":"2f32c5d7-0037-4314-84ac-a2595ca24ef2","type":"any","value":"","key":"platform_id"},{"id":"d105d1a0-148c-462c-9cd8-0b090a0d4e7e","type":"any","value":"","key":"user_id"}]}},"response":[],"_postman_id":"b0be141b-e3ca-492a-8ced-a23502e783b9"}],"id":"f0ff6aef-803b-4489-8aba-3284505823b2","_postman_id":"f0ff6aef-803b-4489-8aba-3284505823b2","description":""},{"name":"Message Gateway API","item":[{"name":"LINE bot push message","id":"1e0ef84a-5f3f-47aa-bda1-8deae03897e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-oho-api-key"},{"key":"value","value":"{{OHO_API_KEY}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"to\": \"U80e0a76ac6e453661ec5f884ebdd5450\",\n    \"messages\":[\n        {\n            \"type\":\"text\",\n            \"text\":\"Hello, world1\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/gateway/line/v2/bot/message/push","urlObject":{"path":["v1","gateway","line","v2","bot","message","push"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e0ef84a-5f3f-47aa-bda1-8deae03897e3"}],"id":"dfc41cc0-cc3c-4e75-ae29-598f7ae227a4","_postman_id":"dfc41cc0-cc3c-4e75-ae29-598f7ae227a4","description":""}]}