{"info":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","description":"<html><head></head><body><h2 id=\"introduction\">Introduction</h2>\n<p>SimplAI's APIs provide programmatic access to AI applications created on the SimplAI platform. These APIs are based on REST architecture and use basic HTTP request methods, accepting and returning data in JSON format.</p>\n<p>Follow the steps outlined in the following sections to integrate with our APIs.</p>\n<h2 id=\"getting-started\">Getting Started</h2>\n<ol>\n<li><p>Open your SimplAI account and navigate to the left-hand panel.</p>\n</li>\n<li><p>Click on <strong>Settings</strong> and then <strong>API Keys</strong>.</p>\n</li>\n<li><p>Click on <strong>Generate API Key</strong>. Once generated, you will see your new API Key.</p>\n</li>\n<li><p>Include this API key in the headers under the <code>PIM-SID</code> key when making requests to the APIs documented here.</p>\n</li>\n</ol>\n<h2 id=\"chat-and-tool-apis\">Chat and Tool APIs</h2>\n<p>To call the API, you will need your account's tenant ID, client ID, and application's object ID.</p>\n<ol>\n<li><p>Open your SimplAI account and navigate to the left-hand panel.</p>\n</li>\n<li><p>Go to <strong>Integrations</strong> and select your application.</p>\n</li>\n<li><p>Navigate to <strong>APIs and Webhooks</strong> and then <strong>APIs</strong>.</p>\n</li>\n<li><p>You will find the tenant ID, client ID, and object ID (e.g., tool ID, agent ID, workflow ID) here.</p>\n</li>\n</ol>\n<h2 id=\"webhooks\">Webhooks</h2>\n<p>Set up a webhook with SimplAI to receive updates on specific events.</p>\n<ol>\n<li><p>Open your SimplAI account and navigate to the left-hand panel.</p>\n</li>\n<li><p>Go to <strong>Integrations</strong> and select your application.</p>\n</li>\n<li><p>Navigate to <strong>APIs and Webhooks</strong> and then <strong>Webhooks</strong>.</p>\n</li>\n<li><p>Configure your webhook by selecting an event and entering the Webhook URL.</p>\n</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"35165122","collectionId":"c7951116-439a-4044-a661-ee1e16910c1a","publishedId":"2sA3QqfCLB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"602EDF"},"publishDate":"2025-05-15T12:47:24.000Z"},"item":[{"name":"Agent APIs","item":[{"name":"Chat Initiation","id":"ab44dd09-c96a-43b8-962e-c7bcb788aae5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-DEVICE-ID","value":"simplai"},{"key":"PIM-SID","value":"<API Key>"},{"key":"X-TENANT-ID","value":"<tenantId>"},{"key":"X-USER-ID","value":"<userId>"}],"body":{"mode":"raw","raw":"{   \"agent_id\":\"<your-agent-id-here>\",\n    \"language_code\": \"EN\",\n    \"source\": \"APP\",\n    \"action\": \"START_SCREEN\",\n    \"query\": {\n        \"message\": \"Write a short essay on birds.\",\n        \"message_type\": \"string\",\n        \"message_category\": \"string\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://edge-service.simplai.ai/interact/api/ve1/intract/agent/conversation","description":"<p>This endpoint makes an HTTP POST request to interact with the conversation API. The request should include a payload with the following parameters in the raw request body:</p>\n<ul>\n<li><p>language_code (string): The language code for the conversation.</p>\n</li>\n<li><p>source (string): The source of the conversation.</p>\n</li>\n<li><p>agent_id (string): The ID of the agent.</p>\n</li>\n<li><p>action (string): The action to be performed.</p>\n</li>\n<li><p>query (object): An object containing the following parameters:</p>\n<ul>\n<li><p>message (string): The message for the conversation.</p>\n</li>\n<li><p>message_type (string): The type of the message.</p>\n</li>\n<li><p>message_category (string): The category of the message.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>The response to the request will have a status code of 200 and a content type of application/json. The response body will contain the following fields:</p>\n<ul>\n<li><p>result (object): An object containing the following parameters:</p>\n<ul>\n<li><p>conversation_id (string): The ID of the conversation.</p>\n</li>\n<li><p>message_id (string): The ID of the message.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["interact","api","ve1","intract","agent","conversation"],"host":["edge-service","simplai","ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"ab44dd09-c96a-43b8-962e-c7bcb788aae5"},{"name":"Continue Previous Chat","id":"b6933511-f4b6-4d85-8ca6-7e8ba4909a7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-DEVICE-ID","value":"simplai"},{"key":"PIM-SID","value":"<API Key>"},{"key":"X-TENANT-ID","value":"<tenantId>"},{"key":"X-USER-ID","value":"<userId>"}],"body":{"mode":"raw","raw":"{   \"agent_id\":\"<your-agent-id-here>\",\n    \"language_code\": \"EN\",\n    \"source\": \"APP\",\n    \"action\": \"START_SCREEN\",\n    \"conversation_id\": \"<your-conversation-id-here>\",\n    \"query\": {\n        \"message\": \"Explain how the previous essay can be improved\",\n        \"message_type\": \"string\",\n        \"message_category\": \"string\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://edge-service.simplai.ai/interact/api/ve1/intract/agent/conversation","description":"<p>This endpoint makes an HTTP POST request to interact with the conversation API. The request should include a payload with the following parameters in the raw request body:</p>\n<ul>\n<li><p>language_code (string): The language code for the conversation.</p>\n</li>\n<li><p>source (string): The source of the conversation.</p>\n</li>\n<li><p>agent_id (string): The ID of the agent.</p>\n</li>\n<li><p>action (string): The action to be performed.</p>\n</li>\n<li><p>conversation_id (string): The ID of the conversation.</p>\n</li>\n<li><p>query (object): An object containing the following parameters:</p>\n<ul>\n<li><p>message (string): The message for the conversation.</p>\n</li>\n<li><p>message_type (string): The type of the message.</p>\n</li>\n<li><p>message_category (string): The category of the message.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>The response to the request will have a status code of 200 and a content type of application/json. The response body will contain the following fields:</p>\n<ul>\n<li><p>result (object): An object containing the following parameters:</p>\n<ul>\n<li><p>conversation_id (string): The ID of the conversation.</p>\n</li>\n<li><p>message_id (string): The ID of the message.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["interact","api","ve1","intract","agent","conversation"],"host":["edge-service","simplai","ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"b6933511-f4b6-4d85-8ca6-7e8ba4909a7f"},{"name":"Get Result for Message ID","id":"eaefd331-327c-4e7d-b79e-537c9b80af84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-ID","value":"<userId>"},{"key":"X-TENANT-ID","value":"<tenantId>"},{"key":"PIM-SID","value":"<API Key>"},{"key":"X-DEVICE-ID","value":"simplai"}],"url":"https://edge-service.simplai.ai/interact/api/v1/intract/conversation/fetchDetails?cId=<cId>&mId=<mID>","description":"<h3 id=\"fetch-conversation-details\">Fetch Conversation Details</h3>\n<p>This endpoint retrieves the details of a conversation based on the provided conversation ID (cId) and message ID (mId).</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://edge-service.simplai.ai/interact/api/v1/intract/conversation/fetchDetails?cId=<cId>&amp;mId=<mID></code></p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["interact","api","v1","intract","conversation","fetchDetails"],"host":["edge-service","simplai","ai"],"query":[{"key":"cId","value":"<cId>"},{"key":"mId","value":"<mID>"}],"variable":[]}},"response":[],"_postman_id":"eaefd331-327c-4e7d-b79e-537c9b80af84"},{"name":"Get Full Conversation","id":"48a5e5c0-608d-4065-9da0-65fe936e3aaa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-ID","value":"<userId>"},{"key":"X-TENANT-ID","value":"<tenantId>"},{"key":"PIM-SID","value":"<API Key>"},{"key":"X-DEVICE-ID","value":"simplai"}],"url":"https://edge-service.simplai.ai/interact/api/ve1/intract/conversation/<cId>","description":"<p>This endpoint makes an HTTP GET request to retrieve conversation details for a specific user. The request should include the user ID as a query parameter. The response will be in JSON format and will contain details of the conversation, including the response, query, action, language code, query result, and message status.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-plaintext\">GET https://edge-service-preprod.simplai.ai/interact/api/ve1/intract/conversation/7a518168-5c10-4816-9af1-5373e1664870?userId=1\n\n</code></pre>\n<p>Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"result\": {\n        \"response\": [\n            {\n                \"created_at\": \"\",\n                \"updated_at\": \"\",\n                \"id\": \"\",\n                \"query\": {\n                    \"message\": \"\",\n                    \"message_type\": \"\",\n                    \"message_category\": \"\"\n                },\n                \"action\": \"\",\n                \"lang_code\": \"\",\n                \"query_result\": \"\",\n                \"sent_time\": \"\",\n                \"model_version\": \"\",\n                \"model_id\": \"\",\n                \"message_status\": 0,\n                \"cid\": \"\"\n            }\n        ]\n    }\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["interact","api","ve1","intract","conversation","<cId>"],"host":["edge-service","simplai","ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"48a5e5c0-608d-4065-9da0-65fe936e3aaa"},{"name":"List All Conversations for User","id":"8554623d-defc-4b27-b697-e420383934e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-ID","value":"<userId>"},{"key":"X-TENANT-ID","value":"<tenantId>"},{"key":"PIM-SID","value":"<API Key>"},{"key":"X-DEVICE-ID","value":"simplai"}],"url":"https://edge-service.simplai.ai/interact/api/ve1/intract/conversation?size=20&sort=createdAt%2Cdesc&page=0","description":"<h1 id=\"get-conversation\">Get Conversation</h1>\n<p>This endpoint retrieves conversations based on the provided query parameters.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"query-parameters\">Query Parameters</h3>\n<ul>\n<li><code>size</code> (integer) - The number of conversations to retrieve.</li>\n<li><code>sort</code> (string) - Sort the conversations based on the specified field and order.</li>\n<li><code>userId</code> (string) - The ID of the user.</li>\n<li><code>sellerId</code> (string) - The ID of the seller.</li>\n<li><code>sellerProfileId</code> (string) - The profile ID of the seller.</li>\n<li><code>page</code> (integer) - The page number.</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://edge-service-preprod.simplai.ai/interact/api/ve1/intract/conversation?size=20&amp;sort=createdAt,desc&amp;userId=1&amp;sellerId=1&amp;sellerProfileId=1&amp;page=0\n\n</code></pre><h2 id=\"response\">Response</h2>\n<ul>\n<li><code>ok</code> (boolean) - Indicates if the request was successful.</li>\n<li><code>code</code> (string) - The status code of the response.</li>\n<li><code>result</code> (object) - The result object containing the response array.<ul>\n<li><code>response</code> (array) - An array of conversation objects.<ul>\n<li><code>created_at</code> (string) - The timestamp of when the conversation was created.</li>\n<li><code>updated_at</code> (string) - The timestamp of when the conversation was last updated.</li>\n<li><code>message</code> (string) - The message content of the conversation.</li>\n<li><code>cid</code> (string) - The ID of the conversation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><code>totalElements</code> (integer) - The total number of elements.</li>\n<li><code>totalPages</code> (integer) - The total number of pages.</li>\n<li><code>size</code> (integer) - The size of the response.</li>\n<li><code>numberOfElements</code> (integer) - The number of elements in the response.</li>\n<li><code>number</code> (integer) - The page number.</li>\n<li><code>last</code> (boolean) - Indicates if it is the last page.</li>\n<li><code>first</code> (boolean) - Indicates if it is the first page.</li>\n<li><code>sorted</code> (boolean) - Indicates if the response is sorted.</li>\n<li><code>empty</code> (boolean) - Indicates if the response is empty.</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"ok\": true,\n  \"code\": \"\",\n  \"result\": {\n    \"response\": [\n      {\n        \"created_at\": \"\",\n        \"updated_at\": \"\",\n        \"message\": \"\",\n        \"cid\": \"\"\n      }\n    ]\n  },\n  \"totalElements\": 0,\n  \"totalPages\": 0,\n  \"size\": 0,\n  \"numberOfElements\": 0,\n  \"number\": 0,\n  \"last\": true,\n  \"first\": true,\n  \"sorted\": true,\n  \"empty\": true\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["interact","api","ve1","intract","conversation"],"host":["edge-service","simplai","ai"],"query":[{"key":"size","value":"20"},{"key":"sort","value":"createdAt%2Cdesc"},{"key":"page","value":"0"}],"variable":[]}},"response":[],"_postman_id":"8554623d-defc-4b27-b697-e420383934e9"}],"id":"353a772e-63f7-42c3-94f9-b6be8cee1908","description":"<p>The Chat APIs allow you to programmatically access agents on the SimplAI platform.</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"65429efa-c985-4ab0-90e6-a34d195d944b"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"a688e50b-fdcf-4bd0-a536-7fdf0fea786e"}}],"_postman_id":"353a772e-63f7-42c3-94f9-b6be8cee1908","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}}},{"name":"AI Chains APIs","item":[{"name":"Chat Initiation","id":"0e35dfe4-690e-4803-a21c-2d0c2c614fb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-DEVICE-ID","value":"simplai"},{"key":"PIM-SID","value":"<API Key>"},{"key":"X-TENANT-ID","value":"<tenantId>"},{"key":"X-USER-ID","value":"<userId>"}],"body":{"mode":"raw","raw":"{   \"workflow_id\":\"<your-ai-chain-id-here>\",\n    \"language_code\": \"EN\",\n    \"source\": \"APP\",\n    \"action\": \"START_SCREEN\",\n    \"query\": {\n        \"message\": \"Write a short essay on birds.\",\n        \"message_type\": \"string\",\n        \"message_category\": \"string\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://edge-service.simplai.ai/interact/api/ve1/intract/ai-chain/conversation","description":"<p>This endpoint makes an HTTP POST request to interact with the conversation API. The request should include a payload with the following parameters in the raw request body:</p>\n<ul>\n<li><p>language_code (string): The language code for the conversation.</p>\n</li>\n<li><p>source (string): The source of the conversation.</p>\n</li>\n<li><p>workflow_id (string): The ID of the AI Chain.</p>\n</li>\n<li><p>action (string): The action to be performed.</p>\n</li>\n<li><p>query (object): An object containing the following parameters:</p>\n<ul>\n<li><p>message (string): The message for the conversation.</p>\n</li>\n<li><p>message_type (string): The type of the message.</p>\n</li>\n<li><p>message_category (string): The category of the message.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>The response to the request will have a status code of 200 and a content type of application/json. The response body will contain the following fields:</p>\n<ul>\n<li><p>result (object): An object containing the following parameters:</p>\n<ul>\n<li><p>conversation_id (string): The ID of the conversation.</p>\n</li>\n<li><p>message_id (string): The ID of the message.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["interact","api","ve1","intract","ai-chain","conversation"],"host":["edge-service","simplai","ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e35dfe4-690e-4803-a21c-2d0c2c614fb8"},{"name":"Continue Previous Chat","id":"ba13a43b-831e-4d7b-8377-99739aa184c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-DEVICE-ID","value":"simplai"},{"key":"PIM-SID","value":"<API Key>"},{"key":"X-TENANT-ID","value":"<tenantId>"},{"key":"X-USER-ID","value":"<userId>"}],"body":{"mode":"raw","raw":"{   \"workflow_id\":\"<your-ai-chain-id-here>\",\n    \"language_code\": \"EN\",\n    \"source\": \"APP\",\n    \"action\": \"START_SCREEN\",\n    \"conversation_id\": \"<your-conversation-id-here>\",\n    \"query\": {\n        \"message\": \"Explain how the previous essay can be improved\",\n        \"message_type\": \"string\",\n        \"message_category\": \"string\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://edge-service.simplai.ai/interact/api/ve1/intract/ai-chain/conversation","description":"<p>This endpoint makes an HTTP POST request to interact with the conversation API. The request should include a payload with the following parameters in the raw request body:</p>\n<ul>\n<li><p>language_code (string): The language code for the conversation.</p>\n</li>\n<li><p>source (string): The source of the conversation.</p>\n</li>\n<li><p>workflow_id (string): The ID of the AI Chain.</p>\n</li>\n<li><p>action (string): The action to be performed.</p>\n</li>\n<li><p>conversation_id (string): The ID of the conversation.</p>\n</li>\n<li><p>query (object): An object containing the following parameters:</p>\n<ul>\n<li><p>message (string): The message for the conversation.</p>\n</li>\n<li><p>message_type (string): The type of the message.</p>\n</li>\n<li><p>message_category (string): The category of the message.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>The response to the request will have a status code of 200 and a content type of application/json. The response body will contain the following fields:</p>\n<ul>\n<li><p>result (object): An object containing the following parameters:</p>\n<ul>\n<li><p>conversation_id (string): The ID of the conversation.</p>\n</li>\n<li><p>message_id (string): The ID of the message.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["interact","api","ve1","intract","ai-chain","conversation"],"host":["edge-service","simplai","ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba13a43b-831e-4d7b-8377-99739aa184c9"},{"name":"Get Result for Message ID","id":"1ebf7559-3d35-4fae-ada1-9360c523eb58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-ID","value":"<userId>"},{"key":"X-TENANT-ID","value":"<tenantId>"},{"key":"PIM-SID","value":"<API Key>"},{"key":"X-DEVICE-ID","value":"simplai"}],"url":"https://edge-service.simplai.ai/interact/api/v1/intract/conversation/fetchDetails?cId=<cId>&mId=<mID>","description":"<h3 id=\"fetch-conversation-details\">Fetch Conversation Details</h3>\n<p>This endpoint retrieves the details of a conversation based on the provided conversation ID (cId) and message ID (mId).</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://edge-service.simplai.ai/interact/api/v1/intract/conversation/fetchDetails?cId=<cId>&amp;mId=<mID></code></p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["interact","api","v1","intract","conversation","fetchDetails"],"host":["edge-service","simplai","ai"],"query":[{"key":"cId","value":"<cId>"},{"key":"mId","value":"<mID>"}],"variable":[]}},"response":[],"_postman_id":"1ebf7559-3d35-4fae-ada1-9360c523eb58"},{"name":"Get Full Conversation","id":"4d5cc2ca-0962-401b-9e82-5bdfa6c51b53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-ID","value":"<userId>"},{"key":"X-TENANT-ID","value":"<tenantId>"},{"key":"PIM-SID","value":"<API Key>"},{"key":"X-DEVICE-ID","value":"simplai"}],"url":"https://edge-service.simplai.ai/interact/api/ve1/intract/conversation/<cId>","description":"<p>This endpoint makes an HTTP GET request to retrieve conversation details for a specific user. The request should include the user ID as a query parameter. The response will be in JSON format and will contain details of the conversation, including the response, query, action, language code, query result, and message status.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-plaintext\">GET https://edge-service-preprod.simplai.ai/interact/api/ve1/intract/conversation/7a518168-5c10-4816-9af1-5373e1664870?userId=1\n\n</code></pre>\n<p>Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"result\": {\n        \"response\": [\n            {\n                \"created_at\": \"\",\n                \"updated_at\": \"\",\n                \"id\": \"\",\n                \"query\": {\n                    \"message\": \"\",\n                    \"message_type\": \"\",\n                    \"message_category\": \"\"\n                },\n                \"action\": \"\",\n                \"lang_code\": \"\",\n                \"query_result\": \"\",\n                \"sent_time\": \"\",\n                \"model_version\": \"\",\n                \"model_id\": \"\",\n                \"message_status\": 0,\n                \"cid\": \"\"\n            }\n        ]\n    }\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["interact","api","ve1","intract","conversation","<cId>"],"host":["edge-service","simplai","ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d5cc2ca-0962-401b-9e82-5bdfa6c51b53"},{"name":"List All Conversations for User","id":"709b3e9e-fbb1-4487-8048-4c1096e9ef5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-ID","value":"<userId>"},{"key":"X-TENANT-ID","value":"<tenantId>"},{"key":"PIM-SID","value":"<API Key>"},{"key":"X-DEVICE-ID","value":"simplai"}],"url":"https://edge-service.simplai.ai/interact/api/ve1/intract/conversation?size=20&sort=createdAt%2Cdesc&page=0","description":"<h1 id=\"get-conversation\">Get Conversation</h1>\n<p>This endpoint retrieves conversations based on the provided query parameters.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"query-parameters\">Query Parameters</h3>\n<ul>\n<li><code>size</code> (integer) - The number of conversations to retrieve.</li>\n<li><code>sort</code> (string) - Sort the conversations based on the specified field and order.</li>\n<li><code>userId</code> (string) - The ID of the user.</li>\n<li><code>sellerId</code> (string) - The ID of the seller.</li>\n<li><code>sellerProfileId</code> (string) - The profile ID of the seller.</li>\n<li><code>page</code> (integer) - The page number.</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://edge-service-preprod.simplai.ai/interact/api/ve1/intract/conversation?size=20&amp;sort=createdAt,desc&amp;userId=1&amp;sellerId=1&amp;sellerProfileId=1&amp;page=0\n\n</code></pre><h2 id=\"response\">Response</h2>\n<ul>\n<li><code>ok</code> (boolean) - Indicates if the request was successful.</li>\n<li><code>code</code> (string) - The status code of the response.</li>\n<li><code>result</code> (object) - The result object containing the response array.<ul>\n<li><code>response</code> (array) - An array of conversation objects.<ul>\n<li><code>created_at</code> (string) - The timestamp of when the conversation was created.</li>\n<li><code>updated_at</code> (string) - The timestamp of when the conversation was last updated.</li>\n<li><code>message</code> (string) - The message content of the conversation.</li>\n<li><code>cid</code> (string) - The ID of the conversation.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><code>totalElements</code> (integer) - The total number of elements.</li>\n<li><code>totalPages</code> (integer) - The total number of pages.</li>\n<li><code>size</code> (integer) - The size of the response.</li>\n<li><code>numberOfElements</code> (integer) - The number of elements in the response.</li>\n<li><code>number</code> (integer) - The page number.</li>\n<li><code>last</code> (boolean) - Indicates if it is the last page.</li>\n<li><code>first</code> (boolean) - Indicates if it is the first page.</li>\n<li><code>sorted</code> (boolean) - Indicates if the response is sorted.</li>\n<li><code>empty</code> (boolean) - Indicates if the response is empty.</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"ok\": true,\n  \"code\": \"\",\n  \"result\": {\n    \"response\": [\n      {\n        \"created_at\": \"\",\n        \"updated_at\": \"\",\n        \"message\": \"\",\n        \"cid\": \"\"\n      }\n    ]\n  },\n  \"totalElements\": 0,\n  \"totalPages\": 0,\n  \"size\": 0,\n  \"numberOfElements\": 0,\n  \"number\": 0,\n  \"last\": true,\n  \"first\": true,\n  \"sorted\": true,\n  \"empty\": true\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["interact","api","ve1","intract","conversation"],"host":["edge-service","simplai","ai"],"query":[{"key":"size","value":"20"},{"key":"sort","value":"createdAt%2Cdesc"},{"key":"page","value":"0"}],"variable":[]}},"response":[],"_postman_id":"709b3e9e-fbb1-4487-8048-4c1096e9ef5e"}],"id":"df2b6322-171d-415f-b7fe-07918e059bb7","description":"<p>The Chat APIs allow you to programmatically access AI Chains on the SimplAI platform.</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"65429efa-c985-4ab0-90e6-a34d195d944b"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"a688e50b-fdcf-4bd0-a536-7fdf0fea786e"}}],"_postman_id":"df2b6322-171d-415f-b7fe-07918e059bb7","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}}},{"name":"Tool APIs","item":[{"name":"Create Tool Run","id":"ccb4a527-755d-4814-9d0d-d20e50636604","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-DEVICE-ID","value":"simplai"},{"key":"PIM-SID","value":"<API Key>"},{"key":"X-TENANT-ID","value":"<tenantId>"},{"key":"X-USER-ID","value":"<userId>"}],"body":{"mode":"raw","raw":"{   \"tool_id\":\"<your-tool-id-here>\",\n    \"language_code\": \"EN\",\n    \"source\": \"APP\",\n    \"action\": \"START_SCREEN\",\n    \"cust_attr\": {\n  },\n    \"inputs\": {\n    \"text\": \"HAPPY\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://edge-service.simplai.ai/interact/api/ve1/intract/tool/conversation","description":"<p>This endpoint makes an HTTP POST request to interact with the conversation API. The request should include a payload with the following parameters in the raw request body:</p>\n<ul>\n<li><p>language_code (string): The language code for the conversation.</p>\n</li>\n<li><p>source (string): The source of the conversation.</p>\n</li>\n<li><p>tool_id (string): The ID of the tool.</p>\n</li>\n<li><p>action (string): The action to be performed.</p>\n</li>\n<li><p>inputs (object): An object containing the input key value pairs.</p>\n</li>\n</ul>\n<p>The response to the request will have a status code of 200 and a content type of application/json. The response body will contain the following fields:</p>\n<ul>\n<li><p>result (object): An object containing the following parameters:</p>\n<ul>\n<li><p>conversation_id (string): The ID of the conversation.</p>\n</li>\n<li><p>message_id (string): The ID of the message.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["interact","api","ve1","intract","tool","conversation"],"host":["edge-service","simplai","ai"],"query":[],"variable":[]}},"response":[],"_postman_id":"ccb4a527-755d-4814-9d0d-d20e50636604"},{"name":"Get Tool Run Result","id":"effde271-b5f3-4d4c-bed2-bd2b662980ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-ID","value":"<userId>"},{"key":"X-TENANT-ID","value":"<tenantId>"},{"key":"PIM-SID","value":"<API Key>"},{"key":"X-DEVICE-ID","value":"simplai"}],"url":"https://edge-service.simplai.ai/interact/api/v1/intract/conversation/fetchDetails?cId=<cId>&mId=<mID>","description":"<h1 id=\"fetch-tool-result\">Fetch Tool Result</h1>\n<p>This endpoint retrieves the result of a tool run using the provided conversation ID and message ID.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>https://edge-service.simplai.ai/interact/api/v1/intract/conversation/fetchDetails?cId=&amp;mId=</code></p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["interact","api","v1","intract","conversation","fetchDetails"],"host":["edge-service","simplai","ai"],"query":[{"key":"cId","value":"<cId>"},{"key":"mId","value":"<mID>"}],"variable":[]}},"response":[],"_postman_id":"effde271-b5f3-4d4c-bed2-bd2b662980ea"}],"id":"d1cd4a8b-54c3-4750-abff-213e0059dcbb","description":"<p>The Tool APIs allow you to access tools on the SimplAI platform programmatically.</p>\n","_postman_id":"d1cd4a8b-54c3-4750-abff-213e0059dcbb","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]},"isInherited":true,"source":{"_postman_id":"c7951116-439a-4044-a661-ee1e16910c1a","id":"c7951116-439a-4044-a661-ee1e16910c1a","name":"SimplAI API Documentation","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"PIM-SID"},{"key":"value","value":"<API Key>"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"63d5be29-dc39-4fee-a573-49a992c29542"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"313e1082-cc7a-40ab-b04c-c175d5865fea"}}],"variable":[{"key":"PIM-SID","value":"<API Key>","type":"string"},{"key":"Tenant-ID","value":"<tenantId>"},{"key":"User-ID","value":"<userId>"},{"key":"cID","value":"<cId>"},{"key":"mID","value":"<mID>"}]}