{"info":{"_postman_id":"c01b0216-f01f-4b81-8db5-e4cd6958e14e","name":"Simplesat API (v0)","description":"<html><head></head><body><h3 id=\"❗️-note-its-recommended-to-use-the-latest-v1-api-version-you-can-view-the-documentation-here\"><strong>❗️ Note: It's recommended to use the latest v1 API version.</strong> <a href=\"https://documenter.getpostman.com/view/457268/UVRDGRZ2\"><b>You can view the documentation here</b></a><strong>.</strong></h3>\n<p>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<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/answers/?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":"c01b0216-f01f-4b81-8db5-e4cd6958e14e","publishedId":"SVfRt7WJ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"4EC677"},"publishDate":"2019-08-30T03:51:15.000Z"},"item":[{"name":"Answers","item":[{"name":"List Answers","id":"05b3e9ee-7d3e-4546-a93a-4885715bb0eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"url":"https://api.simplesat.io/api/answers/","description":"<p>Fetch a list of all answers.</p>\n","urlObject":{"protocol":"https","path":["api","answers",""],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"1d41f0e6-6277-49d8-b35a-d1c04fec2235","name":"List Answers","originalRequest":{"method":"GET","header":[{"key":"X-Simplesat-Token","value":"<Your access token>","type":"text"}],"url":"https://api.simplesat.io/api/answers/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 30 Aug 2019 03:38:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"97863"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.11.4"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,PUT,PATCH,POST,DELETE,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,Authorization"}],"cookie":[],"responseTime":null,"body":"{\n    \"answers\": [\n        {\n            \"id\": 896642,\n            \"question\": {\n                \"id\": 5833,\n                \"modified\": \"2019-07-10T12:12:10.340206Z\",\n                \"title\": \"How did we do?\",\n                \"metric\": \"csat\",\n                \"type\": \"multipleChoiceScale\"\n            },\n            \"follow_up_answer\": {\n                \"id\": 896645,\n                \"modified\": \"2019-08-28T12:54:49.925488Z\",\n                \"comment\": \"YOU GUYS ROCK!!!\",\n                \"question\": {\n                    \"id\": 5836,\n                    \"modified\": \"2019-07-10T12:12:10.371734Z\",\n                    \"title\": \"Was there anything in particular we did that delighted you?\",\n                    \"type\": \"comment\"\n                }\n            },\n            \"sentiment\": \"positive\",\n            \"channel\": \"connectwise\",\n            \"customer\": {\n                \"id\": 1095622,\n                \"modified\": \"2019-08-28T12:08:00.632102Z\",\n                \"name\": \"John Smith\",\n                \"email\": \"jsmith@gmail.com\",\n                \"company\": {\n                    \"name\": \"Smith Inc\"\n                }\n            },\n            \"ticket\": {\n                \"id\": 114823,\n                \"external_id\": \"111311\",\n                \"subject\": \"Fix my broken printer\",\n                \"collaborators\": [\n                    {\n                        \"role\": \"Most time entered\",\n                        \"team_member\": {\n                            \"id\": 234,\n                            \"name\": \"Sarah Oleary\",\n                            \"email\": null,\n                            \"external_id\": \"soleary\"\n                        }\n                    },\n                    {\n                        \"role\": \"Opened by\",\n                        \"team_member\": {\n                            \"id\": 432,\n                            \"name\": \"JD Pederson\",\n                            \"email\": null,\n                            \"external_id\": \"jpederson\"\n                        }\n                    },\n                    {\n                        \"role\": \"Owner\",\n                        \"team_member\": {\n                            \"id\": 433,\n                            \"name\": \"Sarah Oleary\",\n                            \"email\": null,\n                            \"external_id\": \"soleary\"\n                        }\n                    },\n                ],\n                \"team_member\": {\n                    \"id\": 3606,\n                    \"name\": \"Sal Mon\",\n                    \"email\": null,\n                    \"external_id\": \"smon\"\n                },\n                \"custom_attributes\": {\n                    \"board\": \"Help Desk\",\n                    \"department\": null,\n                    \"zendesk_channel\": \"chat\"\n                }\n            },\n            \"ip_address\": null,\n            \"is_primary\": true,\n            \"rating\": 3,\n            \"survey\": {\n                \"id\": 2632,\n                \"modified\": \"2019-07-10T12:14:25.509935Z\",\n                \"name\": \"CSAT Survey\"\n            },\n            \"answer_label\": \"Great, I'm satisfied\",\n            \"comment\": null,\n            \"tags\": [\n                {\n                    \"id\": 123,\n                    \"name\": \"Professional\"\n                },\n                {\n                    \"id\": 124,\n                    \"name\": \"Response time\"\n                }\n            ],\n            \"created\": \"2019-08-28T12:54:09.913638Z\",\n            \"modified\": \"2019-08-28T12:54:09.913663Z\",\n            \"session\": 48954\n        }\n    ]\n}"}],"_postman_id":"05b3e9ee-7d3e-4546-a93a-4885715bb0eb"}],"id":"6d36032b-209d-4bf3-b858-8ae9f844c153","description":"<p>Answers are individual responses to questions.</p>\n<h2 id=\"answers-model\">Answers model</h2>\n<p>The answers object contains the following fields.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Number</td>\n<td>ID for answer in Simplesat.</td>\n</tr>\n<tr>\n<td>question</td>\n<td>Object</td>\n<td>Details about the answer's question.</td>\n</tr>\n<tr>\n<td>follow_up_answer</td>\n<td>Object</td>\n<td>Details about the answer's (optional) follow-up question.</td>\n</tr>\n<tr>\n<td>sentiment</td>\n<td>String</td>\n<td>Each rating is mapped to a sentiment: `positive<code>, </code>neutral<code>, or </code>negative`.</td>\n</tr>\n<tr>\n<td>channel</td>\n<td>String</td>\n<td>The channel \"source\" the answer arrived from.</td>\n</tr>\n<tr>\n<td>customer</td>\n<td>Object</td>\n<td>Details about the customer who provided the answer.</td>\n</tr>\n<tr>\n<td>ticket</td>\n<td>Object</td>\n<td>Details about the ticket the answer is connected to.</td>\n</tr>\n<tr>\n<td>ticket collaborators</td>\n<td>Object</td>\n<td>Details about people associated with the ticket.</td>\n</tr>\n<tr>\n<td>ip_address</td>\n<td>String</td>\n<td>IP address of respondent.</td>\n</tr>\n<tr>\n<td>is_primary</td>\n<td>Boolean</td>\n<td>True/false value of whether an answer comes from the first \"primary\" question of a survey.</td>\n</tr>\n<tr>\n<td>rating</td>\n<td>Number</td>\n<td>Number value for answer (can be 0-10 depending on the question).</td>\n</tr>\n<tr>\n<td>survey</td>\n<td>Object</td>\n<td>Details about the survey the answer belongs to.</td>\n</tr>\n<tr>\n<td>answer_label</td>\n<td>String</td>\n<td>Text label associated with the rating (Great, I'm satisfied!).</td>\n</tr>\n<tr>\n<td>comment</td>\n<td>String</td>\n<td>The follow-up \"reason\" for a rating. Usually a comment, but could be a multiple choice answer.</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>Array</td>\n<td>Tags associated with a response. Returns the tag ID and tag name as a string.</td>\n</tr>\n<tr>\n<td>created</td>\n<td>DateTime</td>\n<td>Date answer was created.</td>\n</tr>\n<tr>\n<td>modified</td>\n<td>DateTime</td>\n<td>Date answer was modified.</td>\n</tr>\n<tr>\n<td>session</td>\n<td>Number</td>\n<td>Surveys with multiple questions can be grouped by session.</td>\n</tr>\n</tbody>\n</table>\n</div><br />\n\n<h2 id=\"available-parameters\">Available parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>modified__gte</code></td>\n<td>DateTime</td>\n<td>no</td>\n<td>Filter answers modified <em>after</em> a date. Example datetime field: <code>2019-08-02T00:00:00.000000Z</code></td>\n</tr>\n<tr>\n<td><code>modified__lte</code></td>\n<td>DateType</td>\n<td>no</td>\n<td>Filter answers modified <em>before</em> a date.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"follow-up-answers\">Follow-up answers</h2>\n<p>Simplesat surveys support a \"follow-up question\" feature that allows users to gain additional context about a specific answer. If a question contains a follow-up question, Simplesat will bind the answer and follow-up answer as a single answer. The follow-up answer's details can be found in the <code>follow_up_answer</code> object.</p>\n","event":[{"listen":"prerequest","script":{"id":"393df57f-482c-438c-abc0-a18eb1b4cbf0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"cf3bf691-d9e4-44b5-9ee6-abd6dea12ba1","type":"text/javascript","exec":[""]}}],"_postman_id":"6d36032b-209d-4bf3-b858-8ae9f844c153"},{"name":"Customers","item":[{"name":"Create or Update Customer","id":"c956fd32-4bd1-4e9a-8029-98056596a439","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Simplesat-Token","type":"text","value":"{{Your access token}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/customers/create-or-update/","description":"<p>Customers can be created or updated via a <code>POST</code> method to <code>https://api.simplesat.io/api/customers/</code>, which accepts a JSON object describing the customer.</p>\n","urlObject":{"protocol":"https","path":["api","customers","create-or-update",""],"host":["api","simplesat","io"],"query":[],"variable":[]}},"response":[{"id":"41c04511-3e56-4427-b37e-63691cd781a9","name":"Create or Update 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    \"name\": \"John Doe\",\n    \"email\": \"jdoe@example.com\",\n    \"custom_attributes\": {\n        \"company_status\": \"Active\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simplesat.io/api/customers/create-or-update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1234,\n    \"created\": \"2018-11-08T09:34:15.524170Z\",\n    \"modified\": \"2020-04-13T08:27:14.857438Z\",\n    \"name\": \"John Doe\",\n    \"email\": \"jdoe@example.com\",\n    \"company\": {\n        \"name\": \"Rindge, Inc.\"\n    },\n    \"source\": \"Simplesat API\",\n    \"custom_attributes\": {\n        \"company_status\": \"Active\"\n    }\n}"}],"_postman_id":"c956fd32-4bd1-4e9a-8029-98056596a439"}],"id":"5722f835-509e-4024-89e8-e79a6adc5ccc","description":"<p>Customers are individual people who can receive and provide answers to surveys.</p>\n<p>Simplesat doesn't yet have a separate Companies model. For now, any company-specific details are nested in the customers object.</p>\n<h2 id=\"customers-model\">Customers model</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Number</td>\n<td>The Simplesat defined id representing the customer.</td>\n</tr>\n<tr>\n<td>created</td>\n<td>DateTime</td>\n<td>The time when the customer was created.</td>\n</tr>\n<tr>\n<td>modified</td>\n<td>DateTime</td>\n<td>The time when the customer was modified.</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>First and last name of the customer.</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td>Email address of the customer.</td>\n</tr>\n<tr>\n<td>company</td>\n<td>Object</td>\n<td>Details about the company the customer belongs to.</td>\n</tr>\n<tr>\n<td>custom_attributes</td>\n<td>Object</td>\n<td>Custom attributes associated with the customer.</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"89c099e6-1a96-438b-b8dd-e636fd38f993","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d7e5ac6f-9e9e-40dd-a440-a0ba6440c558","type":"text/javascript","exec":[""]}}],"_postman_id":"5722f835-509e-4024-89e8-e79a6adc5ccc"}],"event":[{"listen":"prerequest","script":{"id":"9f71ac05-aa72-4e56-aea4-5a18b8bfef57","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6990bec0-ea9b-49d9-ac43-5720e7efab4c","type":"text/javascript","exec":[""]}}]}