{"info":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","description":"<html><head></head><body><p>Welcome to the Simplesat API reference!</p>\n<p>The public endpoints are stable but still a work in progress. If you have any questions or see any issues, please reach out to us at <a href=\"https://mailto:support@simplesat.io\">support@simplesat.io</a>.</p>\n<h2 id=\"previous-api-versions\">Previous API versions</h2>\n<ul>\n<li><a href=\"https://documenter.getpostman.com/view/457268/SVfRt7WJ?version=latest\">V0</a></li>\n</ul>\n<h1 id=\"authentication\">Authentication</h1>\n<p>You need a Simplesat account with an API key to make requests. To find your key, log into your Simplesat account and head over to <strong>Admin</strong> &gt; <strong>Account Settings</strong>.</p>\n<p>To authenticate, use the API key in a <code>X-Simplesat-Token</code> header.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>X-Simplesat-Token</td>\n<td>Your access token</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"pagination\">Pagination</h1>\n<p>By default, most list endpoints return a maximum of 100 records per page. You can change the number of records on a per-request basis by passing a <code>page_size</code> parameter in the request URL parameters. Example: <code>page_size=50</code>.</p>\n<p>When the response exceeds the per-page maximum, you can paginate through the records by incrementing the page parameter. Example: <code>page=3</code>. List results include <code>next</code> and <code>previous</code> URLs in the response body for easier navigation:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"answers\": [...],\n    \"count\": 106,\n    \"next\": \"https://api.simplesat.io/api/v1/questions?page=2\",\n    \"previous\": null,\n}\n\n</code></pre><p>Stop paging when the <code>next</code> attribute is <code>null</code>.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"},{"content":"Pagination","slug":"pagination"}],"owner":"457268","collectionId":"0a012608-29fa-46fd-bed4-05077c9abfa9","publishedId":"UVRDGRZ2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"4ec677"},"publishDate":"2021-12-23T14:12:27.000Z"},"item":[{"name":"Answers","item":[{"name":"Get an answer","id":"02f177aa-2197-487b-b4be-593c3854e261","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"url":"https://api.simplesat.io/api/v1/answers/{{id}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","answers","{{id}}"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"ff017dbe-a376-471e-98dc-65e8f225fc2c","name":"Get an answer","originalRequest":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"url":"https://api.simplesat.io/api/v1/answers/{{id}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11060778,\n    \"choice\": \"3\",\n    \"choice_label\": \"Okay, but not great.\",\n    \"comment\": null,\n    \"follow_up_answer\": \"Great service, but response time could have been a bit faster.\",\n    \"follow_up_answer_choice\": null,\n    \"follow_up_question\": null,\n    \"created\": \"2021-12-13T10:42:39.410573Z\",\n    \"modified\": \"2021-12-13T10:42:39.410608Z\",\n    \"question\": {\n        \"id\": 44993,\n        \"text\": \"How did we do?\",\n        \"metric\": \"csat\"\n    },\n    \"survey\": {\n        \"id\": 16738,\n        \"name\": \"CSAT survey\"\n    },\n    \"response_id\": 6134350\n}"}],"_postman_id":"02f177aa-2197-487b-b4be-593c3854e261"},{"name":"Search answers","id":"c79d74a4-b215-4a60-bf93-896b00f4b3c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.simplesat.io/api/v1/answers/search","description":"<p>Retrieve answers by applying specific filters in the request body.</p>\n<p>If the request body is left empty, the API will return all answers from the last 30 days by default. Including only a <code>start_date</code> field will yield answers from the date specified up to 30 days prior.</p>\n<h2 id=\"request-fields\">Request fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>start_date</td>\n<td>datetime</td>\n<td>The date and time in ISO 8601 format to start displaying answers.</td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>datetime</td>\n<td>The date and time in ISO 8601 format to end displaying answers.</td>\n</tr>\n<tr>\n<td>operator</td>\n<td>string</td>\n<td><code>\"and\"</code> - all filters must match.  <br /><code>\"or\"</code> - at least one filter must match.</td>\n</tr>\n<tr>\n<td>filters</td>\n<td>array of objects</td>\n<td>Includes one or more <code>key</code>/<code>values</code> pairs to use as filters.</td>\n</tr>\n<tr>\n<td>key</td>\n<td>string</td>\n<td>The field name to filter (see all available fields in the table below).</td>\n</tr>\n<tr>\n<td>attribute</td>\n<td>string</td>\n<td>Use to define the field name for nested customer, ticket, or team member custom attributes. See below for how to find custom attribute field names.</td>\n</tr>\n<tr>\n<td>values</td>\n<td>array</td>\n<td>The value or values for the <code>key</code> field. Single values still must be wrapped in brackets. Separate multiple values by a comma within the brackets.  <br />  <br />Example: <code>\"values\": [\"tester@example.com\"]</code></td>\n</tr>\n<tr>\n<td>comparison</td>\n<td>string</td>\n<td>Supports: <code>is</code>, <code>is_not</code>, <code>contains</code>, <code>does_not_contain</code>, <code>is_unknown</code>, <code>has_any_value</code>.  <br />  <br />The <code>is_unknown</code> and <code>has_any_value</code> comparisons still require a value to be present in the filter, but the value is ignored. So for example, you could just use <code>\"values\": [\"-\"]</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"key-fields\">Key fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>choice_value</td>\n<td>integer</td>\n<td>Also referred to as \"rating value\".</td>\n</tr>\n<tr>\n<td>collaborator</td>\n<td>string</td>\n<td>The email address of a team member associated with a response (in Simplesat, \"collaborators\" are team members associated with responses, while the \"team_member\" field is the primary collaborator).</td>\n</tr>\n<tr>\n<td>company</td>\n<td>string</td>\n<td>Company name.</td>\n</tr>\n<tr>\n<td>comment</td>\n<td>string</td>\n<td>Use the <code>has_any_value</code> comparison to search for responses or answers containing a comment.</td>\n</tr>\n<tr>\n<td>customer</td>\n<td>string</td>\n<td>Customer full name.</td>\n</tr>\n<tr>\n<td>customer.email</td>\n<td>string</td>\n<td>Customer email.</td>\n</tr>\n<tr>\n<td>ip</td>\n<td>string</td>\n<td>Use the <code>contains</code> comparison as most feedback are associated with multiple IP addresses.</td>\n</tr>\n<tr>\n<td>metric</td>\n<td>string</td>\n<td>Available options: <code>NPS</code>, <code>CES</code>, <code>CSAT</code>, <code>5-STAR</code>.</td>\n</tr>\n<tr>\n<td>sentiment</td>\n<td>string</td>\n<td>Available options: <code>positive</code>, <code>neutral</code>, <code>negative</code></td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td><code>is</code> and <code>is_not</code> comparisons expect the source ID. Use <code>contains</code> to search by source name.</td>\n</tr>\n<tr>\n<td>survey</td>\n<td>string</td>\n<td>Expects a 43 character survey key found in rating URLs.</td>\n</tr>\n<tr>\n<td>survey_id</td>\n<td>integer</td>\n<td>Expects the survey ID which you can find through the API.</td>\n</tr>\n<tr>\n<td>tag</td>\n<td>string</td>\n<td><code>is</code> and <code>is_not</code> comparisons expect the tag ID. Use <code>contains</code> to earch by tag name.</td>\n</tr>\n<tr>\n<td>team_member</td>\n<td>string</td>\n<td>Team member name.</td>\n</tr>\n<tr>\n<td>team_member.email</td>\n<td>string</td>\n<td>Team member email.</td>\n</tr>\n<tr>\n<td>team_member.id</td>\n<td>string</td>\n<td>Team member external ID.</td>\n</tr>\n<tr>\n<td>ticket_id</td>\n<td>string</td>\n<td>Ticket ID.</td>\n</tr>\n<tr>\n<td>customer.attributes</td>\n<td>string</td>\n<td>Add the <code>attribute</code> field to define the custom attribute key.</td>\n</tr>\n<tr>\n<td>ticket.attributes</td>\n<td>string</td>\n<td>Add the <code>attribute</code> field to define the custom attribute key.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"filtering-with-custom-attributes\">Filtering with custom attributes</h2>\n<p>Filtering by customer and ticket custom attributes is supported.</p>\n<p>To do so, enter <code>customer.attribute</code> or <code>ticket.attribute</code> as the <code>key</code>.</p>\n<p>Add the <code>attribute</code> field that includes the field name.</p>\n<p><em>Example:</em></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"filters\": [\n        {\n            \"key\": \"customer.attribute\",\n            \"attribute\": \"upload_country\",\n            \"values\": [\"United States\"],\n            \"comparison\": \"is_not\"\n        }\n    ]\n\n</code></pre>\n<p>Finding the correct attribute field name is currently a little tricky, as Simplesat appends prefixes to custom attributes depending on where they were created.</p>\n<p>To find the full attribute value:</p>\n<ul>\n<li>Create a filter in the Simplesat dashboard that includes the field that you want to use.</li>\n<li>Open the Network tab in developer tools.</li>\n<li>Find the request named <code>?limit=20&amp;offset=0</code>.</li>\n<li>Click on the Payload tab.</li>\n<li>From there, you should see the full field name. In the example below, the field displayed as <code>latest_nps</code> in the dashboard is <code>int_attribute_latest_nps</code>.</li>\n</ul>\n<img src=\"https://content.pstmn.io/fbe25d9e-d220-473a-9f49-0059e2edb23c/aW1hZ2UucG5n\" width=\"100%\" />","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","answers","search"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"c4c0de87-09b0-42bd-ba34-a9b41edd400f","name":"Search answers","originalRequest":{"method":"POST","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"start_date\": \"2023-04-11T17:00:00Z\",\n    \"end_date\": \"2023-07-10T16:59:59Z\",\n    \"operator\": \"and\",\n    \"filters\": [\n        {\n            \"key\": \"customer.email\",\n            \"values\": [\"tester@example.com\"],\n            \"comparison\": \"is\"\n        },\n        {\n            \"key\": \"team_member_email\",\n            \"values\": [\"jane@example.com\",\"john@example.com\"],\n            \"comparison\": \"is\"\n        },\n\t\t\t\t{\n            \"key\": \"question_id\",\n            \"values\": [1901],\n            \"comparison\": \"is\"\n        },\n\t\t\t\t{\n            \"key\": \"survey_id\",\n            \"values\": [11432, 23234],\n            \"comparison\": \"contains\"\n        },\n\t\t\t\t{\n            \"key\": \"sentiment\",\n            \"values\": [\"positive\"],\n            \"comparison\": \"is\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/answers/search"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.simplesat.io/api/v1/answers/search/?page=2\",\n    \"previous\": null,\n    \"count\": 218,\n    \"answers\": [\n        {\n            \"id\": 24548190,\n            \"choice\": null,\n            \"choice_label\": null,\n            \"choices\": null,\n            \"comment\": \"great!\",\n            \"follow_up_answer\": null,\n            \"follow_up_answer_choice\": null,\n            \"follow_up_answer_choices\": null,\n            \"published_as_testimonial\": false,\n            \"created\": \"2023-08-30T15:11:28Z\",\n            \"modified\": \"2023-08-30T15:11:28.434920Z\",\n            \"question\": {\n                \"id\": 150284,\n                \"text\": \"Any other feedback on web-embed surveys?\",\n                \"metric\": \"custom\"\n            },\n            \"sentiment\": null,\n            \"survey\": {\n                \"id\": 111976,\n                \"name\": \"Web embed\"\n            },\n            \"response_id\": 12922108\n        }\n    ]\n}"}],"_postman_id":"c79d74a4-b215-4a60-bf93-896b00f4b3c1"},{"name":"Update an answer","id":"3c188af4-fc60-42b7-bd29-6dd20b9b3df6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"url":"https://api.simplesat.io/api/v1/answers/{{id}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","answers","{{id}}"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"a6adf3ef-48cd-47d5-bf6b-8ac35bdab36c","name":"Update an answer","originalRequest":{"method":"PUT","header":[{"key":"X-Simplesat-Token","value":"abcd1234","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"choice\": \"4\",\n    \"comment\": null,\n    \"follow_up_answer\": \"Everything was amazing!!!\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/answers/{{id}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1106178,\n    \"choice\": \"4\",\n    \"choice_label\": \"Great, I'm satisfied.\",\n    \"sentiment\": \"Positive\",\n    \"comment\": null,\n    \"follow_up_answer\": \"Everything was amazing!!!\",\n    \"follow_up_answer_choice\": null,\n    \"published_as_testimonial\": false,\n    \"created\": \"2021-12-13T10:42:39.410573Z\",\n    \"modified\": \"2021-12-23T13:26:58.927701Z\",\n    \"question\": {\n        \"id\": 44992,\n        \"text\": \"How did we do?\",\n        \"metric\": \"csat\"\n    },\n    \"survey\": {\n        \"id\": 16738,\n        \"name\": \"CSAT survey\"\n    },\n    \"response_id\": 6254350\n}"}],"_postman_id":"3c188af4-fc60-42b7-bd29-6dd20b9b3df6"}],"id":"fc3683b6-2933-425b-b4d1-faa8377de1ac","description":"<h2 id=\"answer-model\">Answer model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Number</td>\n<td></td>\n</tr>\n<tr>\n<td>choice</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>choices</td>\n<td>Array</td>\n<td>Used for multi-select answers.</td>\n</tr>\n<tr>\n<td>comment</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>follow_up_answer</td>\n<td>String</td>\n<td>Used when the answer is in the form of a comment.</td>\n</tr>\n<tr>\n<td>follow_up_answer_choice</td>\n<td>String</td>\n<td>Used when the answer is from a multiple choice or sliding scale question type.</td>\n</tr>\n<tr>\n<td>follow_up_answer_choices</td>\n<td>Array</td>\n<td>Used for multi-select follow-up answers.</td>\n</tr>\n<tr>\n<td>modified</td>\n<td>DateTime</td>\n<td></td>\n</tr>\n<tr>\n<td>created</td>\n<td>DateTime</td>\n<td></td>\n</tr>\n<tr>\n<td>survey_id</td>\n<td>Number</td>\n<td></td>\n</tr>\n<tr>\n<td>response_id</td>\n<td>Number</td>\n<td></td>\n</tr>\n<tr>\n<td>published_as_testimonial</td>\n<td>Boolean</td>\n<td></td>\n</tr>\n<tr>\n<td>sentiment</td>\n<td>String</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"fc3683b6-2933-425b-b4d1-faa8377de1ac","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}}},{"name":"Customers","item":[{"name":"Create or update a customer","id":"25efe0ab-0501-49ea-b869-483401d1ed87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.simplesat.io/api/v1/customers","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","customers"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"84c636bb-cc16-43f0-a29f-d45030f8c17d","name":"Create or update a customer","originalRequest":{"method":"POST","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"external_id\": 456456,\n    \"name\": \"John Doe\",\n    \"email\": \"jdoe@example.com\",\n    \"company\": \"Rindge, Inc.\",\n    \"tags\": [\"sassy\",\"snooty\"],\n    \"custom_attributes\": {\n        \"Company Status\": \"Active\",\n        \"Fav color\": \"Blue\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/customers"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13592933,\n    \"external_id\": 456456,\n    \"name\": \"John Doe\",\n    \"email\": \"jdoe@example.com\",\n    \"company\": \"Rindge, Inc.\",\n    \"tags\": [\n        \"sassy\",\n        \"snooty\"\n    ],\n    \"custom_attributes\": {\n        \"Company Status\": \"Active\",\n        \"Fav color\": \"Blue\"\n    }\n}"}],"_postman_id":"25efe0ab-0501-49ea-b869-483401d1ed87"},{"name":"Update a customer","id":"0b90fa3e-bef2-4ea3-99d1-3d03239847fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.simplesat.io/api/v1/customers/{{id}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","customers","{{id}}"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"4087d2d7-ca93-442f-baaf-ffa7d1369b2a","name":"Update a customer","originalRequest":{"method":"PUT","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"external_id\": 456456,\n    \"name\": \"John Doe\",\n    \"company\": \"Rindge, Inc.\",\n    \"tags\": [\"sassy\",\"snooty\"],\n    \"custom_attributes\": {\n        \"Company Status\": \"Active\",\n        \"Fav color\": \"Blue\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/customers/{{id}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13592933,\n    \"external_id\": 456456,\n    \"name\": \"John Doe\",\n    \"email\": \"jdoe@example.com\",\n    \"company\": \"Rindge, Inc.\",\n    \"tags\": [\n        \"sassy\",\n        \"snooty\"\n    ],\n    \"custom_attributes\": {\n        \"Company Status\": \"Active\",\n        \"Fav color\": \"Blue\"\n    }\n}"}],"_postman_id":"0b90fa3e-bef2-4ea3-99d1-3d03239847fa"},{"name":"Get a customer","id":"63cd4dd0-fb6d-43e2-b247-58974dfe01ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.simplesat.io/api/v1/customers/{{id}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","customers","{{id}}"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"d2d2269d-6ab6-490b-acad-83eedcde5047","name":"Get a customer","originalRequest":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.simplesat.io/api/v1/customers/{{id}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13592933,\n    \"external_id\": null,\n    \"name\": \"John Doe\",\n    \"email\": \"jdoe@example.com\",\n    \"company\": \"Rindge, Inc.\",\n    \"tags\": [\n        \"sassy\",\n        \"snooty\"\n    ],\n    \"custom_attributes\": {\n        \"Company Status\": \"Active\",\n        \"Fav color\": \"Blue\"\n    }\n}"}],"_postman_id":"63cd4dd0-fb6d-43e2-b247-58974dfe01ef"},{"name":"Get a customer Copy","id":"df7f3178-56cd-482f-b6db-4298010670dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.simplesat.io/api/v1/customers/{{id}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","customers","{{id}}"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"84f33c03-02d3-41ff-b99a-c1fc192b56ab","name":"Get a customer","originalRequest":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.simplesat.io/api/v1/customers/{{id}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13592933,\n    \"external_id\": null,\n    \"name\": \"John Doe\",\n    \"email\": \"jdoe@example.com\",\n    \"company\": \"Rindge, Inc.\",\n    \"tags\": [\n        \"sassy\",\n        \"snooty\"\n    ],\n    \"custom_attributes\": {\n        \"Company Status\": \"Active\",\n        \"Fav color\": \"Blue\"\n    }\n}"}],"_postman_id":"df7f3178-56cd-482f-b6db-4298010670dc"}],"id":"b5e36422-2d5c-460b-9662-d9cb105f741b","description":"<h2 id=\"customer-model\">Customer model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Number</td>\n<td></td>\n</tr>\n<tr>\n<td>external_id</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>custom_attributes</td>\n<td>Object</td>\n<td></td>\n</tr>\n<tr>\n<td>tags</td>\n<td>Array</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"b5e36422-2d5c-460b-9662-d9cb105f741b","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}}},{"name":"Questions","item":[{"name":"List questions","id":"489e08a6-3a1b-41e8-a7b4-e05a9c5d43f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"url":"https://api.simplesat.io/api/v1/questions","description":"<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>metric</td>\n<td>Filter questions by csat, nps, or ces.</td>\n</tr>\n<tr>\n<td>survey_id</td>\n<td>Filter questions by a survey's ID.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","questions"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"bfb46928-0b02-4931-97c3-6c1ec76363e7","name":"List questions","originalRequest":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"url":{"raw":"https://api.simplesat.io/api/v1/questions","protocol":"https","host":["api","simplesat","io"],"path":["api","v1","questions"],"query":[{"key":"metric","value":null,"disabled":true},{"key":"survey_id","value":null,"disabled":true}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"next\": \"https://api.simplesat.io/api/v1/questions?page=2\",\n    \"previous\": null,\n    \"count\": 427,\n    \"questions\": [\n        {\n            \"id\": 58406,\n            \"survey\": {\n               \"id\": 16738,\n               \"name\": \"CSAT survey\"\n            },\n            \"order\": 1,\n            \"metric\": \"csat\",\n            \"text\": \"How did we do?\",\n            \"rating_scale\": true,\n            \"required\": true,\n            \"choices\": [\n                \"1\",\n                \"2\",\n                \"3\",\n                \"4\",\n                \"5\"\n            ],\n            \"rules\": [\n                {\n                    \"conditions\": [\n                        \"negative\"\n                    ],\n                    \"action\": \"display_follow_up_question\",\n                    \"question\": {\n                        \"id\": 2510,\n                        \"text\": \"I'm sorry to have let you down, how could I improve?\",\n                        \"required\": false,\n                        \"choices\": [],\n                        \"rules\": []\n                    }\n                },\n                {\n                    \"conditions\": [\n                        \"neutral\"\n                    ],\n                    \"action\": \"display_follow_up_question\",\n                    \"question\": {\n                        \"id\": 2511,\n                        \"text\": \"Can you share your experience and how I could have done a little better?\",\n                        \"required\": false,\n                        \"choices\": [],\n                        \"rules\": []\n                    }\n                },\n                {\n                    \"conditions\": [\n                        \"positive\"\n                    ],\n                    \"action\": \"display_follow_up_question\",\n                    \"question\": {\n                        \"id\": 2512,\n                        \"text\": \"Was there anything in particular I did that delighted you?\",\n                        \"required\": false,\n                        \"choices\": [],\n                        \"rules\": []\n                    }\n                }\n            ]\n        },\n        {\n            \"id\": 58410,\n            \"survey\": {\n               \"id\": 16735,\n               \"name\": \"CSAT survey\"\n            },\n            \"order\": 2,\n            \"metric\": \"custom\",\n            \"text\": \"How helpful do you find our video tutorials?\",\n            \"rating_scale\": true,\n            \"required\": false,\n            \"choices\": [\n                \"1\",\n                \"2\",\n                \"3\",\n                \"4\",\n                \"5\"\n            ]\n        },\n        {\n            \"id\": 58411,\n            \"survey\": {\n               \"id\": 16739,\n               \"name\": \"CSAT survey\"\n            },\n            \"order\": 3,\n            \"metric\": \"custom\",\n            \"text\": \"Did you find what you were looking for today?\",\n            \"rating_scale\": false,\n            \"required\": false,\n            \"choices\": [\n                \"Yes\",\n                \"No\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"489e08a6-3a1b-41e8-a7b4-e05a9c5d43f0"}],"id":"56147f26-0df2-4421-8515-8d1dcec108ac","description":"<h2 id=\"question-model\">Question model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Number</td>\n<td></td>\n</tr>\n<tr>\n<td>survey_id</td>\n<td>Number</td>\n<td></td>\n</tr>\n<tr>\n<td>order</td>\n<td>Number</td>\n<td></td>\n</tr>\n<tr>\n<td>metric</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>text</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>rating_scale</td>\n<td>Boolean</td>\n<td></td>\n</tr>\n<tr>\n<td>required</td>\n<td>Boolean</td>\n<td></td>\n</tr>\n<tr>\n<td>choices</td>\n<td>Array</td>\n<td></td>\n</tr>\n<tr>\n<td>rules</td>\n<td>Array</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"rules-model\">Rules model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>conditions</td>\n<td>Array</td>\n<td></td>\n</tr>\n<tr>\n<td>action</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>question</td>\n<td>Object</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"56147f26-0df2-4421-8515-8d1dcec108ac","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}}},{"name":"Responses","item":[{"name":"Get a response","id":"48673f44-31b2-4ef4-bc50-ad9ff96ff4ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"url":"https://api.simplesat.io/api/v1/responses/{{id}}","description":"<p>Retrieve a single response by ID.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","responses","{{id}}"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"b1dce25e-eb7b-4466-bc73-15e11197b612","name":"Get a response","originalRequest":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"url":"https://api.simplesat.io/api/v1/responses/{{id}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n   \"id\":6154350,\n   \"survey\":{\n      \"id\":17072,\n      \"name\":\"Satisfaction Survey\"\n   },\n   \"tags\":[\n      \"VIP\",\n      \"support request\"\n   ],\n   \"created\":\"2021-12-13T10:42:39.340742Z\",\n   \"modified\":\"2021-12-13T10:43:28.723487Z\",\n   \"ticket\":{\n      \"id\":6182024,\n      \"external_id\":\"119265800000334\",\n      \"subject\":\"PRINTER JAM!!!!1\",\n      \"custom_attributes\":{\n         \n      }\n   },\n   \"team_members\":[\n      {\n         \"external_id\":\"2340424\",\n         \"name\":\"John Doe\",\n         \"email\":\"jdoe@example.com\",\n         \"custom_attributes\":{\n            \"group\":\"Support\",\n            \"language\":\"English\"\n         },\n         \"role\":\"Assignee\",\n         \"is_primary\":true\n      }\n   ],\n   \"customer\":{\n      \"id\":13592781,\n      \"external_id\":\"9942423132967\",\n      \"name\":\"Jackson Doe\",\n      \"email\":\"jackson@example.com\",\n      \"company\":\"Rindge, Inc.\",\n      \"tags\":[\n         \"funny\",\n         \"vip\"\n      ],\n      \"custom_attributes\":{\n         \"area\":\"area51\",\n         \"type\":\"IT\"\n      }\n   },\n   \"answers\":[\n      {\n         \"id\":11261044,\n         \"question\": {\n                \"id\": 44993,\n                \"text\": \"How did we do?\",\n                \"metric\": \"csat\"\n            },\n         \"choice\":\"4\",\n         \"choice_label\":\"Great, I'm satisfied.\",\n         \"sentiment\":\"positive\",\n         \"comment\":null,\n         \"follow_up_answer\":\"THE PRINTER IS WORKING AGAIN!!!\",\n         \"follow_up_answer_choice\": null,\n            \"follow_up_question\": {\n                \"id\": 42634,\n                \"text\": \"Was there anything in particular we did that delighted you?\",\n                \"metric\": \"custom\"\n            }\n      },\n      {\n         \"id\":11261046,\n         \"question\": {\n                \"id\": 4494499793,\n                \"text\": \"How is our responsiveness?\",\n                \"metric\": \"custom\"\n            },\n         \"choice\":\"4\",\n         \"choice_label\":\"It's great.\",\n         \"sentiment\":\"positive\",\n         \"comment\":null,\n         \"follow_up_answer\":null,\n         \"follow_up_answer_choice\": null,\n         \"follow_up_question\": null\n      },\n      {\n         \"id\":11261047,\n         \"question\": {\n                \"id\": 44991,\n                \"text\": \"Anything else?\",\n                \"metric\": \"custom\"\n            },\n         \"choice\":null,\n         \"choice_label\":null,\n         \"sentiment\":null,\n         \"comment\":\"Love you!\",\n         \"follow_up_answer\":null,\n         \"follow_up_answer_choice\": null,\n         \"follow_up_question\": null\n      }\n   ]\n}"}],"_postman_id":"48673f44-31b2-4ef4-bc50-ad9ff96ff4ee"},{"name":"Search responses","id":"8c946dc3-4beb-40d5-bcc8-43983a7a7e6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.simplesat.io/api/v1/responses/search","description":"<p>Retrieve responses by applying specific filters in the request body.</p>\n<p>If the request body is left empty, the API will return all responses from the last 30 days by default.</p>\n<p>Including only a <code>start_date</code> field will return all responses from the date specified up to 30 days after.</p>\n<h2 id=\"request-fields\">Request fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>start_date</td>\n<td>datetime</td>\n<td>The date and time in ISO 8601 format to start displaying responses.</td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>datetime</td>\n<td>The date and time in ISO 8601 format to end displaying responses.</td>\n</tr>\n<tr>\n<td>operator</td>\n<td>string</td>\n<td><code>\"and\"</code> - all filters must match.  <br /><code>\"or\"</code> - at least one filter must match.</td>\n</tr>\n<tr>\n<td>filters</td>\n<td>array of objects</td>\n<td>Includes one or more <code>key</code>/<code>values</code> pairs to use as filters.</td>\n</tr>\n<tr>\n<td>key</td>\n<td>string</td>\n<td>The field name to filter (see all available fields in the table below).</td>\n</tr>\n<tr>\n<td>attribute</td>\n<td>string</td>\n<td>Use to define the field name for nested customer, ticket, or team member custom attributes. See below for how to find custom attribute field names.</td>\n</tr>\n<tr>\n<td>values</td>\n<td>array</td>\n<td>The value or values for the <code>key</code> field. Single values still must be wrapped in brackets. Separate multiple values by a comma within the brackets.  <br />  <br />Example: <code>\"values\": [\"tester@example.com\"]</code></td>\n</tr>\n<tr>\n<td>comparison</td>\n<td>string</td>\n<td>Supports: <code>is</code>, <code>is_not</code>, <code>contains</code>, <code>does_not_contain</code>, <code>is_unknown</code>, <code>has_any_value</code>.  <br />  <br />The <code>is_unknown</code> and <code>has_any_value</code> comparisons still require a value to be present in the filter, but the value is ignored. So for example, you could just use <code>\"values\": [\"-\"]</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"key-fields\">Key fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>choice_value</td>\n<td>integer</td>\n<td>Also referred to as \"rating value\".</td>\n</tr>\n<tr>\n<td>collaborator</td>\n<td>string</td>\n<td>The email address of a team member associated with a response (in Simplesat, \"collaborators\" are team members associated with responses, while the \"team_member\" field is the primary collaborator).</td>\n</tr>\n<tr>\n<td>company</td>\n<td>string</td>\n<td>Company name.</td>\n</tr>\n<tr>\n<td>comment</td>\n<td>string</td>\n<td>Use the <code>has_any_value</code> comparison to search for responses or answers containing a comment.</td>\n</tr>\n<tr>\n<td>customer</td>\n<td>string</td>\n<td>Customer full name.</td>\n</tr>\n<tr>\n<td>customer.email</td>\n<td>string</td>\n<td>Customer email.</td>\n</tr>\n<tr>\n<td>ip</td>\n<td>string</td>\n<td>Use the <code>contains</code> comparison as most feedback are associated with multiple IP addresses.</td>\n</tr>\n<tr>\n<td>metric</td>\n<td>string</td>\n<td>Available options: <code>NPS</code>, <code>CES</code>, <code>CSAT</code>, <code>5-STAR</code>.</td>\n</tr>\n<tr>\n<td>sentiment</td>\n<td>string</td>\n<td>Available options: <code>positive</code>, <code>neutral</code>, <code>negative</code></td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td><code>is</code> and <code>is_not</code> comparisons expect the source ID. Use <code>contains</code> to search by source name.</td>\n</tr>\n<tr>\n<td>survey</td>\n<td>string</td>\n<td>Expects a 43 character survey key found in rating URLs or retrieved using the <code>list surveys</code> endpoint.</td>\n</tr>\n<tr>\n<td>tag</td>\n<td>string</td>\n<td><code>is</code> and <code>is_not</code> comparisons expect the tag ID. Use <code>contains</code> to earch by tag name.</td>\n</tr>\n<tr>\n<td>team_member</td>\n<td>string</td>\n<td>Team member name.</td>\n</tr>\n<tr>\n<td>team_member.email</td>\n<td>string</td>\n<td>Team member email.</td>\n</tr>\n<tr>\n<td>team_member.id</td>\n<td>string</td>\n<td>Team member external ID.</td>\n</tr>\n<tr>\n<td>ticket_id</td>\n<td>string</td>\n<td>Ticket ID.</td>\n</tr>\n<tr>\n<td>customer.attributes</td>\n<td>string</td>\n<td>Add the <code>attribute</code> field to define the custom attribute key.</td>\n</tr>\n<tr>\n<td>ticket.attributes</td>\n<td>string</td>\n<td>Add the <code>attribute</code> field to define the custom attribute key.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"filtering-with-custom-attributes\">Filtering with custom attributes</h2>\n<p>Filtering by customer and ticket custom attributes is supported.</p>\n<p>To do so, enter <code>customer.attribute</code> or <code>ticket.attribute</code> as the <code>key</code>.</p>\n<p>Add the <code>attribute</code> field that includes the field name.</p>\n<p><em>Example:</em></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"filters\": [\n        {\n            \"key\": \"customer.attribute\",\n            \"attribute\": \"upload_country\",\n            \"values\": [\"United States\"],\n            \"comparison\": \"is_not\"\n        }\n    ]\n\n</code></pre>\n<p>Finding the correct attribute field name is currently a little tricky, as Simplesat appends prefixes to custom attributes depending on where they were created.</p>\n<p>To find the full attribute value:</p>\n<ul>\n<li>Create a filter in the Simplesat dashboard that includes the field that you want to use.</li>\n<li>Open the Network tab in developer tools.</li>\n<li>Find the request named <code>?limit=20&amp;offset=0</code>.</li>\n<li>Click on the Payload tab.</li>\n<li>From there, you should see the full field name. In the example below, the field displayed as <code>latest_nps</code> in the dashboard is <code>int_attribute_latest_nps</code>.</li>\n</ul>\n<img src=\"https://content.pstmn.io/fbe25d9e-d220-473a-9f49-0059e2edb23c/aW1hZ2UucG5n\" width=\"100%\" />","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","responses","search"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"e72a9002-588f-4c3d-a063-3371d07e755c","name":"Search responses","originalRequest":{"method":"POST","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"start_date\": \"2023-04-11T17:00:00Z\",\n    \"end_date\": \"2023-07-10T16:59:59Z\",\n    \"operator\": \"and\",\n    \"filters\": [\n        {\n            \"key\": \"customer.email\",\n            \"values\": [\"tester@example.com\"],\n            \"comparison\": \"is\"\n        },\n        {\n            \"key\": \"team_member_email\",\n            \"values\": [\"jane@example.com\",\"john@example.com\"],\n            \"comparison\": \"is\"\n        },\n\t\t\t\t{\n            \"key\": \"question_id\",\n            \"values\": [1901],\n            \"comparison\": \"is\"\n        },\n\t\t\t\t{\n            \"key\": \"survey_id\",\n            \"values\": [11432, 23234],\n            \"comparison\": \"contains\"\n        },\n\t\t\t\t{\n            \"key\": \"sentiment\",\n            \"values\": [\"positive\"],\n            \"comparison\": \"is\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/responses/search"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"next\": null,\n    \"previous\": null,\n    \"count\": 94,\n    \"responses\": [\n        {\n            \"id\": 12304590,\n            \"survey\": {\n                \"id\": 91021,\n                \"name\": \"CSAT Survey\"\n            },\n            \"tags\": null,\n            \"created\": \"2023-07-10T03:20:28.604939Z\",\n            \"ticket\": {\n                \"id\": 12323413,\n                \"external_id\": \"0Xz4zx9eefs\",\n                \"subject\": null\n            },\n            \"team_members\": null,\n            \"customer\": {\n                \"id\": 18578132,\n                \"external_id\": \"45506\",\n                \"name\": \"Tom Jones\",\n                \"email\": \"tom@example.com\",\n                \"company\": \"Test, Inc.\",\n                \"tags\": [\n                    \"Needs follow-up\"\n                ],\n                \"custom_attributes\": {\n                    \"plan\": \"pro\"\n                }\n            },\n            \"answers\": [\n                {\n                    \"id\": 23227520,\n                    \"question\": {\n                        \"id\": 132021,\n                        \"text\": \"How did we do?\",\n                        \"metric\": \"csat\"\n                    },\n                    \"choice\": \"4\",\n                    \"choices\": null,\n                    \"comment\": null,\n                    \"sentiment\": \"positive\",\n                    \"follow_up_answer\": null,\n                    \"choice_label\": \"Great, I'm satisfied\",\n                    \"follow_up_answer_choice\": null,\n                    \"follow_up_answer_choices\": [\n                        \"moon\"\n                    ],\n                    \"follow_up_question\": {\n                        \"id\": 132032,\n                        \"text\": \"Was there anything in particular we did that delighted you?\",\n                        \"metric\": \"custom\"\n                    }\n                }\n            ]\n        }\n}"}],"_postman_id":"8c946dc3-4beb-40d5-bcc8-43983a7a7e6d"},{"name":"Create or update a response","id":"45180b8c-920c-4021-a2a9-7287a30ab9e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.simplesat.io/api/v1/responses","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","responses"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"9ceca7d6-aa49-4842-8743-6177bf4990f9","name":"Create or update a response","originalRequest":{"method":"POST","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"survey_id\": 10009,\n    \"tags\": [\n        \"VIP\",\n        \"support request\"\n    ],\n    \"ticket\": {\n        \"external_id\": \"119265800000334\",\n        \"subject\": \"PRINTER JAM!!!!1\",\n        \"custom_attributes\": {}\n    },\n    \"team_members\": [\n        {\n            \"id\": 42446,\n            \"role\": \"Assignee\",\n            \"is_primary\": true\n        }\n    ],\n    \"customer_id\": 12766081,\n    \"answers\": [\n        {\n            \"question_id\": 44993,\n            \"choice\": \"4\",\n            \"comment\": null,\n            \"follow_up_answer\": \"THE PRINTER IS WORKING AGAIN!!!\"\n        },\n        {\n            \"question_id\": 44997,\n            \"choice\": \"4\",\n            \"comment\": null,\n            \"follow_up_answer\": null\n        },\n        {\n            \"question_id\": 44991,\n            \"choice\": null,\n            \"comment\": \"Love you!\",\n            \"follow_up_answer\": null\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/responses/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n   \"survey\":{\n      \"id\":17072,\n      \"name\":\"Satisfaction Survey\"\n   },\n   \"ticket\":{\n      \"id\":6287916,\n      \"external_id\":\"119265800000334\",\n      \"subject\":\"PRINTER JAM!!!!1\",\n      \"custom_attributes\":{\n         \n      }\n   },\n   \"team_members\":[\n      {\n         \"external_id\":\"2340424\",\n         \"name\":\"John Doe\",\n         \"email\":\"jdoe@example.com\",\n         \"custom_attributes\":{\n            \"group\":\"Support\",\n            \"language\":\"English\"\n         },\n         \"role\":\"Assignee\",\n         \"is_primary\":true\n      }\n   ],\n   \"customer\":{\n      \"id\":13592781,\n      \"external_id\":\"9942423132967\",\n      \"name\":\"Jackson Doe\",\n      \"email\":\"jackson@example.com\",\n      \"company\":\"Rindge, Inc.\",\n      \"tags\":[\n         \"funny\",\n         \"vip\"\n      ],\n      \"custom_attributes\":{\n         \"area\":\"area51\",\n         \"type\":\"IT\"\n      }\n   },\n   \"answers\":[\n      {\n         \"id\":11261044,\n         \"question\": {\n                \"id\": 44993,\n                \"text\": \"How did we do?\",\n                \"metric\": \"csat\"\n            },\n         \"choice\":\"4\",\n         \"choice_label\":\"Great, I'm satisfied.\",\n         \"sentiment\":\"positive\",\n         \"comment\":null,\n         \"follow_up_answer\":\"THE PRINTER IS WORKING AGAIN!!!\",\n         \"follow_up_answer_choice\": null\n      },\n      {\n         \"id\":11261046,\n         \"question\": {\n                \"id\": 4494499793,\n                \"text\": \"How is our responsiveness?\",\n                \"metric\": \"custom\"\n            },\n         \"choice\":\"4\",\n         \"choice_label\":\"It's great.\",\n         \"sentiment\":\"positive\",\n         \"comment\":null,\n         \"follow_up_answer\":null,\n         \"follow_up_answer_choice\": null\n      }\n   ],\n   \"id\":6260581,\n   \"tags\":[\n      \"support request\",\n      \"VIP\"\n   ],\n   \"created\":\"2021-12-23T13:38:54.540655Z\",\n   \"modified\":\"2021-12-23T13:38:54.540685Z\"\n}"}],"_postman_id":"45180b8c-920c-4021-a2a9-7287a30ab9e5"},{"name":"Create or update a response (extended)","id":"3c85fde0-f981-4454-a4a0-3429377e25d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the X-Simplesat-Token header generated by Postman.","key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"survey_id\": 126925,\r\n  \"tags\": [\"chocolate\", \"strawberry\"],\r\n  \"answers\": [\r\n    {\r\n      \"question_id\": 162249,\r\n      \"choice\": \"10\",\r\n      \"comment\": \"\",\r\n      \"follow_up_answer\": \"Thank you 10 times!\"\r\n    }\r\n  ],\r\n  \"team_members\": [\r\n    {\r\n      \"external_id\": null,\r\n      \"name\": \"Alexander\",\r\n      \"email\": \"Alexander@gmail.com\",\r\n      \"custom_attributes\": {\r\n        \"group\": \"Support\",\r\n        \"language\": \"English\"\r\n      },\r\n      \"role\": \"Owner\",\r\n      \"is_primary\": true\r\n    }\r\n  ],\r\n  \"ticket\": {\r\n    \"external_id\": 1234,\r\n    \"subject\": \"My printer is on fire!\",\r\n    \"custom_attributes\": {\r\n      \"priority\": \"Urgent\",\r\n      \"type\": \"Help desk\"\r\n    }\r\n  },\r\n  \"customer\": {\r\n    \"external_id\": \"9942423132967\",\r\n    \"name\": \"Jackson Doe\",\r\n    \"email\": \"jackson@example.com\",\r\n    \"tags\": [\"vip\", \"funny\"],\r\n    \"company\": \"Rindge, Inc.\",\r\n    \"custom_attributes\": {\r\n      \"type\": \"IT\",\r\n      \"area\": \"area51\"\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/responses/create-or-update","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","responses","create-or-update"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"f7626383-7478-428b-939e-10b7a8322299","name":"Create or update a response (extended)","originalRequest":{"method":"POST","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"survey_id\": 15418,\n  \"tags\": [\"chocolate\", \"strawberry\"],\n  \"answers\": [\n    {\n      \"question_id\": 57507,\n      \"choice\": \"4\",\n      \"comment\": null,\n      \"follow_up_answer\": \"Thank you 3 times!\"\n    }\n  ],\n  \"team_members\": [\n    {\n      \"external_id\": \"2340424\",\n      \"name\": \"John Doe\",\n      \"email\": \"jdoe@example.com\",\n      \"custom_attributes\": {\n        \"group\": \"Support\",\n        \"language\": \"English\"\n      },\n      \"role\": \"Assignee\",\n      \"is_primary\": true\n    },\n    {\n      \"external_id\": \"23409978\",\n      \"name\": \"Jane Doe\",\n      \"email\": \"janed@example.com\",\n      \"role\": \"Opened by\",\n      \"is_primary\": false\n    }\n  ],\n  \"ticket\": {\n    \"external_id\": \"2384\",\n    \"subject\": \"My printer is on fire!\",\n    \"custom_attributes\": {\n      \"priority\": \"Urgent\",\n      \"type\": \"Help desk\"\n    }\n  },\n  \"customer\": {\n    \"external_id\": \"9942423132967\",\n    \"name\": \"Jackson Doe\",\n    \"email\": \"jackson@example.com\",\n    \"tags\": [\"vip\", \"funny\"],\n    \"company\": \"Rindge, Inc.\",\n    \"custom_attributes\": {\n      \"type\": \"IT\",\n      \"area\": \"area51\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/responses"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n   \"survey\":{\n      \"id\":17072,\n      \"name\":\"Satisfaction Survey\"\n   },\n   \"ticket\":{\n      \"id\":6312090,\n      \"external_id\":\"2384\",\n      \"subject\":\"My printer is on fire!\",\n      \"custom_attributes\":{\n         \"priority\":\"Urgent\",\n         \"type\":\"Help desk\"\n      }\n   },\n   \"team_members\":[\n      {\n         \"id\":11378,\n         \"external_id\":\"2340424\",\n         \"name\":\"John Doe\",\n         \"email\":\"jdoe@example.com\",\n         \"custom_attributes\":{\n            \"group\":\"Support\",\n            \"language\":\"English\"\n         },\n         \"role\":\"Assignee\",\n         \"is_primary\":true\n      },\n      {\n         \"id\":43901,\n         \"external_id\":\"23409978\",\n         \"name\":\"Jane Doe\",\n         \"email\":\"janed@example.com\",\n         \"custom_attributes\":{\n            \n         },\n         \"role\":\"Opened by\",\n         \"is_primary\":false\n      }\n   ],\n   \"customer\":{\n      \"id\":13592781,\n      \"external_id\":\"9942423132967\",\n      \"name\":\"Jackson Doe\",\n      \"email\":\"jackson@example.com\",\n      \"company\":\"Rindge, Inc.\",\n      \"tags\":[\n         \"funny\",\n         \"vip\"\n      ],\n      \"custom_attributes\":{\n         \"area\":\"area51\",\n         \"type\":\"IT\"\n      }\n   },\n   \"answers\":[\n      {\n         \"id\":11305838,\n         \"question\": {\n                \"id\": 44993,\n                \"text\": \"How did we do?\",\n                \"metric\": \"csat\"\n            },\n         \"choice\":\"4\",\n         \"choice_label\":\"Great, I'm satisfied.\",\n         \"sentiment\":\"positive\",\n         \"comment\":null,\n         \"follow_up_answer\":\"Thank you 3 times!\",\n         \"follow_up_answer_choice\": null\n      }\n   ],\n   \"id\":6284765,\n   \"tags\":[\n      \"chocolate\",\n      \"strawberry\"\n   ],\n   \"created\":\"2021-12-27T08:43:07.401951Z\",\n   \"modified\":\"2021-12-27T08:43:07.401979Z\"\n}"}],"_postman_id":"3c85fde0-f981-4454-a4a0-3429377e25d3"},{"name":"Update a response (extended)","id":"96a8391b-4b50-451b-9223-cedef0c98b21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/responses/13371566/update","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","responses","13371566","update"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"1e48bc19-2fdd-4a25-988f-b8227fac4f0c","name":"Update a response (extended)","originalRequest":{"method":"POST","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"survey_id\": 15418,\n  \"tags\": [\"chocolate\", \"strawberry\"],\n  \"answers\": [\n    {\n      \"question_id\": 57507,\n      \"choice\": \"4\",\n      \"comment\": null,\n      \"follow_up_answer\": \"Thank you 3 times!\"\n    }\n  ],\n  \"team_members\": [\n    {\n      \"external_id\": \"2340424\",\n      \"name\": \"John Doe\",\n      \"email\": \"jdoe@example.com\",\n      \"custom_attributes\": {\n        \"group\": \"Support\",\n        \"language\": \"English\"\n      },\n      \"role\": \"Assignee\",\n      \"is_primary\": true\n    },\n    {\n      \"external_id\": \"23409978\",\n      \"name\": \"Jane Doe\",\n      \"email\": \"janed@example.com\",\n      \"role\": \"Opened by\",\n      \"is_primary\": false\n    }\n  ],\n  \"ticket\": {\n    \"external_id\": \"2384\",\n    \"subject\": \"My printer is on fire!\",\n    \"custom_attributes\": {\n      \"priority\": \"Urgent\",\n      \"type\": \"Help desk\"\n    }\n  },\n  \"customer\": {\n    \"external_id\": \"9942423132967\",\n    \"name\": \"Jackson Doe\",\n    \"email\": \"jackson@example.com\",\n    \"tags\": [\"vip\", \"funny\"],\n    \"company\": \"Rindge, Inc.\",\n    \"custom_attributes\": {\n      \"type\": \"IT\",\n      \"area\": \"area51\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/responses/{{id}}/update"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n   \"survey\":{\n      \"id\":17072,\n      \"name\":\"Satisfaction Survey\"\n   },\n   \"ticket\":{\n      \"id\":6312090,\n      \"external_id\":\"2384\",\n      \"subject\":\"My printer is on fire!\",\n      \"custom_attributes\":{\n         \"priority\":\"Urgent\",\n         \"type\":\"Help desk\"\n      }\n   },\n   \"team_members\":[\n      {\n         \"id\":11378,\n         \"external_id\":\"2340424\",\n         \"name\":\"John Doe\",\n         \"email\":\"jdoe@example.com\",\n         \"custom_attributes\":{\n            \"group\":\"Support\",\n            \"language\":\"English\"\n         },\n         \"role\":\"Assignee\",\n         \"is_primary\":true\n      },\n      {\n         \"id\":43901,\n         \"external_id\":\"23409978\",\n         \"name\":\"Jane Doe\",\n         \"email\":\"janed@example.com\",\n         \"custom_attributes\":{\n            \n         },\n         \"role\":\"Opened by\",\n         \"is_primary\":false\n      }\n   ],\n   \"customer\":{\n      \"id\":13592781,\n      \"external_id\":\"9942423132967\",\n      \"name\":\"Jackson Doe\",\n      \"email\":\"jackson@example.com\",\n      \"company\":\"Rindge, Inc.\",\n      \"tags\":[\n         \"funny\",\n         \"vip\"\n      ],\n      \"custom_attributes\":{\n         \"area\":\"area51\",\n         \"type\":\"IT\"\n      }\n   },\n   \"answers\":[\n      {\n         \"id\":11305838,\n         \"question\": {\n                \"id\": 44993,\n                \"text\": \"How did we do?\",\n                \"metric\": \"csat\"\n            },\n         \"choice\":\"4\",\n         \"choice_label\":\"Great, I'm satisfied.\",\n         \"sentiment\":\"positive\",\n         \"comment\":null,\n         \"follow_up_answer\":\"Thank you 3 times!\"\n      }\n   ],\n   \"id\":6284765,\n   \"tags\":[\n      \"chocolate\",\n      \"strawberry\"\n   ],\n   \"created\":\"2021-12-27T08:43:07.401951Z\",\n   \"modified\":\"2021-12-27T08:43:07.401979Z\"\n}"}],"_postman_id":"96a8391b-4b50-451b-9223-cedef0c98b21"},{"name":"Update a response","id":"aa401104-8eef-4ace-b52e-8c6faa9985d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/responses/13371566","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","responses","13371566"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"4d006442-cf59-4698-a922-977b82009cc2","name":"Update a response","originalRequest":{"method":"PUT","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"tags\": [\n        \"funny client\",\n        \"feature request\"\n    ],\n    \"ticket\": {\n        \"external_id\": \"119265800000334\",\n        \"subject\": \"My hair is on fire!\",\n        \"custom_attributes\": {\n            \"priority\": \"urgent\"\n        }\n    },\n    \"team_members\": [\n        {\n            \"id\": 42446,\n            \"role\": \"Assignee\",\n            \"is_primary\": true\n        }\n    ],\n    \"answers\": [\n        {\n            \"question_id\": 44993,\n            \"choice\": \"4\",\n            \"comment\": null,\n            \"follow_up_answer\": \"MY HAIR IS NO LONGER ON FIRE!!!\"\n        },\n        {\n            \"question_id\": 44997,\n            \"choice\": \"4\",\n            \"comment\": null,\n            \"follow_up_answer\": null\n        },\n        {\n            \"question_id\": 44991,\n            \"choice\": null,\n            \"comment\": \"Love you!\",\n            \"follow_up_answer\": null\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/responses/{{id}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n   \"survey\":{\n      \"id\":17072,\n      \"name\":\"Satisfaction Survey\"\n   },\n   \"ticket\":{\n      \"id\":6287916,\n      \"external_id\":\"119265800000334\",\n      \"subject\":\"My hair is on fire!\",\n      \"custom_attributes\":{\n         \"priority\":\"urgent\"\n      }\n   },\n   \"team_members\":[\n      {\n         \"external_id\":\"2340424\",\n         \"name\":\"John Doe\",\n         \"email\":\"jdoe@example.com\",\n         \"custom_attributes\":{\n            \"group\":\"Support\",\n            \"language\":\"English\"\n         },\n         \"role\":\"Assignee\",\n         \"is_primary\":true\n      }\n   ],\n   \"customer\":{\n      \"id\":13592781,\n      \"external_id\":\"9942423132967\",\n      \"name\":\"Jackson Doe\",\n      \"email\":\"jackson@example.com\",\n      \"company\":\"Rindge, Inc.\",\n      \"tags\":[\n         \"funny\",\n         \"vip\"\n      ],\n      \"custom_attributes\":{\n         \"area\":\"area51\",\n         \"type\":\"IT\"\n      }\n   },\n   \"answers\":[\n      {\n         \"id\":11261044,\n         \"question\": {\n                \"id\": 44993,\n                \"text\": \"How did we do?\",\n                \"metric\": \"csat\"\n            },\n         \"choice\":\"4\",\n         \"choice_label\":\"Great, I'm satisfied.\",\n         \"sentiment\":\"positive\",\n         \"comment\":null,\n         \"follow_up_answer\":\"MY HAIR IS NO LONGER ON FIRE!!!\"\n      },\n      {\n         \"id\":11261346,\n         \"question\": {\n                \"id\": 4494499793,\n                \"text\": \"How is our responsiveness?\",\n                \"metric\": \"custom\"\n            },\n         \"choice\":\"4\",\n         \"choice_label\":\"Pretty good.\",\n         \"sentiment\":\"positive\",\n         \"comment\":null,\n         \"follow_up_answer\":null\n      },\n      {\n         \"id\":11261347,\n         \"question\": {\n                \"id\": 44991,\n                \"text\": \"Anything else?\",\n                \"metric\": \"custom\"\n            },\n         \"choice\":null,\n         \"choice_label\":null,\n         \"sentiment\":null,\n         \"comment\":\"Love you!\",\n         \"follow_up_answer\":null\n      }\n   ],\n   \"id\":6260581,\n   \"tags\":[\n      \"feature request\",\n      \"funny client\"\n   ],\n   \"created\":\"2021-12-23T13:38:54.540655Z\",\n   \"modified\":\"2021-12-23T13:38:54.687639Z\"\n}"}],"_postman_id":"aa401104-8eef-4ace-b52e-8c6faa9985d7"}],"id":"a002ae17-3976-4e14-ac64-541ad9f57258","description":"<h2 id=\"response-model\">Response model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Number</td>\n<td></td>\n</tr>\n<tr>\n<td>created</td>\n<td>DateTime</td>\n<td></td>\n</tr>\n<tr>\n<td>modified</td>\n<td>DateTime</td>\n<td></td>\n</tr>\n<tr>\n<td>survey_id</td>\n<td>Number</td>\n<td></td>\n</tr>\n<tr>\n<td>tags</td>\n<td>Array</td>\n<td></td>\n</tr>\n<tr>\n<td>answers</td>\n<td>Array</td>\n<td>Array of the answer model</td>\n</tr>\n<tr>\n<td>team_members</td>\n<td>Array</td>\n<td>Array of the team member model</td>\n</tr>\n<tr>\n<td>ticket</td>\n<td>Object</td>\n<td>Object of the ticket model</td>\n</tr>\n<tr>\n<td>customer_id</td>\n<td>Number</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"ticket-model\">Ticket model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Number</td>\n<td></td>\n</tr>\n<tr>\n<td>external_id</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>subject</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>custom_attributes</td>\n<td>Object</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"a002ae17-3976-4e14-ac64-541ad9f57258","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}}},{"name":"Surveys","item":[{"name":"List surveys","id":"6c4398fb-a47d-4a47-b303-696e1c799c8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.simplesat.io/api/v1/surveys","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","surveys"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"b214859d-9327-4699-abb8-1abcc156ef4e","name":"List surveys","originalRequest":{"method":"GET","header":[],"url":"https://api.simplesat.io/api/v1/surveys"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"surveys\": [\n        {\n            \"id\": 15418,\n            \"name\": \"Ticket satisfaction\",\n            \"metric\": \"CSAT\"\n        },\n        {\n            \"id\": 14383,\n            \"name\": \"Post-project CES survey\",\n            \"metric\": \"CES\"\n        },\n        {\n            \"id\": 13578,\n            \"name\": \"Quarterly NPS\",\n            \"metric\": \"NPS\"\n        }\n    ]\n}"}],"_postman_id":"6c4398fb-a47d-4a47-b303-696e1c799c8b"}],"id":"0f46bd1b-b509-432d-95c2-16e2d8d08363","description":"<h2 id=\"survey-model\">Survey model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Number</td>\n<td></td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>metric</td>\n<td>String</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"0f46bd1b-b509-432d-95c2-16e2d8d08363","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}}},{"name":"Team members","item":[{"name":"Get a team member","id":"1865d2d3-4fb9-492f-b6f2-d757f2cc2f14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"url":"https://api.simplesat.io/api/v1/team-members/{{id}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","team-members","{{id}}"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"a67bbd40-8c21-4be9-a121-2c1150030920","name":"Get a team member","originalRequest":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"url":"https://api.simplesat.io/api/v1/team-members/{{id}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 42446,\n    \"external_id\": \"5235893\",\n    \"name\": \"John Smith\",\n    \"email\": \"jsmith@gmail.com\",\n    \"custom_attributes\": {\n        \"language\": \"English\",\n        \"region\": \"North America\"\n    }\n}"}],"_postman_id":"1865d2d3-4fb9-492f-b6f2-d757f2cc2f14"},{"name":"Update a team member","id":"ae779706-a260-4265-a87f-3aa565dfb35a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/team-members/{{id}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","team-members","{{id}}"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"04266a42-9d26-47e6-88b4-712ec04328c9","name":"Update a team member","originalRequest":{"method":"PUT","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"custom_attributes\": {\n        \"language\": \"Spanish\",\n        \"region\": \"Mexico\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/team-members/{{id}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 43857,\n    \"external_id\": \"5235893\",\n    \"name\": \"John Smith\",\n    \"email\": \"jsmith@gmail.com\",\n    \"custom_attributes\": {\n        \"language\": \"Spanish\",\n        \"region\": \"Mexico\"\n    }\n}"}],"_postman_id":"ae779706-a260-4265-a87f-3aa565dfb35a"},{"name":"Create or update a team member","id":"e5615250-2e38-43f7-999f-6a3a6d7d529d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"url":"https://api.simplesat.io/api/v1/team-members","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","team-members"],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"d527fe61-0d1b-4817-b362-7cfa7f203043","name":"Create or update a team member","originalRequest":{"method":"POST","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"external_id\": \"5235893\",\n    \"name\": \"John Smith\",\n    \"email\": \"jsmith@gmail.com\",\n    \"custom_attributes\": {\n        \"language\": \"English\",\n        \"region\": \"North America\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/v1/team-members/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 43857,\n    \"external_id\": \"5235893\",\n    \"name\": \"John Smith\",\n    \"email\": \"jsmith@gmail.com\",\n    \"custom_attributes\": {\n        \"language\": \"English\",\n        \"region\": \"North America\"\n    }\n}"}],"_postman_id":"e5615250-2e38-43f7-999f-6a3a6d7d529d"}],"id":"70fb2f74-eed0-425b-bcc6-8cec30011d20","description":"<h2 id=\"team-member-model\">Team member model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Number</td>\n<td></td>\n</tr>\n<tr>\n<td>external_id</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>custom_attributes</td>\n<td>Object</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"70fb2f74-eed0-425b-bcc6-8cec30011d20","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]},"isInherited":true,"source":{"_postman_id":"0a012608-29fa-46fd-bed4-05077c9abfa9","id":"0a012608-29fa-46fd-bed4-05077c9abfa9","name":"Simplesat API (v1)","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-Simplesat-Token"},{"key":"value","value":"<Your access token>"}]}},"event":[{"listen":"prerequest","script":{"id":"cd1758b5-7adf-49f8-9f24-8786ed2b6747","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2210994b-5037-4dfc-8c76-cb7099f81f29","type":"text/javascript","exec":[""]}}],"variable":[{"key":"access token","value":"<Your access token>"},{"key":"simplesat_demo_1316","value":"","type":"string","disabled":true}]}