{"info":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","description":"<html><head></head><body><p>Welcome to the <a href=\"https://www.fusedesk.com/?utm_source=apidocs\">FuseDesk</a> API!</p>\n<p>The FuseDesk API allows you to integrate your own custom solutions with your FuseDesk Help Desk and Messaging Platform.</p>\n<p>Specifically, you're able to work with FuseDesk Cases, Emails, Contacts, Reps, and more!</p>\n<p>Don't have a FuseDesk app yet? Get your own <a href=\"https://www.fusedesk.com/?utm_source=apidocs\">Free FuseDesk App</a> and start developing today!</p>\n<h1 id=\"error-reporting\">Error Reporting</h1>\n<p>If an error occurs, we’ll return back HTTP Status of not 200 (i.e. 405) along with an encoded error message.</p>\n<p>Response Headers will include:</p>\n<ul>\n<li><code>X-FuseDesk-Error-Code</code> The error code string, i.e. <code>api_error_noscope</code></li>\n<li><code>X-FuseDesk-Error</code> An error message string, i.e. <code>Not Authorized</code></li>\n</ul>\n<h1 id=\"http-status-codes\">HTTP Status Codes</h1>\n<ul>\n<li>200: Success (OK)</li>\n<li>401: Invalid authorization credentials (Unauthorized – Check your API Key)</li>\n<li>403: Not authorized for that action (Forbidden – Check the API Key’s permissions)</li>\n<li>404: Unsupported method or format (Not Found – Check the URL) or object not foudn (Check that the item wasn't deleted)</li>\n<li>405: Other Error (See what’s returned back for more info)</li>\n<li>429: Rate Limit Exceeded (Stop hammering the API for a bit)</li>\n</ul>\n<h1 id=\"rate-limiting\">Rate Limiting</h1>\n<p>In our response headers, we'll include two headers indicating your current hourly API rate limit and how many API calls you have remaining. Please respect these API limits and incrementally back off before you run out of API Calls.</p>\n<p>Response Headers will include:</p>\n<ul>\n<li><code>X-FuseDesk-Usage-Limit</code> How many API calls you get per hour, i.e. <code>1800</code></li>\n<li><code>X-FuseDesk-Usage-Remaining</code> How many API calls you have available, i.e. <code>1712</code></li>\n</ul>\n<h1 id=\"data-formats\">Data Formats</h1>\n<p>Data is currently returned back as JSON</p>\n<p>Dates are returned back as ISO 8601 dates, i.e. <code>2019-02-12T15:19:21+00:00</code></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Error Reporting","slug":"error-reporting"},{"content":"HTTP Status Codes","slug":"http-status-codes"},{"content":"Rate Limiting","slug":"rate-limiting"},{"content":"Data Formats","slug":"data-formats"}],"owner":"11014835","collectionId":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","publishedId":"SztBc8ix","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-05-28T03:51:04.000Z"},"item":[{"name":"Authentication","item":[{"name":"Authorization with HTTP Headers","id":"892e9bdc-9853-4cec-9b9c-e75afeb7d9d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>Your FuseDesk API Key</p>\n","key":"X-FuseDesk-Api-Key","type":"text","value":"YOURAPIKEY","warning":"This is a duplicate header and will be overridden by the X-FuseDesk-Api-Key header generated by Postman."}],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/emails/unassigned","description":"<p>The best way to authenticate an API Call is with an HTTP Header.</p>\n<p>Simply pass your API Key in the header as <code>X-FuseDesk-Api-Key</code>. Note that this is case sensitive.</p>\n<p>In this example, we request unassigned emails using the HTTP Header for authentication.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","emails","unassigned"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"892e9bdc-9853-4cec-9b9c-e75afeb7d9d1"},{"name":"Authorization with HTTP Headers Copy","id":"b3fcae28-4317-4986-ae27-dde121d33294","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>Your FuseDesk API Key</p>\n","key":"X-FuseDesk-Api-Key","type":"text","value":"YOURAPIKEY","warning":"This is a duplicate header and will be overridden by the X-FuseDesk-Api-Key header generated by Postman."}],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/emails/unassigned","description":"<p>The best way to authenticate an API Call is with an HTTP Header.</p>\n<p>Simply pass your API Key in the header as <code>X-FuseDesk-Api-Key</code>. Note that this is case sensitive.</p>\n<p>In this example, we request unassigned emails using the HTTP Header for authentication.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","emails","unassigned"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3fcae28-4317-4986-ae27-dde121d33294"},{"name":"Authorization as a User with Email and Password","event":[{"listen":"test","script":{"id":"524c3625-b8d6-463a-b22b-0ba2b340f8ed","exec":[""],"type":"text/javascript"}}],"id":"968568e1-d3dc-4dd6-8bf9-93c38e8880f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"{{validRepEmail}}\",\n    \"password\": \"{{validRepPassword}}\",\n    \"requestToken\": true,\n    \"md5\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/auth","description":"<p>You can also simply authenticate as a user by POSTing to the <code>/api/v1/auth/</code> endpoint using an <code>email</code> and <code>password</code>. Your session cookie will then be able to take further actions as the logged in user so long as you include your session cookie in subsequent requests.</p>\n<p>You can set <code>requestToken</code> to <code>true</code> to get back a JWT Token for use in future API calls instead.</p>\n<p>You can optionally MD5 encrypt your password before sending and set <code>md5</code> to <code>true</code> .</p>\n","urlObject":{"protocol":"https","path":["api","v1","auth"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"968568e1-d3dc-4dd6-8bf9-93c38e8880f3"},{"name":"Authorization with Bearer Token","id":"a345b923-d5c5-47fd-af0a-f53bd3f59bfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{JwtToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/emails/unassigned","description":"<p>Lastly, you can pass in a JWT Bearer Token in your headers.</p>\n<p>In this example, we request unassigned emails using a bearer token for authentication.</p>\n<p>How do you get a token? Easy! Authenticate as a User using <code>email</code> and <code>password</code> (see above) and include the <code>requestToken</code> param set to <code>true</code>.</p>\n","urlObject":{"protocol":"https","path":["api","v1","emails","unassigned"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a345b923-d5c5-47fd-af0a-f53bd3f59bfe"}],"id":"5a19ddc0-04af-4bf0-8bdc-f6c2626dd060","description":"<p>All of your API calls to the FuseDesk API need to be authorized. Authorization can be done in a number of ways:</p>\n<ul>\n<li>Most commonly with an API Key in your Request Headers.</li>\n<li>An API Key in your query params</li>\n<li>As a authenticated user using a session cookie</li>\n<li>With a JWT Token</li>\n</ul>\n<p>You can create API Keys under Settings in your FuseDesk app.</p>\n<h2 id=\"api-key-permissionsscope\">API Key Permissions/Scope</h2>\n<p>Each API Key can be set with a number of permissions for what it has access to do.</p>\n<p>For example, if you’re putting your API Key on a site where all you want it to be able to do is create a new case, then you can just give that key permission to create cases, but not read any data or do anything but add cases.</p>\n<p>If you’re building a form and want to provide access to your departments list, you can provide permissions to read departments, and so on.</p>\n<p>Generally, pick the most restrictive permission set you need to provide the functionality you need.</p>\n<p>If you’re writing your own app that you want to make available to other folks to access their FuseDesk data via the API, please make sure to let folks know what permissions you require.</p>\n<h2 id=\"authenticating-via-the-api\">Authenticating via the API</h2>\n<p>If you’re using a third party app to access FuseDesk via the FuseDesk API, then all you’ll need to do is paste in your FuseDesk app name and the API Key you created.</p>\n<p>If you’re writing your own script or configuring a more advanced integration, you have a few ways to authenticate.</p>\n<h2 id=\"authenticating-via-http-headers\">Authenticating via HTTP Headers</h2>\n<p>Pass your API Key in the HTTP Headers with the header <code>X-FuseDesk-API-Key</code>. Note that this is case sensitive.</p>\n<p>For example, to get a list of all unassigned emails:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>curl --request GET\n--header \"X-FuseDesk-API-Key: YOURAPIKEY\"\nhttps://YOURAPPNAME.fusedesk.com/api/v1/emails/unassigned\n\n</code></pre><p>Replace YOURAPIKEY with your API Key.</p>\n<h2 id=\"authenticating-via-query-parameter\">Authenticating via Query Parameter</h2>\n<p>Pass your API Key as a GET/POST param with the parameter <code>apikey</code>. Note that this is case sensitive.</p>\n<p>For example, to get a list of unassigned emails:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>curl --request GET\n--data '{\"apikey\":\"YOURAPIKEY\"}'\nhttps://YOURAPPNAME.fusedesk.com/api/v1/emails/unassigned```\n\n</code></pre><p>Replace YOURAPIKEY with your API Key.</p>\n<h2 id=\"authenticating-as-a-user-with-a-cookie\">Authenticating as a User with a Cookie</h2>\n<p>You can also simply authenticate as a user by POSTing to the <code>/api/v1/auth/</code> endpoint using an <code>email</code> and <code>password</code>. Your session cookie will then be able to take further actions as the logged in user so long as you include your session cookie in subsequent requests.</p>\n<h2 id=\"authenticating-with-a-jwt-bearer-token\">Authenticating with a JWT Bearer Token</h2>\n<p>If you logged in with an <code>email</code> and <code>password</code> (see above), you can include a <code>requestToken</code> param set to <code>1</code> to get back a JWT Token that you can use in future API calls.</p>\n<h2 id=\"failed-authentication\">Failed Authentication</h2>\n<p>If your API Key is invalid, or you don’t have permission to do what you’re trying to do, we’ll return back an error.</p>\n","event":[{"listen":"prerequest","script":{"id":"01cd73fe-2f59-44dc-8c5c-692ae6333125","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d682a07c-c1f5-453f-a1ac-27798baad02a","type":"text/javascript","exec":[""]}}],"_postman_id":"5a19ddc0-04af-4bf0-8bdc-f6c2626dd060","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}}},{"name":"Cases","item":[{"name":"Search Cases","id":"312f3a20-e8bb-4bff-a73e-b9d075ced263","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/?contactid&contactUuid&email&companyid&status&limit&offset&orderby&repid&createdByRep&depid&from&subject&date_opened&date_assigned&date_firstresponse&date_closed&date_updated","description":"<p>Search for matching cases.</p>\n<p>For date fields, you have a few options. You can filter by</p>\n<ul>\n<li>On a specific date, i.e. <code>date_opened = '2014-04-16'</code></li>\n<li>Before a date, i.e. <code>date_closed = {\"before\":\"2014-02-14\"}</code></li>\n<li>After a date, i.e. <code>date_assigned = {\"after\":\"2014-05-02\"}</code></li>\n<li>Between two dates, i.e. <code>date_closed = {\"after\":\"2014-04-14\", \"before\":\"2015-05-15\"}</code></li>\n</ul>\n<p>Dates just need to be PHP parsable date strings which means they can be relative dates, too, i.e. <code>-4 days</code> for \"4 days ago\"</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[{"description":{"content":"<p>The CRM Contact ID for a case to be linked to</p>\n","type":"text/plain"},"key":"contactid","value":null},{"description":{"content":"<p>The FuseDesk Contact ID for a case to be linked to</p>\n","type":"text/plain"},"key":"contactUuid","value":null},{"description":{"content":"<p>The email address of a contact for a case to be linked to</p>\n","type":"text/plain"},"key":"email","value":null},{"description":{"content":"<p>The CRM Company ID for a case to be linked to</p>\n","type":"text/plain"},"key":"companyid","value":null},{"description":{"content":"<p>Cases Statuses (CSV). Any of <code>active</code>, <code>new</code>, <code>open</code>, <code>snoozed</code>, or <code>closed</code></p>\n","type":"text/plain"},"key":"status","value":null},{"description":{"content":"<p>How many cases to return. Max of <code>500</code>, default of <code>150</code></p>\n","type":"text/plain"},"key":"limit","value":null},{"description":{"content":"<p>Optional offset for paging. Default of <code>0</code></p>\n","type":"text/plain"},"key":"offset","value":null},{"description":{"content":"<p>How to order your cases. CSV or Array of field names followed by optional <code>asc</code> or <code>desc</code>. Supported fields are <code>status</code>, <code>caseid</code>, <code>contactid</code>, <code>date_opened</code>, <code>date_assigned</code>, <code>date_firstresponse</code>, <code>date_lastresponse</code>, <code>date_updated</code>, <code>date_closed</code>. Example <code>\"status, date_lastresponse desc, date_updated desc\"</code></p>\n","type":"text/plain"},"key":"orderby","value":null},{"description":{"content":"<p>The FuseDesk User ID (int) that the case is assigned to. Can be just an ID, a CSV of IDs, or an Array of IDs.</p>\n","type":"text/plain"},"key":"repid","value":null},{"description":{"content":"<p>The FuseDesk User ID (int) that create the case .Can be just an ID, a CSV of IDs, or an Array of IDs.</p>\n","type":"text/plain"},"key":"createdByRep","value":null},{"description":{"content":"<p>The FuseDesk Department ID (int) that the case is assigned to. Can be just an ID, a CSV of IDs, or an Array of IDs.</p>\n","type":"text/plain"},"key":"depid","value":null},{"description":{"content":"<p>String to search for in who the case is assigned to, i.e. the contact's name.</p>\n","type":"text/plain"},"key":"from","value":null},{"description":{"content":"<p>String to search for in the case title</p>\n","type":"text/plain"},"key":"subject","value":null},{"description":{"content":"<p>The date that a case was opened or date range (see notes above)</p>\n","type":"text/plain"},"key":"date_opened","value":null},{"description":{"content":"<p>The date that a case was assigned or date range (see notes above)</p>\n","type":"text/plain"},"key":"date_assigned","value":null},{"description":{"content":"<p>The date that a case was first responded to or date range (see notes above)</p>\n","type":"text/plain"},"key":"date_firstresponse","value":null},{"description":{"content":"<p>The date that a case was resolved or date range (see notes above)</p>\n","type":"text/plain"},"key":"date_closed","value":null},{"description":{"content":"<p>The date that a case was updated or date range (see notes above)</p>\n","type":"text/plain"},"key":"date_updated","value":null}],"variable":[]}},"response":[],"_postman_id":"312f3a20-e8bb-4bff-a73e-b9d075ced263"},{"name":"Create a Case","id":"760ba74c-07f2-4f43-a057-b0417d12e694","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"openedby","value":"","type":"text","description":"<p>The name of who opened the case, i.e. your customer's name (Required)</p>\n"},{"key":"summary","value":"","type":"text","description":"<p>A short title or description of the case (Required)</p>\n"},{"key":"details","value":"","type":"text","description":"<p>A longer description of what this case is about (Required)</p>\n"},{"key":"depid","value":"","type":"text","description":"<p>The ID of the FuseDesk department this case should be assigned to. (Required)</p>\n"},{"key":"repid","value":"","type":"text","description":"<p>The FuseDesk UserID that the case is assigned to</p>\n"},{"key":"contactUuid","value":"","type":"text","description":"<p>The FuseDesk Contact UUID</p>\n"},{"key":"contactid","value":"","type":"text","description":"<p>The Contact ID from your CRM</p>\n"},{"key":"companyid","value":"","type":"text","description":"<p>The Company ID from your CRM</p>\n"},{"key":"status","value":"","type":"text","description":"<p>The Case status, one of <code>new</code>, <code>open</code>, <code>closed</code>. defaults to <code>new</code></p>\n"},{"key":"casetags","value":"","type":"text","description":"<p>A CSV or Array of FuseDesk Case Tag IDs (ints) and/or Case Tag Names (strings). Any case tags strings not found will be created. For example <code>23,293,New Tag Name</code></p>\n"},{"key":"date_opened","value":"","type":"text","description":"<p>The date/time the case was created</p>\n"},{"key":"date_assigned","value":"","type":"text","description":"<p>The date/time the case was assigned to a rep</p>\n"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/","description":"<p>Create a new FuseDesk Case.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"760ba74c-07f2-4f43-a057-b0417d12e694"},{"name":"Get a Case","id":"7fab000b-8f38-440c-bfa9-c9630e9af8c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId","description":"<p>This loads an entire case and it's case history.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",":caseId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"description":{"content":"<p>Case ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"caseId"}]}},"response":[],"_postman_id":"7fab000b-8f38-440c-bfa9-c9630e9af8c2"},{"name":"Update a Case","id":"62bfa40e-747e-4b05-97cf-c15e84ffe55d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>An updated short title or description of the case </p>\n","key":"summary","type":"text","value":""},{"description":"<p>An updated longer description of what this case is about </p>\n","key":"details","type":"text","value":""},{"description":"<p>The CRM Contact ID to relink the case to</p>\n","key":"contactid","type":"text","value":""},{"description":"<p>The FuseDesk Contact UUID to relink the case to</p>\n","key":"contactUuid","type":"text","value":""},{"description":"<p>The CRM Company ID to relink the case to</p>\n","key":"companyid","type":"text","value":""},{"description":"<p>Status to change the cases to. One of <code>new</code>, <code>open</code>, <code>closed</code>, <code>keepclosed</code>, or <code>unopen</code></p>\n","key":"status","type":"text","value":""},{"description":"<p>The FuseDesk UserID of the rep to transfer the case to</p>\n","key":"repid","type":"text","value":""},{"description":"<p>The ID of the FuseDesk department to transfer the case to</p>\n","key":"depid","type":"text","value":""}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId","description":"<p>This updates an existing case. Just POST the fields you want to update (See Create a Case above for available fields)</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",":caseId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"description":{"content":"<p>Case ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"caseId"}]}},"response":[{"id":"484e56f6-0f62-4640-9f45-e1837ed4a0b2","name":"Transfer a Case","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"repid","value":"17","type":"text","description":"The FuseDesk UserID of the rep to transfer the case to"},{"key":"depid","value":"284","type":"text","description":"The ID of the FuseDesk department to transfer the case to"}]},"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v1","cases",":caseId"],"variable":[{"description":"Case ID","key":"caseId","value":"S183XU48"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"69fdb7a0-fb55-416e-951b-538ed034c565","name":"Relink a Case to a Different Contact","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"contactUuid","value":"d8639622-7bf4-48e8-b15d-869676f563eb","type":"text","description":"The FuseDesk Contact UUID to relink the case to"}],"options":{"raw":{"language":"json"}}},"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v1","cases",":caseId"],"variable":[{"description":"Case ID","key":"caseId","value":"S183XU48"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"6d53a18c-d563-4149-9c77-3d616c156763","name":"Close a Case","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"status","value":"closed","description":"Status to change the cases to. One of `new`, `open`, `closed`, `keepclosed`, or `unopen`","type":"text"}]},"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v1","cases",":caseId"],"variable":[{"description":"Case ID","key":"caseId","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"62bfa40e-747e-4b05-97cf-c15e84ffe55d"},{"name":"Bulk Update Cases","id":"be7213cd-a217-4953-9090-7095216f3356","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/update/?caseids&tagid&status&repid&depid&crmAutomationId&crmTagId&snooze&merge","description":"<p>Use Bulk Update to take bulk actions on a group of cases, for example, changing the case status.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases","update",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[{"description":{"content":"<p>CSV or array of Case IDs to bulk update (Required)</p>\n","type":"text/plain"},"key":"caseids","value":null},{"description":{"content":"<p>Case Tag ID, CSV of Case Tag IDs or an array of Case Tag IDs to apply.</p>\n","type":"text/plain"},"key":"tagid","value":null},{"description":{"content":"<p>Status to change the cases to. One of <code>new</code>, <code>open</code>, <code>closed</code>, <code>keepclosed</code>, or <code>unopen</code></p>\n","type":"text/plain"},"key":"status","value":null},{"description":{"content":"<p>The FuseDesk User ID (int) to reassign the case to. Can be just an ID, a CSV of IDs, or an Array of IDs.</p>\n","type":"text/plain"},"key":"repid","value":null},{"description":{"content":"<p>The FuseDesk Department ID (int) to reassign the case to. Can be just an ID, a CSV of IDs, or an Array of IDs.</p>\n","type":"text/plain"},"key":"depid","value":null},{"description":{"content":"<p>The ID of the CRM Automation to run on each of the linked contacts</p>\n","type":"text/plain"},"key":"crmAutomationId","value":null},{"description":{"content":"<p>The ID of the CRM Tag to apply to each of the linked contacts</p>\n","type":"text/plain"},"key":"crmTagId","value":null},{"description":{"content":"<p>What date/time to snooze the cases until</p>\n","type":"text/plain"},"key":"snooze","value":null},{"description":{"content":"<p>Set to any truthy value to merge the requested cases</p>\n","type":"text/plain"},"key":"merge","value":null}],"variable":[]}},"response":[],"_postman_id":"be7213cd-a217-4953-9090-7095216f3356"},{"name":"Apply a Case Tag","id":"5afd2da9-d6c8-41ee-b93b-41b0d5ddd7bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/tag/:caseTagId","description":"<p>Apply a Case Tag to a FuseDesk Case</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",":caseId","tag",":caseTagId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"caseId"},{"type":"string","value":"","key":"caseTagId"}]}},"response":[],"_postman_id":"5afd2da9-d6c8-41ee-b93b-41b0d5ddd7bc"},{"name":"Remove a Case Tag Copy","id":"f906c62f-77b0-4d26-bd9e-5047d7db8395","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/untag/:caseTagId","description":"<p>Remove a Case Tag from a FuseDesk Case</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",":caseId","untag",":caseTagId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"caseId"},{"type":"string","value":"","key":"caseTagId"}]}},"response":[],"_postman_id":"f906c62f-77b0-4d26-bd9e-5047d7db8395"},{"name":"Add a Case Note","id":"148b96a5-d816-41d4-ad33-a29642287c85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The type of note. <code>note</code> or <code>call</code> (Required)</p>\n","key":"type","type":"text","value":""},{"description":"<p>The title of the note (Required)</p>\n","key":"title","type":"text","value":""},{"description":"<p>The body of the note (Required)</p>\n","key":"note","type":"text","value":""},{"description":"<p>The FuseDesk UserID of the rep that added this note</p>\n","key":"repid","type":"text","value":""},{"description":"<p>The ID of the note template used</p>\n","key":"templateid","type":"text","value":""},{"description":"<p>The status of the case after this note is added. One of <code>new</code>, <code>open</code>, <code>closed</code>.</p>\n","key":"status","type":"text","value":""}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/addnote","description":"<p>Adds a Note to a FuseDesk Case</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",":caseId","addnote"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"caseId"}]}},"response":[],"_postman_id":"148b96a5-d816-41d4-ad33-a29642287c85"},{"name":"Reply to a Case by Email","id":"209dae86-c3c5-404c-aaea-d21e9c551b45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The to line of your email. If an empty string, defaults to the contact's email address. (Required)</p>\n","key":"to","type":"text","value":""},{"description":"<p>The from line of your email. (Required)</p>\n","key":"from","type":"text","value":""},{"description":"<p>The CC line of your email. Can be an empty string. (Required)</p>\n","key":"cc","type":"text","value":""},{"description":"<p>The BCC line of your email. Can be an empty string. (Required)</p>\n","key":"bcc","type":"text","value":""},{"description":"<p>The plain text email body. If not provided, we'll convert <code>html</code> to plain text for you.</p>\n","key":"body","type":"text","value":""},{"description":"<p>The HTML email body. If not provided, we'll convert <code>body</code> to HTML for you.</p>\n","key":"html","type":"text","value":""},{"key":"templateid","value":"","description":"<p>The FuseDesk Email Template ID that you'd like to use either entirely or for defaults.</p>\n","type":"text"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/reply","description":"<p>Replies to a case via email. If you pass in a <code>templateid</code>, you can reply with just the template, or override just certain fields as needed.</p>\n<p>Email addresses for <code>to</code>, <code>from</code>, <code>cc</code>, and <code>bcc</code> can be just an email address like <code>user@domain.tld</code> or a name and email like <code>\"User Name\" &lt;user@domain.tld&gt;</code>.</p>\n<p>The <code>to</code>, <code>from</code>, <code>cc</code>, and <code>bcc</code> fields are all required unless you include a valid Email Template ID (<code>templateid</code>) in which case they all become optional. If provided, the override the template.</p>\n<p><code>to</code>, if an empty string, will default to the contact's email address.</p>\n<p><code>cc</code> and <code>bcc</code> can be empty strings.</p>\n<p>You need one, two, or all three of an HTML Body (<code>html</code>), Plain Text Body (<code>body</code>), and/or an Email Template ID (<code>templateid</code>) to send a reply.</p>\n<p>Valid Merge Fields are allowed in all text fields.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",":caseId","reply"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"caseId"}]}},"response":[{"id":"11f80c57-20a0-42d0-a64c-0d70b5e729d7","name":"Reply to a Case by Email","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"The to line of your email. If an empty string, defaults to the contact's email address. (Required)","key":"to","type":"text","value":"~Contact.emailAddress~"},{"description":"The from line of your email. (Required)","key":"from","type":"text","value":"\"VIP Support\" <support@mybiz.com>"},{"description":"The CC line of your email. Can be an empty string. (Required)","key":"cc","type":"text","value":""},{"description":"The BCC line of your email. Can be an empty string. (Required)","key":"bcc","type":"text","value":""},{"description":"The plain text email body. If not provided, we'll convert `html` to plain text for you.","key":"body","type":"text","value":"Hi! Thanks for your email!"}]},"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/reply","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v1","cases",":caseId","reply"],"variable":[{"key":"caseId","value":"738254"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"emailid\": 2991408\n}"},{"id":"4df0b209-8775-4203-917e-55c2fa30fe48","name":"Reply to a Case by Email (Invalid Template ID)","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"The to line of your email. (Required)","key":"to","type":"text","value":""},{"description":"The from line of your email. (Required)","key":"from","type":"text","value":""},{"description":"The CC line of your email","key":"cc","type":"text","value":""},{"description":"The BCC line of your email","key":"bcc","type":"text","value":""},{"description":"The plain text email body. If not provided, we'll convert `html` to plain text for you.","key":"body","type":"text","value":""},{"description":"The HTML email body. If not provided, we'll convert `body` to HTML for you.","key":"html","type":"text","value":""},{"key":"templateid","value":"123","description":"The FuseDesk Email Template ID that you'd like to use either entirely or for defaults.","type":"text"}]},"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/reply","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v1","cases",":caseId","reply"],"variable":[{"key":"caseId","value":"738254"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-FuseDesk-Error-Code","value":"api_template_notfound"},{"key":"X-FuseDesk-Error","value":"Unable to load the email template with that ID."},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unable to load the email template with that ID.\",\n    \"errorcode\": \"api_template_notfound\"\n}"},{"id":"81cf6069-24e4-4ba7-bf49-84bcebf2c160","name":"Reply to a Case by Email (Missing required params)","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"The to line of your email. (Required)","key":"to","type":"text","value":""},{"description":"The from line of your email. (Required)","key":"from","type":"text","value":""},{"description":"The CC line of your email","key":"cc","type":"text","value":""},{"description":"The BCC line of your email","key":"bcc","type":"text","value":""},{"description":"The plain text email body. If not provided, we'll convert `html` to plain text for you.","key":"body","type":"text","value":""},{"description":"The HTML email body. If not provided, we'll convert `body` to HTML for you.","key":"html","type":"text","value":""},{"key":"templateid","value":"","description":"The FuseDesk Email Template ID that you'd like to use either entirely or for defaults.","type":"text"}]},"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/reply","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v1","cases",":caseId","reply"],"variable":[{"key":"caseId","value":"738254"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-FuseDesk-Error-Code","value":"api_cases_reply_incomplete"},{"key":"X-FuseDesk-Error","value":"You must specify a TemplateID or Body field to reply."},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"You must specify a TemplateID or Body field to reply.\",\n    \"errorcode\": \"api_cases_reply_incomplete\"\n}"}],"_postman_id":"209dae86-c3c5-404c-aaea-d21e9c551b45"},{"name":"Snooze a Case","id":"ba5d9b6a-2cb6-4d74-a798-a69baaa9ce27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The date and time when to snooze the case until. Can be relative, too, i.e. <code>+3 days</code></p>\n","key":"until","type":"text","value":""}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/snooze","description":"<p>Snoozes a FuseDesk Case until a later date and time.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",":caseId","snooze"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"caseId"}]}},"response":[],"_postman_id":"ba5d9b6a-2cb6-4d74-a798-a69baaa9ce27"},{"name":"Get Case Feedback Data","id":"5d926fba-764f-45b4-aaff-e961cc84efee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/feedback/","description":"<p>Returns back the current rating and feedback on a case</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",":caseId","feedback",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"caseId"}]}},"response":[{"id":"d054c1d6-38ec-4de7-be30-ad1ed203cfaa","name":"Get Case Feedback Data","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/feedback/","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v1","cases",":caseId","feedback",""],"variable":[{"key":"caseId","value":"535017"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n\t\"caseid\":535017,\n\t\"rating\":5,\n\t\"feedback\":\"Alice was very helpful!\",\n\t\"date_requestedfeedback\":\"2019-06-03T09:14:42-04:00\",\n\t\"date_rated\":\"2019-05-12T19:47:28-04:00\"\n}"}],"_postman_id":"5d926fba-764f-45b4-aaff-e961cc84efee"},{"name":"Disable Case Feedback","id":"de345295-df28-4851-a914-ff3d6ec3216b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/feedback/dontask","description":"<p>Disables asking for feedback after a case is closed.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",":caseId","feedback","dontask"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"caseId"}]}},"response":[],"_postman_id":"de345295-df28-4851-a914-ff3d6ec3216b"},{"name":"Enable Case Feedback","id":"b55af1e9-0f7d-475d-bc38-0c72a6adc0b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/feedback/doask","description":"<p>Re-enables asking for feedback after a case is closed.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",":caseId","feedback","doask"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"caseId"}]}},"response":[],"_postman_id":"b55af1e9-0f7d-475d-bc38-0c72a6adc0b5"},{"name":"Request Case Feedback Now","id":"796c2bc2-1efc-48d3-abfa-be6ead9045c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/cases/:caseId/feedback/request","description":"<p>Requests feedback on a case right now.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","cases",":caseId","feedback","request"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"caseId"}]}},"response":[],"_postman_id":"796c2bc2-1efc-48d3-abfa-be6ead9045c5"}],"id":"2b98fa6c-65b1-48ce-97a4-c001a6ac6997","description":"<p>Cases are one of the most central objects that you'll work with in the FuseDesk API.</p>\n","event":[{"listen":"prerequest","script":{"id":"c7db95b7-8a85-4e28-9a53-692230a5f9a8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"17bcfa26-e3fb-46ca-93cd-5451ccf55e73","type":"text/javascript","exec":[""]}}],"_postman_id":"2b98fa6c-65b1-48ce-97a4-c001a6ac6997","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}}},{"name":"Emails","item":[{"name":"Search Emails","id":"769f8f25-7063-4f31-8646-82fbd211b994","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/emails/unassigned/?orderby&limit&offset&bodylimit&content&subject&from","description":"<p>Searches all emails.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","emails","unassigned",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[{"description":{"content":"<p>How to sort the emails.</p>\n","type":"text/plain"},"key":"orderby","value":null},{"description":{"content":"<p>How many emails to return</p>\n","type":"text/plain"},"key":"limit","value":null},{"description":{"content":"<p>What email to start with (for paging)</p>\n","type":"text/plain"},"key":"offset","value":null},{"description":{"content":"<p>How many characters of each emails body to return. Defaults to 150.</p>\n","type":"text/plain"},"key":"bodylimit","value":null},{"description":{"content":"<p>Text to search for in the email</p>\n","type":"text/plain"},"key":"content","value":null},{"description":{"content":"<p>Text to search for in the email subject line</p>\n","type":"text/plain"},"key":"subject","value":null},{"description":{"content":"<p>Text to search for in the from part of the email</p>\n","type":"text/plain"},"key":"from","value":null}],"variable":[]}},"response":[],"_postman_id":"769f8f25-7063-4f31-8646-82fbd211b994"},{"name":"Get Unassigned Emails","id":"72da7fca-64ad-44f4-a2de-56b58afaf3a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/emails/unassigned/?orderby&limit&offset&bodylimit&content&subject&from","description":"<p>Gets Unassigned emails</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","emails","unassigned",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[{"description":{"content":"<p>How to sort the emails.</p>\n","type":"text/plain"},"key":"orderby","value":null},{"description":{"content":"<p>How many emails to return</p>\n","type":"text/plain"},"key":"limit","value":null},{"description":{"content":"<p>What email to start with (for paging)</p>\n","type":"text/plain"},"key":"offset","value":null},{"description":{"content":"<p>How many characters of each emails body to return. Defaults to 150.</p>\n","type":"text/plain"},"key":"bodylimit","value":null},{"description":{"content":"<p>Text to search for in the email</p>\n","type":"text/plain"},"key":"content","value":null},{"description":{"content":"<p>Text to search for in the email subject line</p>\n","type":"text/plain"},"key":"subject","value":null},{"description":{"content":"<p>Text to search for in the from part of the email</p>\n","type":"text/plain"},"key":"from","value":null}],"variable":[]}},"response":[],"_postman_id":"72da7fca-64ad-44f4-a2de-56b58afaf3a1"},{"name":"Get Trashed Emails","id":"882483f4-2c9a-4b9f-9f13-acbc6053dc16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/emails/unassigned/?orderby&limit&offset&bodylimit&content&subject&from","description":"<p>Gets emails in the Trash</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","emails","unassigned",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[{"description":{"content":"<p>How to sort the emails.</p>\n","type":"text/plain"},"key":"orderby","value":null},{"description":{"content":"<p>How many emails to return</p>\n","type":"text/plain"},"key":"limit","value":null},{"description":{"content":"<p>What email to start with (for paging)</p>\n","type":"text/plain"},"key":"offset","value":null},{"description":{"content":"<p>How many characters of each emails body to return. Defaults to 150.</p>\n","type":"text/plain"},"key":"bodylimit","value":null},{"description":{"content":"<p>Text to search for in the email</p>\n","type":"text/plain"},"key":"content","value":null},{"description":{"content":"<p>Text to search for in the email subject line</p>\n","type":"text/plain"},"key":"subject","value":null},{"description":{"content":"<p>Text to search for in the from part of the email</p>\n","type":"text/plain"},"key":"from","value":null}],"variable":[]}},"response":[],"_postman_id":"882483f4-2c9a-4b9f-9f13-acbc6053dc16"},{"name":"Get an Email","id":"7ad42157-6c3f-4962-bf2e-8aebbb4bb5bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/emails/:emailId","description":"<p>Request a specific email</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","emails",":emailId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"emailId"}]}},"response":[],"_postman_id":"7ad42157-6c3f-4962-bf2e-8aebbb4bb5bc"}],"id":"bce26aad-4ec3-4ee4-9873-82d1a5b8bbd2","description":"<p>The Emails API endpoint allows you to search for matching emails or get an individual email.</p>\n<p>If you want to send an email or reply by email, you'll need a case first and then you can reply to the case via email using the Cases API endpoint.</p>\n","event":[{"listen":"prerequest","script":{"id":"fcbe8354-2e4f-4ff2-a19f-7a6ff8da9c82","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ed043176-b14a-4ef7-8ed2-e954a5d1155f","type":"text/javascript","exec":[""]}}],"_postman_id":"bce26aad-4ec3-4ee4-9873-82d1a5b8bbd2","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}}},{"name":"Reps (V2)","item":[{"name":"Get All Reps","id":"c90bfd4d-9356-4f30-926d-38df875f1fab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/reps/","description":"<p>Get all reps, both active and disabled</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","reps",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"84c7a870-1257-4fa5-8479-9735367c43d7","name":"Get All Reps (Unauthoried)","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/reps/"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-FuseDesk-Error-Code","value":"api_error_unauthorized"},{"key":"X-FuseDesk-Error","value":"Unauthorized"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorized\",\n    \"errorcode\": \"api_error_unauthorized\",\n}"},{"id":"90908b3d-56d2-4b0f-b7ff-201b634b90c4","name":"Get All Reps","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/reps/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"userId\": 1,\n        \"firstName\": \"Bob\",\n        \"lastName\": \"Test\",\n        \"emailAddress\": \"bob.test@mail.com\",\n        \"signatureText\": \"Bob Test\\nemail@example.com\",\n        \"dateLastLogin\": \"2017-11-02T16:02:11-04:00\",\n        \"dateDeactivated\": null,\n        \"timeZone\": \"America/Los_Angeles\",\n        \"defaultDepartmentId\": 273,\n        \"emailDailyUpdate\": false,\n        \"avatarUrl\": \"https://secure.gravatar.com/avatar/9ad34fd714cc35922362a75383376d76?d=robohash\",\n        \"crmUserId\": null,\n        \"active\": true,\n        \"username\": \"bob.test@mail.com\",\n        \"repid\": 432\n    },\n    {\n        \"userId\": 2,\n        \"firstName\": \"Kelly\",\n        \"lastName\": \"Cafferty\",\n        \"emailAddress\": \"kelly@somewhere.net\",\n        \"signatureText\": \"Your Happy Signature\",\n        \"dateLastLogin\": \"2012-05-02T11:37:45-04:00\",\n        \"dateDeactivated\": \"2018-08-01T23:16:06-04:00\",\n        \"timeZone\": \"America/New_York\",\n        \"defaultDepartmentId\": 268,\n        \"emailDailyUpdate\": false,\n        \"avatarUrl\": \"https://secure.gravatar.com/avatar/d98f2df513e0fe91d24f9a63a11cd375?d=robohash\",\n        \"crmUserId\": 2,\n        \"active\": false,\n        \"username\": \"kcx\",\n        \"repid\": 433\n    }\n]"}],"_postman_id":"c90bfd4d-9356-4f30-926d-38df875f1fab"},{"name":"Get a Rep","id":"dd2745a5-1205-4043-b00a-324d7aff1b4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/reps/:userId","description":"<p>Request an individual rep full rep profile</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","reps",":userId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"description":{"content":"<p>Rep's User ID in FuseDesk</p>\n","type":"text/plain"},"type":"string","value":"","key":"userId"}]}},"response":[{"id":"02cefe39-7e8d-4136-939a-20b432838606","name":"Get a Rep (Not Found)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v2/reps/:userId","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v2","reps",":userId"],"variable":[{"key":"userId","value":"17382"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Rep not found\",\n    \"errorcode\": \"api_reps_notfound\"\n}"},{"id":"4469e7fe-34f8-424b-abcd-c0670bf19e45","name":"Get a Rep","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v2/reps/:userId","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v2","reps",":userId"],"variable":[{"key":"userId","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"userId\": 2,\n    \"firstName\": \"Kelly\",\n    \"lastName\": \"Cafferty\",\n    \"emailAddress\": \"jeremy-infusionsoftb@asandia.com\",\n    \"signatureText\": \"Kelly\\nAccounting\",\n    \"dateLastLogin\": \"2012-05-02T11:37:45-04:00\",\n    \"dateDeactivated\": null,\n    \"timeZone\": \"America/New_York\",\n    \"defaultDepartmentId\": 268,\n    \"avatarUrl\": \"https://secure.gravatar.com/avatar/d98f2df513e0fe91d24f9a63a11cd375?d=robohash\",\n    \"crmUserId\": 2,\n    \"active\": true,\n    \"username\": \"kcx\",\n    \"repid\": 433,\n    \"signatureHtml\": \"Kelly<br/>\\nAccounting\",\n    \"isAdmin\": false,\n    \"showCaseLog\": true,\n    \"caseRestrict\": \"department\"\n}"}],"_postman_id":"dd2745a5-1205-4043-b00a-324d7aff1b4f"}],"id":"b21c1c8e-a4f5-44cb-acc5-ebde37e70971","description":"<p>The FuseDesk v2 API Endpoint for Reps allows you to do everything you need with FuseDesk Reps (aka Users or Team Members)</p>\n","_postman_id":"b21c1c8e-a4f5-44cb-acc5-ebde37e70971","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}}},{"name":"Contacts (V2)","item":[{"name":"Search Contacts","id":"77197b55-cc58-4087-b0da-c1f449292d8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/contacts/?search=","description":"<p>Search all of your FuseDesk (and if linked, CRM) contacts.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","contacts",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[{"description":{"content":"<p>Text to search for</p>\n","type":"text/plain"},"key":"search","value":""}],"variable":[]}},"response":[{"id":"63882b60-b78c-48b9-bb84-147e679b6ac3","name":"Search Contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v2/contacts/?search=bob","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v2","contacts",""],"query":[{"key":"search","value":"bob","description":"Text to search for"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"0e6d4f95-d3c5-4912-8863-60daf1932a33\",\n        \"firstName\": \"Bob\",\n        \"lastName\": \"Boberton\",\n        \"emailAddress\": \"bob@boberton.bob\",\n        \"emailAddress2\": \"\",\n        \"emailAddress3\": \"\",\n        \"phone1\": \"\",\n        \"phoneExt1\": null,\n        \"phone2\": \"\",\n        \"phoneExt2\": null,\n        \"timeZone\": \"\",\n        \"website\": \"\",\n        \"street1Billing\": \"\",\n        \"street2Billing\": \"\",\n        \"cityBilling\": \"\",\n        \"stateBilling\": \"\",\n        \"postalBilling\": \"\",\n        \"countryBilling\": \"\",\n        \"company\": \"\",\n        \"dateCreated\": \"2020-05-13T17:05:01+00:00\",\n        \"dateUpdated\": \"2020-05-13T17:05:02+00:00\",\n        \"dateDeleted\": null,\n        \"dateSynced\": null,\n        \"createdBy\": 15,\n        \"updatedBy\": 15,\n        \"deletedBy\": null,\n        \"crmId\": 1536\n    },\n    {\n        \"id\": \"4a2ab1e7-216f-4b31-8320-ce2b44adbb97\",\n        \"firstName\": \"Bob\",\n        \"lastName\": \"Tester\",\n        \"emailAddress\": \"bobtestington@gmail.com\",\n        \"emailAddress2\": \"\",\n        \"emailAddress3\": \"\",\n        \"phone1\": \"\",\n        \"phoneExt1\": null,\n        \"phone2\": \"\",\n        \"phoneExt2\": null,\n        \"timeZone\": \"\",\n        \"website\": \"\",\n        \"street1Billing\": \"\",\n        \"street2Billing\": \"\",\n        \"cityBilling\": \"\",\n        \"stateBilling\": \"\",\n        \"postalBilling\": \"\",\n        \"countryBilling\": \"\",\n        \"company\": \"FuseDesk Contact also in CRM\",\n        \"dateCreated\": \"2020-02-06T20:57:27+00:00\",\n        \"dateUpdated\": \"2020-02-10T17:12:14+00:00\",\n        \"dateDeleted\": null,\n        \"dateSynced\": \"2020-02-10T17:12:14+00:00\",\n        \"createdBy\": 15,\n        \"updatedBy\": 15,\n        \"deletedBy\": null,\n        \"crmId\": 1154\n    },\n    {\n        \"firstName\": \"Bob\",\n        \"lastName\": \"CRM Contact not in FuseDesk\",\n        \"crmId\": 1490,\n        \"emailAddress\": \"bobtest@test.test\",\n        \"phone1\": \"    \",\n        \"company\": \"\",\n        \"cityBilling\": \"\",\n        \"stateBilling\": \"\",\n        \"dateCreated\": \"2020-04-28T12:15:08+00:00\",\n        \"id\": null\n    }\n]"},{"id":"f22afdf4-df52-4327-adf2-65693f66a465","name":"Search Contacts (Error without a search query)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v2/contacts/?search","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v2","contacts",""],"query":[{"key":"search","value":null,"description":"Text to search for"}]}},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"X-FuseDesk-Error-Code","value":"api_contacts_missingid"},{"key":"X-FuseDesk-Error","value":"You must specify a Contact ID or Query"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"You must specify a Contact ID or Query\",\n    \"errorcode\": \"api_contacts_missingid\"\n}"}],"_postman_id":"77197b55-cc58-4087-b0da-c1f449292d8f"},{"name":"Get a Contact","id":"bd3381b3-f9e7-47eb-a516-f30756c55473","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/contacts/:contactId","description":"<p>Request a FuseDesk contact by UUID.</p>\n<p>If the contact is linked to a contact in your CRM or a matching contact is found in your CRM, we'll merge in any CRM changes into the returned contact.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","contacts",":contactId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"description":{"content":"<p>FuseDesk Contact's UUID</p>\n","type":"text/plain"},"type":"string","value":"","key":"contactId"}]}},"response":[],"_postman_id":"bd3381b3-f9e7-47eb-a516-f30756c55473"},{"name":"Update a Contact","id":"17df2743-b569-4e07-9e5a-85ce25bae6d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstName","value":"","type":"text","description":"<p>First Name</p>\n"},{"key":"lastName","value":"","type":"text","description":"<p>Last Name</p>\n"},{"key":"emailAddress","value":"","type":"text","description":"<p>Primary Email Address</p>\n"},{"key":"emailAddress2","value":"","type":"text","description":"<p>Secondary Email Address</p>\n"},{"key":"emailAddress3","value":"","type":"text","description":"<p>Tirtiary Email Address</p>\n"},{"key":"phone1","value":"","type":"text","description":"<p>Primary Phone Number</p>\n"},{"key":"phoneExt1","value":"","type":"text","description":"<p>Primary Phone Number Extension</p>\n"},{"key":"phone2","value":"","type":"text","description":"<p>Secondary Phone Number</p>\n"},{"key":"phoneExt2","value":"","type":"text","description":"<p>Secondary Phone Number Extension</p>\n"},{"key":"company","value":"","type":"text","description":"<p>Company / Business Name</p>\n"},{"key":"timeZone","value":"","type":"text","description":"<p>Time Zone</p>\n"},{"key":"website","value":"","type":"text","description":"<p>Website URL</p>\n"},{"key":"street1Billing","value":"","type":"text","description":"<p>Billing Address Street, Line 1</p>\n"},{"key":"street2Billing","value":"","type":"text","description":"<p>Billing Address Street, Line 2</p>\n"},{"key":"cityBilling","value":"","type":"text","description":"<p>Billing Address City</p>\n"},{"key":"stateBilling","value":"","type":"text","description":"<p>Billing Address State / Region</p>\n"},{"key":"postalBilling","value":"","type":"text","description":"<p>Billing Address Postal / Zip Code</p>\n"},{"key":"countryBilling","value":"","type":"text","description":"<p>Billing Address Country</p>\n"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v2/contacts/:contactId","description":"<p>Update a FuseDesk contact. POST just the fields that you'd like to update.</p>\n<p>If the contact is linked to a contact in your CRM or a matching contact is found in your CRM, we'll update the contact in your CRM, too.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","contacts",":contactId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"description":{"content":"<p>FuseDesk Contact's UUID</p>\n","type":"text/plain"},"type":"string","value":"4a2ab1e7-216f-4b31-8320-ce2b44adbb97","key":"contactId"}]}},"response":[{"id":"bcf2666b-073c-4f89-bafd-b7104c126e31","name":"Update a Contact (Invalid ID)","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v2/contacts/:contactId","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v2","contacts",":contactId"],"variable":[{"description":"FuseDesk Contact's UUID","key":"contactId","value":"sdfd"}]}},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"X-FuseDesk-Error-Code","value":"fdapp_error_invalidfield"},{"key":"X-FuseDesk-Error","value":"id is invalid"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"id is invalid\",\n    \"errorcode\": \"fdapp_error_invalidfield\"\n}"},{"id":"f831f23b-5f4a-4cf2-a4af-4beff292457f","name":"Update a Contact","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"lastName","value":"Updated Last Name","type":"text"},{"key":"phone1","value":"508-555-1212","type":"text"}]},"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v2/contacts/:contactId","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v2","contacts",":contactId"],"variable":[{"description":"FuseDesk Contact's UUID","key":"contactId","value":"4a2ab1e7-216f-4b31-8320-ce2b44adbb97"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"4a2ab1e7-216f-4b31-8320-ce2b44adbb97\",\n    \"firstName\": \"Bob\",\n    \"lastName\": \"Updated Last Name\",\n    \"emailAddress\": \"fdsusietester@gmail.com\",\n    \"emailAddress2\": \"\",\n    \"emailAddress3\": \"\",\n    \"phone1\": \"508-555-1212\",\n    \"phoneExt1\": null,\n    \"phone2\": \"\",\n    \"phoneExt2\": null,\n    \"timeZone\": \"\",\n    \"website\": \"\",\n    \"street1Billing\": \"\",\n    \"street2Billing\": \"\",\n    \"cityBilling\": \"\",\n    \"stateBilling\": \"\",\n    \"postalBilling\": \"\",\n    \"countryBilling\": \"\",\n    \"company\": \"\",\n    \"dateCreated\": \"2020-02-06T20:57:27+00:00\",\n    \"dateUpdated\": \"2020-05-27T21:34:59+00:00\",\n    \"dateDeleted\": null,\n    \"dateSynced\": \"2020-05-27T21:34:59+00:00\",\n    \"createdBy\": 15,\n    \"updatedBy\": 0,\n    \"deletedBy\": null,\n    \"crmId\": \"1154\",\n    \"caseCountContact\": 1,\n    \"caseCountCompany\": 0\n}"}],"_postman_id":"17df2743-b569-4e07-9e5a-85ce25bae6d4"},{"name":"Create a New Contact","id":"39b23fd9-d985-4daa-bc3e-ba60e20eee95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>First Name</p>\n","key":"firstName","type":"text","value":""},{"description":"<p>Last Name</p>\n","key":"lastName","type":"text","value":""},{"description":"<p>Primary Email Address</p>\n","key":"emailAddress","type":"text","value":""},{"description":"<p>Secondary Email Address</p>\n","key":"emailAddress2","type":"text","value":""},{"description":"<p>Tirtiary Email Address</p>\n","key":"emailAddress3","type":"text","value":""},{"description":"<p>Primary Phone Number</p>\n","key":"phone1","type":"text","value":""},{"description":"<p>Primary Phone Number Extension</p>\n","key":"phoneExt1","type":"text","value":""},{"description":"<p>Secondary Phone Number</p>\n","key":"phone2","type":"text","value":""},{"description":"<p>Secondary Phone Number Extension</p>\n","key":"phoneExt2","type":"text","value":""},{"description":"<p>Company / Business Name</p>\n","key":"company","type":"text","value":""},{"description":"<p>Time Zone</p>\n","key":"timeZone","type":"text","value":""},{"description":"<p>Website URL</p>\n","key":"website","type":"text","value":""},{"description":"<p>Billing Address Street, Line 1</p>\n","key":"street1Billing","type":"text","value":""},{"description":"<p>Billing Address Street, Line 2</p>\n","key":"street2Billing","type":"text","value":""},{"description":"<p>Billing Address City</p>\n","key":"cityBilling","type":"text","value":""},{"description":"<p>Billing Address State / Region</p>\n","key":"stateBilling","type":"text","value":""},{"description":"<p>Billing Address Postal / Zip Code</p>\n","key":"postalBilling","type":"text","value":""},{"description":"<p>Billing Address Country</p>\n","key":"countryBilling","type":"text","value":""}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v2/contacts/","description":"<p>Create a FuseDesk contact. POST just the fields that you need.</p>\n<p>If a matching contact is found in your CRM, we'll link up the contacts. If not, we'll create the contact in your CRM, too.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","contacts",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"7afc0c4f-069d-4f27-988f-060a3d2ed628","name":"Create a New Contact","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstName","value":"Robert","type":"text"},{"key":"phone1","value":"508-555-1212","type":"text"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v2/contacts/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"4a2ab1e7-216f-4b31-8320-ce2b44adbb91\",\n    \"firstName\": \"Robert\",\n    \"lastName\": \"\",\n    \"emailAddress\": \"\",\n    \"emailAddress2\": \"\",\n    \"emailAddress3\": \"\",\n    \"phone1\": \"508-555-1212\",\n    \"phoneExt1\": null,\n    \"phone2\": \"\",\n    \"phoneExt2\": null,\n    \"timeZone\": \"\",\n    \"website\": \"\",\n    \"street1Billing\": \"\",\n    \"street2Billing\": \"\",\n    \"cityBilling\": \"\",\n    \"stateBilling\": \"\",\n    \"postalBilling\": \"\",\n    \"countryBilling\": \"\",\n    \"company\": \"\",\n    \"dateCreated\": \"2020-02-06T20:57:27+00:00\",\n    \"dateUpdated\": \"2020-02-06T20:57:27+00:00\",\n    \"dateDeleted\": null,\n    \"dateSynced\": null,\n    \"createdBy\": 15,\n    \"updatedBy\": 0,\n    \"deletedBy\": null,\n    \"crmId\": null,\n    \"caseCountContact\": 0,\n    \"caseCountCompany\": 0\n}"}],"_postman_id":"39b23fd9-d985-4daa-bc3e-ba60e20eee95"}],"id":"f0c4ce87-1db4-4bfd-8934-6862735b9834","description":"<p>The Contacts API Endpoint allows you to work with FuseDesk contacts - and if you're CRM is connected, your CRM contacts, too!</p>\n","event":[{"listen":"prerequest","script":{"id":"3d40dcb8-de2c-46bc-b737-d44fb117bc61","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ff9b7ae3-af76-4d07-a3fd-a84a52f46341","type":"text/javascript","exec":[""]}}],"_postman_id":"f0c4ce87-1db4-4bfd-8934-6862735b9834","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}}},{"name":"Case Tags","item":[{"name":"Get Case Tags","id":"11e964aa-3203-4a83-92cb-42c79a682380","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/casetags/","description":"<p>Get all of your Case Tags</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","casetags",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"1678f720-50fa-423e-b007-5c91c07e9a9d","name":"Get Case Tags","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/casetags/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2168,\n        \"tagname\": \"Feedback\",\n        \"totalcases\": 21\n    },\n    {\n        \"id\": 2173,\n        \"tagname\": \"A different tag\",\n        \"totalcases\": 10\n    },\n    {\n        \"id\": 2119,\n        \"tagname\": \"VIP Case\",\n        \"totalcases\": 6\n    }\n]"}],"_postman_id":"11e964aa-3203-4a83-92cb-42c79a682380"},{"name":"Create a New Case Tag","id":"05f9241b-de05-4355-960e-74c194639017","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"tagname","value":"","description":"<p>The name of your new tag</p>\n","type":"text"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/casetags/","description":"<p>Create a new Case Tag in FuseDesk.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","casetags",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"487f6fa0-9369-460d-8073-90c38b78c8d4","name":"Create a New Case Tag","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"tagname","value":"New Tag!","description":"The name of your new tag","type":"text"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/casetags/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"tagid\": 2470,\n    \"tagname\": \"New Tag!\"\n}"}],"_postman_id":"05f9241b-de05-4355-960e-74c194639017"},{"name":"Delete a Case Tag","id":"c1ae161d-bdad-40bc-9ac8-e1d28bd9f931","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/casetags/:caseTagId","description":"<p>Deleting a Case Tag Archives it.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","casetags",":caseTagId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"caseTagId"}]}},"response":[{"id":"186fe31b-7936-4e31-9e1d-3d5f50fab6a4","name":"Deletes a Case Tag","originalRequest":{"method":"DELETE","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/casetags/2470"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"c1ae161d-bdad-40bc-9ac8-e1d28bd9f931"}],"id":"019d466a-3ee7-444c-b703-0941bfbd2506","description":"<p>Case Tags in FuseDesk allow you to organize your cases, making them easier to find and track. Case Tags allow you to trigger FuseDesk Automations.</p>\n<p>If you'd like to apply case tags to or remove case tags from a case, use the Cases API Endpoint.</p>\n","event":[{"listen":"prerequest","script":{"id":"a9c24f8d-e290-48e7-a00d-a614b7641a50","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"324e2a1f-c0ac-46a7-8e52-0527e7f72f16","type":"text/javascript","exec":[""]}}],"_postman_id":"019d466a-3ee7-444c-b703-0941bfbd2506","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}}},{"name":"Departments (V1)","item":[{"name":"Get All Active Departments","id":"20007400-d451-40a1-aff2-2ce376a86771","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/departments/","description":"<p>Get a list of all active departments in your FuseDesk app.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","departments",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"78e12b62-5065-41a6-a4f3-7cf787ff78d5","name":"Get All Active Departments","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/departments/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"departmentid\": 273,\n        \"name\": \"VIP Support\",\n        \"repids\": [\n            1,\n            4,\n            14,\n            15,\n            25,\n            27\n        ],\n        \"allreps\": true,\n        \"replytemplate\": 3828,\n        \"templatecategory\": \"Support FuseDesk\",\n        \"stalewarning\": 40,\n        \"stale\": 44,\n        \"feedbackdelay\": 1,\n        \"feedbacksample\": 100,\n        \"feedbacktemplate\": 5278,\n        \"feedbackfrequency\": 28,\n        \"phone\": null,\n        \"date_removed\": false\n    },\n    {\n        \"departmentid\": 268,\n        \"name\": \"Support\",\n        \"repids\": [\n            1,\n            15,\n            27,\n            4\n        ],\n        \"allreps\": false,\n        \"replytemplate\": 4513,\n        \"templatecategory\": \"Support FuseDesk\",\n        \"stalewarning\": 24,\n        \"stale\": 48,\n        \"feedbackdelay\": 1,\n        \"feedbacksample\": 50,\n        \"feedbacktemplate\": 4947,\n        \"feedbackfrequency\": 0,\n        \"phone\": \"+5559925555\",\n        \"date_removed\": false\n    }\n]"}],"_postman_id":"20007400-d451-40a1-aff2-2ce376a86771"},{"name":"Get ALL Departments","id":"e787a070-c86e-401b-a3f0-6333dc7ebd64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/departments/all/","description":"<p>Get all departments, including archived departments.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","departments","all",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"67bd64a9-4488-44a7-928c-f52782c755f4","name":"Get ALL Departments","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/departments/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"departmentid\": 273,\n        \"name\": \"VIP Support\",\n        \"repids\": [\n            1,\n            4,\n            14,\n            15,\n            25,\n            27\n        ],\n        \"allreps\": true,\n        \"replytemplate\": 3828,\n        \"templatecategory\": \"Support FuseDesk\",\n        \"stalewarning\": 40,\n        \"stale\": 44,\n        \"feedbackdelay\": 1,\n        \"feedbacksample\": 100,\n        \"feedbacktemplate\": 5278,\n        \"feedbackfrequency\": 28,\n        \"phone\": null,\n        \"date_removed\": false\n    },\n    {\n        \"departmentid\": 268,\n        \"name\": \"Support\",\n        \"repids\": [\n            1,\n            15,\n            27,\n            4\n        ],\n        \"allreps\": false,\n        \"replytemplate\": 4513,\n        \"templatecategory\": \"Support FuseDesk\",\n        \"stalewarning\": 24,\n        \"stale\": 48,\n        \"feedbackdelay\": 1,\n        \"feedbacksample\": 50,\n        \"feedbacktemplate\": 4947,\n        \"feedbackfrequency\": 0,\n        \"phone\": \"+5559925555\",\n        \"date_removed\": false\n    },\n    {\n        \"departmentid\": 624,\n        \"name\": \"A Deleted Department\",\n        \"repids\": [\n            1,\n            4,\n            14,\n            15,\n            25,\n            27\n        ],\n        \"allreps\": true,\n        \"replytemplate\": 37,\n        \"templatecategory\": null,\n        \"stalewarning\": 36,\n        \"stale\": 72,\n        \"feedbackdelay\": 0,\n        \"feedbacksample\": 20,\n        \"feedbacktemplate\": null,\n        \"feedbackfrequency\": 0,\n        \"phone\": null,\n        \"date_removed\": \"2020-05-09T17:18:38-04:00\"\n    }\n]"}],"_postman_id":"e787a070-c86e-401b-a3f0-6333dc7ebd64"},{"name":"Create a Department","id":"a1cf511a-4145-4728-b50d-70d387b92544","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The name of your new department</p>\n","key":"name","type":"text","value":""}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/departments/","description":"<p>Create a Department in FuseDesk.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","departments",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"0e2761c3-1d1a-4927-9193-64e1e9a7f132","name":"Create a Department","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"The name of your new department","key":"name","type":"text","value":"Tier 2 Tech Support"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/departments/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"departmentid\": 690\n}"}],"_postman_id":"a1cf511a-4145-4728-b50d-70d387b92544"},{"name":"Get a Department","id":"514c6c9d-0235-4b8b-b34e-2cc2ffbde59a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/departments/:departmentId","description":"<p>Get a Department in FuseDesk.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","departments",":departmentId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"departmentId"}]}},"response":[{"id":"a566e53b-7e96-4f36-be7e-6e4d8276d3e8","name":"Get a Department","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/departments/273"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"departmentid\": 273,\n    \"name\": \"VIP Support\",\n    \"repids\": [\n        1,\n        4,\n        14,\n        15,\n        25,\n        27\n    ],\n    \"allreps\": true,\n    \"replytemplate\": 3828,\n    \"templatecategory\": \"Support FuseDesk\",\n    \"stalewarning\": 40,\n    \"stale\": 44,\n    \"feedbackdelay\": 1,\n    \"feedbacksample\": 100,\n    \"feedbacktemplate\": 5278,\n    \"feedbackfrequency\": 28,\n    \"phone\": null,\n    \"date_removed\": false\n}"}],"_postman_id":"514c6c9d-0235-4b8b-b34e-2cc2ffbde59a"},{"name":"Update a Department","id":"75f77c5a-59dd-4653-b2be-7cb602ab921a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>Array or CSV    of the rep IDs you want in the department. Set to <code>*</code> for All Current and Future Reps</p>\n","key":"reps","type":"text","value":""},{"description":"<p>The FuseDesk Email Template ID (int) to use as the default reply template</p>\n","key":"replytemplate","type":"text","value":""},{"description":"<p>The FuseDesk Email Template category (string) to use by default.</p>\n","key":"templatecategory","type":"text","value":""},{"description":"<p>How many hours (int) to wait before a case goes from green to yellow</p>\n","key":"stalewarning","type":"text","value":""},{"description":"<p>How many hours (int) to wait before a case goes from yellow to red</p>\n","key":"stale","type":"text","value":""},{"description":"<p>How many days (int) to wait after a case is closed before asking for feedback</p>\n","key":"feedbackdelay","type":"text","value":""},{"description":"<p>The FuseDesk Email Template ID (int) to send when asking for feedback</p>\n","key":"feedbacktemplate","type":"text","value":""},{"description":"<p>What percent of cases (int, 0-100) to request feedback on</p>\n","key":"feedbacksample","type":"text","value":""}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/departments/:departmentId","description":"<p>Send in just the fields you'd like to update.</p>\n<p><em>Note that departments can not be renamed after they are created.</em></p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","departments",":departmentId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"departmentId"}]}},"response":[],"_postman_id":"75f77c5a-59dd-4653-b2be-7cb602ab921a"}],"id":"736fd528-5c31-4397-8a07-951625ae353a","description":"<p>This is the legacy v1 version of our Departments API endpoint. It is still supported but you should ideally use our newer v2 API endpoint.</p>\n<p>Use the departments API endpoint to create, update, and get info on all or one department.</p>\n","event":[{"listen":"prerequest","script":{"id":"dc2bae3b-7751-4085-8419-d99d0edec808","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a549a8a7-8252-4ff7-80a8-3d5547572d9b","type":"text/javascript","exec":[""]}}],"_postman_id":"736fd528-5c31-4397-8a07-951625ae353a","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}}},{"name":"Departments (V2)","item":[{"name":"Get All Active Departments","id":"0c956f60-09e1-4cce-9a74-8ed477a786e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/","description":"<p>Get a list of all active departments in FuseDesk.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","departments",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"c2796761-8d5c-4002-b8f3-77cf2d95288a","name":"Get All Active Departments","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 273,\n        \"name\": \"VIP Support\",\n        \"repUserIds\": [\n            1,\n            4,\n            14,\n            15,\n            25,\n            27\n        ],\n        \"allReps\": true,\n        \"replyTemplateId\": 3828,\n        \"templateCategory\": \"Support FuseDesk\",\n        \"staleWarning\": 40,\n        \"stale\": 44,\n        \"feedbackDelay\": 1,\n        \"feedbackSample\": 100,\n        \"feedbackTemplateId\": 5278,\n        \"feedbackFrequency\": 28,\n        \"phone\": null,\n        \"dateCreated\": \"2012-04-30T01:55:38-04:00\",\n        \"dateArchived\": null\n    },\n    {\n        \"id\": 268,\n        \"name\": \"Support\",\n        \"repUserIds\": [\n            1,\n            15,\n            27,\n            4\n        ],\n        \"allReps\": false,\n        \"replyTemplateId\": 4513,\n        \"templateCategory\": \"Support FuseDesk\",\n        \"staleWarning\": 24,\n        \"stale\": 48,\n        \"feedbackDelay\": 1,\n        \"feedbackSample\": 50,\n        \"feedbackTemplateId\": 4947,\n        \"feedbackFrequency\": 0,\n        \"phone\": \"+5559925555\",\n        \"dateCreated\": \"2019-04-30T07:19:18-04:00\",\n        \"dateArchived\": false\n    }\n]"}],"_postman_id":"0c956f60-09e1-4cce-9a74-8ed477a786e2"},{"name":"Get All Archived Departments","id":"05e66073-09b6-48ac-a341-89c2122b0002","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/archived/","description":"<p>Request a list of all departments that have been archived.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","departments","archived",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"c55cf70c-6ce4-493b-ad6e-433c66d79505","name":"Get All Archived Departments","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/archived/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 624,\n        \"name\": \"A Deleted Department\",\n        \"repUserIds\": [\n            1,\n            4,\n            14,\n            15,\n            25,\n            27\n        ],\n        \"allReps\": true,\n        \"replyTemplateId\": 37,\n        \"templateCategory\": null,\n        \"staleWarning\": 36,\n        \"stale\": 72,\n        \"feedbackDelay\": 0,\n        \"feedbackSample\": 20,\n        \"feedbackTemplateId\": null,\n        \"feedbackFrequency\": 0,\n        \"phone\": null,\n        \"dateCreated\": \"2015-08-31T16:51:22-04:00\",\n        \"dateArchived\": \"2020-05-09T17:18:38-04:00\"\n    }\n]"}],"_postman_id":"05e66073-09b6-48ac-a341-89c2122b0002"},{"name":"Get ALL Departments","id":"6ce5c727-d6c9-470a-b9c7-179ee85e123f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/all/","description":"<p>Get all departments, including archived departments.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","departments","all",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"e0d12eee-9f42-4a60-a6a2-0694fa0390d4","name":"Get ALL Departments","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 273,\n        \"name\": \"VIP Support\",\n        \"repUserIds\": [\n            1,\n            4,\n            14,\n            15,\n            25,\n            27\n        ],\n        \"allReps\": true,\n        \"replyTemplateId\": 3828,\n        \"templateCategory\": \"Support FuseDesk\",\n        \"staleWarning\": 40,\n        \"stale\": 44,\n        \"feedbackDelay\": 1,\n        \"feedbackSample\": 100,\n        \"feedbackTemplateId\": 5278,\n        \"feedbackFrequency\": 28,\n        \"phone\": null,\n        \"dateCreated\": \"2012-04-30T01:55:38-04:00\",\n        \"dateArchived\": null\n    },\n    {\n        \"id\": 268,\n        \"name\": \"Support\",\n        \"repUserIds\": [\n            1,\n            15,\n            27,\n            4\n        ],\n        \"allReps\": false,\n        \"replyTemplateId\": 4513,\n        \"templateCategory\": \"Support FuseDesk\",\n        \"staleWarning\": 24,\n        \"stale\": 48,\n        \"feedbackDelay\": 1,\n        \"feedbackSample\": 50,\n        \"feedbackTemplateId\": 4947,\n        \"feedbackFrequency\": 0,\n        \"phone\": \"+5559925555\",\n        \"dateCreated\": \"2019-04-30T07:19:18-04:00\",\n        \"dateArchived\": false\n    },\n    {\n        \"id\": 624,\n        \"name\": \"A Deleted Department\",\n        \"repUserIds\": [\n            1,\n            4,\n            14,\n            15,\n            25,\n            27\n        ],\n        \"allReps\": true,\n        \"replyTemplateId\": 37,\n        \"templateCategory\": null,\n        \"staleWarning\": 36,\n        \"stale\": 72,\n        \"feedbackDelay\": 0,\n        \"feedbackSample\": 20,\n        \"feedbackTemplateId\": null,\n        \"feedbackFrequency\": 0,\n        \"phone\": null,\n        \"dateCreated\": \"2015-08-31T16:51:22-04:00\",\n        \"dateArchived\": \"2020-05-09T17:18:38-04:00\"\n    }\n]"}],"_postman_id":"6ce5c727-d6c9-470a-b9c7-179ee85e123f"},{"name":"Create a Department","id":"3d38c890-4ef6-4de7-8dc1-92395a3ed813","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>The name of your new department</p>\n","key":"name","type":"text","value":""}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/","description":"<p>Create a Department in FuseDesk.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","departments",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"5012a991-54ef-4a5e-9c8d-4d65f3c59d3d","name":"Create a Department","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"The name of your new department","key":"name","type":"text","value":"Sales Team"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 691,\n    \"phone\": null,\n    \"stale\": 72,\n    \"allReps\": true,\n    \"repUserIds\": [\n        1,\n        4,\n        14,\n        15,\n        25,\n        27\n    ],\n    \"name\": \"Sales Team\",\n    \"dateCreated\": \"2020-07-02T20:02:28-04:00\",\n    \"dateArchived\": null,\n    \"replyTemplateId\": 3464,\n    \"templateCategory\": \"Support FuseDesk\",\n    \"feedbackDelay\": 0,\n    \"feedbackSample\": 20,\n    \"feedbackTemplateId\": null,\n    \"feedbackFrequency\": 0,\n    \"staleWarning\": 36\n}"}],"_postman_id":"3d38c890-4ef6-4de7-8dc1-92395a3ed813"},{"name":"Get a Department","id":"5f33b697-31eb-4ee1-8172-e8469a98a5d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/:departmentId","description":"<p>Get a Department in FuseDesk.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","departments",":departmentId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"departmentId"}]}},"response":[{"id":"0ba8a2a7-7057-40df-be55-259367aa64bf","name":"Get a Department","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/273"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 273,\n    \"name\": \"VIP Support\",\n    \"repUserIds\": [\n        1,\n        4,\n        14,\n        15,\n        25,\n        27\n    ],\n    \"allReps\": true,\n    \"replyTemplateId\": 3828,\n    \"templateCategory\": \"Support FuseDesk\",\n    \"staleWarning\": 40,\n    \"stale\": 44,\n    \"feedbackDelay\": 1,\n    \"feedbackSample\": 100,\n    \"feedbackTemplateId\": 5278,\n    \"feedbackFrequency\": 28,\n    \"phone\": null,\n    \"dateCreated\": \"2020-06-30T01:55:38-04:00\",\n    \"dateArchived\": false\n}"}],"_postman_id":"5f33b697-31eb-4ee1-8172-e8469a98a5d7"},{"name":"Update a Department","id":"56fca54b-34af-4d3d-9eb5-b5055401b4ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"allReps","value":"","description":"<p>Boolean if this department should include all current and future reps</p>\n","type":"text"},{"description":"<p>Array or CSV    of the rep IDs you want in the department.</p>\n","key":"repUserIds","type":"text","value":""},{"description":"<p>The FuseDesk Email Template ID (int) to use as the default reply template</p>\n","key":"replyTemplateId","type":"text","value":""},{"description":"<p>The FuseDesk Email Template category (string) to use by default.</p>\n","key":"templateCategory","type":"text","value":""},{"description":"<p>How many hours (int) to wait before a case goes from yellow to red</p>\n","key":"stale","type":"text","value":""},{"description":"<p>How many hours (int) to wait before a case goes from green to yellow</p>\n","key":"staleWarning","type":"text","value":""},{"description":"<p>How many days (int) to wait after a case is closed before asking for feedback</p>\n","key":"feedbackDelay","type":"text","value":""},{"description":"<p>The FuseDesk Email Template ID (int) to send when asking for feedback</p>\n","key":"feedbackTemplateId","type":"text","value":""},{"description":"<p>What percent of cases (int, 0-100) to request feedback on</p>\n","key":"feedbackSample","type":"text","value":""},{"key":"feedbackFrequency","value":"","description":"<p>How many days to wait before asking a contact for feedback again.</p>\n","type":"text"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/:departmentId","description":"<p>Send in just the fields you'd like to update.</p>\n<p><em>Note that departments can not be renamed after they are created.</em></p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","departments",":departmentId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"departmentId"}]}},"response":[],"_postman_id":"56fca54b-34af-4d3d-9eb5-b5055401b4ac"},{"name":"Archive a Department","id":"8f716acb-8b49-422e-831b-57f39e737f86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/:departmentId","description":"<p>Archive a Department in FuseDesk.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","departments",":departmentId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"departmentId"}]}},"response":[{"id":"af696086-bd30-452b-ad65-b8f30cdfea83","name":"Archive a Department","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/273"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 273,\n    \"name\": \"VIP Support\",\n    \"repUserIds\": [\n        1,\n        4,\n        14,\n        15,\n        25,\n        27\n    ],\n    \"allReps\": true,\n    \"replyTemplateId\": 3828,\n    \"templateCategory\": \"Support FuseDesk\",\n    \"staleWarning\": 40,\n    \"stale\": 44,\n    \"feedbackDelay\": 1,\n    \"feedbackSample\": 100,\n    \"feedbackTemplateId\": 5278,\n    \"feedbackFrequency\": 28,\n    \"phone\": null,\n    \"dateCreated\": \"2020-06-30T01:55:38-04:00\",\n    \"dateArchived\": \"2020-07-01T07:15:12-04:00\"\n}"}],"_postman_id":"8f716acb-8b49-422e-831b-57f39e737f86"},{"name":"Restore an Archived Department","id":"812e436f-6c89-430e-8ebc-35c3caff62d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/:departmentId/restore","description":"<p>Restore an Archived Department in FuseDesk.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","departments",":departmentId","restore"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"type":"string","value":"","key":"departmentId"}]}},"response":[{"id":"583116af-4ca7-4465-a46f-e3964e104a4e","name":"Restore an Archived Department","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/departments/273"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 273,\n    \"name\": \"VIP Support\",\n    \"repUserIds\": [\n        1,\n        4,\n        14,\n        15,\n        25,\n        27\n    ],\n    \"allReps\": true,\n    \"replyTemplateId\": 3828,\n    \"templateCategory\": \"Support FuseDesk\",\n    \"staleWarning\": 40,\n    \"stale\": 44,\n    \"feedbackDelay\": 1,\n    \"feedbackSample\": 100,\n    \"feedbackTemplateId\": 5278,\n    \"feedbackFrequency\": 28,\n    \"phone\": null,\n    \"dateCreated\": \"2020-06-30T01:55:38-04:00\",\n    \"dateArchived\": false\n}"}],"_postman_id":"812e436f-6c89-430e-8ebc-35c3caff62d9"}],"id":"3f9d88d4-6172-4521-a35f-88ae0eab19a4","description":"<p>Use the departments API endpoint to create, update, and get info on all or one department.</p>\n","event":[{"listen":"prerequest","script":{"id":"ac1ab4de-9057-4821-9fb7-bab8f39919e4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"28f967e6-19dc-4909-b9fa-0409f7f123ef","type":"text/javascript","exec":[""]}}],"_postman_id":"3f9d88d4-6172-4521-a35f-88ae0eab19a4","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}}},{"name":"Webhooks","item":[{"name":"Get All Webhooks","id":"e9fb9adb-726f-4af1-9f77-ad06f344c82a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/webhooks/","description":"<p>Get a list of all Webhooks in FuseDesk.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","webhooks",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"31ccd8d2-f47d-4cf7-861a-d7e5b6785b78","name":"Get All Webhooks","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/webhooks/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 04 Dec 2021 00:19:11 GMT"},{"key":"Server","value":"Apache"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-FuseDesk-Usage-Remaining","value":"2040"},{"key":"X-FuseDesk-Usage-Limit","value":"2100"},{"key":"X-FuseDesk-Build-shortSha","value":"bdf971a38"},{"key":"X-FuseDesk-Build-lastCommitTime","value":"2021-12-03 19:44:33 +0000"},{"key":"Server-Timing","value":"dq;dur=2.97"},{"key":"Connection","value":"close"},{"key":"Connection","value":"Upgrade"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Content-Length","value":"839"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"05bcb245-ba87-75a6-95b6-a2c30cf16b11\",\n        \"objectType\": \"contact\",\n        \"action\": \"create\",\n        \"filter\": null,\n        \"url\": \"https://hooks.zapier.com/hooks/standard/27821/cc0b5a10e60c4f4a94637bcc9b6d2e30/\",\n        \"dateCreated\": \"2021-12-03T22:36:50+00:00\",\n        \"dateUpdated\": null,\n        \"dateDeleted\": null,\n        \"createdBy\": 0,\n        \"updatedBy\": null,\n        \"deletedBy\": null,\n        \"createdByApiKey\": \"sF6Vhle6FsjqtelA2c5VYb9gdhWJk8xR\",\n        \"updatedByApiKey\": \"\",\n        \"deletedByApiKey\": \"\"\n    },\n    {\n        \"id\": \"35c372b2-ae61-471a-8da3-01699cbde3ed\",\n        \"objectType\": \"case\",\n        \"action\": \"update\",\n        \"filter\": null,\n        \"url\": \"https://hooks.zapier.com/hooks/standard/27821/b5f9958bc48ac1e6af105e46770fee29/\",\n        \"dateCreated\": \"2021-12-03T22:35:50+00:00\",\n        \"dateUpdated\": null,\n        \"dateDeleted\": null,\n        \"createdBy\": 0,\n        \"updatedBy\": null,\n        \"deletedBy\": null,\n        \"createdByApiKey\": \"sF6Vhle6FsjqtelA2c5VYb9gdhWJk8xR\",\n        \"updatedByApiKey\": \"\",\n        \"deletedByApiKey\": \"\"\n    }\n]"}],"_postman_id":"e9fb9adb-726f-4af1-9f77-ad06f344c82a"},{"name":"Create Webhook","id":"74bd4635-69aa-477c-8ba8-dbe07422af4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"objectType","value":"","description":"<p>Object Type can be one of <code>case</code>, <code>contact</code>, <code>rep</code>, or <code>department</code>.</p>\n","type":"text"},{"key":"action","value":"","description":"<p>Action can be generally one of <code>create</code> or <code>update</code>. Cases also support <code>status</code>, <code>close</code>, and <code>transfer</code></p>\n","type":"text"},{"key":"url","value":"","description":"<p>A valid URL for us to POST to</p>\n","type":"text"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v2/webhooks/","description":"<p>Create a Webhook in FuseDesk.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","webhooks",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"2e3538ed-6faf-498d-b3c2-668f50ca91bc","name":"Create Webhook","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"objectType","value":"case","description":"Object Type can be one of `case`, `contact`, `rep`, or `department`.","type":"text"},{"key":"action","value":"create","description":"Action can be generally one of `create` or `update`. Cases also support `status`, `close`, and `transfer`","type":"text"},{"key":"url","value":"https://www.yourwebhookurl.com/sample/","description":"A valid URL for us to POST to","type":"text"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v2/webhooks/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 04 Dec 2021 00:25:21 GMT"},{"key":"Server","value":"Apache"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-FuseDesk-Usage-Remaining","value":"2032"},{"key":"X-FuseDesk-Usage-Limit","value":"2100"},{"key":"X-FuseDesk-Build-shortSha","value":"bdf971a38"},{"key":"X-FuseDesk-Build-lastCommitTime","value":"2021-12-03 19:44:33 +0000"},{"key":"Server-Timing","value":"dq;dur=4.27"},{"key":"Connection","value":"close"},{"key":"Connection","value":"Upgrade"},{"key":"Upgrade","value":"h2,h2c"},{"key":"Content-Length","value":"357"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"799b0036-1c5c-4f0f-8489-d8203cfcc092\",\n    \"objectType\": \"case\",\n    \"action\": \"create\",\n    \"filter\": null,\n    \"url\": \"https://www.yourwebhookurl.com/sample/\",\n    \"dateCreated\": \"2021-12-04T00:25:22+00:00\",\n    \"dateUpdated\": null,\n    \"dateDeleted\": null,\n    \"createdBy\": 0,\n    \"updatedBy\": null,\n    \"deletedBy\": null,\n    \"createdByApiKey\": \"sF6Vhle6FsjqtbdJKir8HJ2gdZWYn4xR\",\n    \"updatedByApiKey\": \"\",\n    \"deletedByApiKey\": \"\"\n}"}],"_postman_id":"74bd4635-69aa-477c-8ba8-dbe07422af4e"},{"name":"Delete a Webhook","id":"35aa02a4-9eaa-4194-a092-32959f5462e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v2/webhooks/:webhookId","description":"<p>Delete a Webhook in FuseDesk.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","webhooks",":webhookId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"description":{"content":"<p>The ID of the Webhook you'd like to delete</p>\n","type":"text/plain"},"type":"any","value":"","key":"webhookId"}]}},"response":[],"_postman_id":"35aa02a4-9eaa-4194-a092-32959f5462e5"}],"id":"387b2633-dae5-4977-a220-860584999f96","description":"<p>FuseDesk's Webhooks allow you to \"subscribe\" to certain actions on objects.</p>\n<p>For example, you can ask FuseDesk to POST to your webhook endpoint when a case is resolved, a rep is added, a contact is updated, and more.</p>\n<p>To create a new webhook, you'll need an <code>objectType</code>, an <code>action</code>, and a valid <code>url</code> for FuseDesk to POST to.</p>\n<p>Assuming your URL is valid, FuseDesk will then send the requested object to your URL when the requested action happens.</p>\n<p>Your URL must be responsive, i.e. respond in under 2 seconds (ideally under 500ms).</p>\n<p>If your URL responds with an HTTP Status Code of <code>404</code> (\"Not Found\") or a <code>414</code> (\"Delete This Subscription\"), FuseDesk will automatically delete your webhook.</p>\n<p>FuseDesk will post rich headers and a JSON encoded object to your URL.</p>\n<p>Headers of interest include <code>x-fusedesk-queued-item-id</code>, <code>x-fusedesk-webhook-id</code>, <code>x-fusedesk-object-type</code>, and <code>x-fusedesk-action</code>.</p>\n<p>The POST will include a JSON object with the following fields of note:</p>\n<ul>\n<li><code>id</code> the queued item Id</li>\n<li><code>appName</code> the name of your FuseDesk app</li>\n<li><code>authMethod</code> the authentication method that initiated this request. Could be one of many things, but is typically <code>user</code> or <code>apikey</code></li>\n<li><code>timestamp</code> the current microtime on the POSTing server</li>\n<li><code>eventTime</code> the time that the object was queued to be POSTed</li>\n<li><code>objectType</code> the type of object</li>\n<li><code>action</code> the type of action</li>\n<li><code>payload</code> the actual object which varies by object type</li>\n</ul>\n","_postman_id":"387b2633-dae5-4977-a220-860584999f96","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}}},{"name":"Chats","item":[{"name":"List Chats","id":"28be6359-388d-4743-8d2c-f0009cb627ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/chats/","description":"<p>To get a list of all active chats, simply GET the <code>/api/v1/chats/</code> API endpoint.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chats",""],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[]}},"response":[{"id":"cf0c8a36-ec05-4165-8cce-eaa3dacb5f0b","name":"List Chats","originalRequest":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/chats/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n        \"dateCreated\": \"2020-06-10T19:16:18+00:00\",\n        \"title\": \"Thanks for the giftie!\",\n        \"repId\": 15,\n        \"contactId\": 1692,\n        \"contactUuid\": \"28c725f8-4e97-44fa-a4b7-4680eef3c09a\",\n        \"caseId\": 738553,\n        \"noteId\": 2199626,\n        \"platform\": \"twilio\",\n        \"platformId\": null,\n        \"integrationId\": \"0e1eacba-b51f-11e8-bb27-0cc47a4c6790\",\n        \"clientName\": \"Bob Tester\",\n        \"dateClosed\": null,\n        \"dateAnonymized\": null,\n        \"lastMessage\": \"Thank you so much for sending me the free gift! You guys are the best! ❤️\",\n        \"dateLastMessage\": \"2020-06-10T20:10:34+00:00\",\n        \"dateLastMessageReceived\": \"2020-06-10T20:10:34+00:00\",\n        \"lastMessageSender\": \"Tracy Duncan\",\n        \"dateLastResponse\": \"2020-06-10T20:10:34+00:00\",\n        \"dateBlocked\": null,\n        \"unseen\": 0,\n        \"departmentId\": 273,\n        \"meta\": {},\n        \"isArchived\": false,\n        \"isAnonymized\": false,\n        \"avatarUrl\": \"https://secure.gravatar.com/avatar/245b0f1ad16c25309a52ed182aa38cf4?d=robohash\"\n    },\n    {\n        \"id\": \"14c262bd-1bb4-41a2-b511-9971b2895eef\",\n        \"dateCreated\": \"2021-02-10T19:15:32+00:00\",\n        \"title\": \"SMS with Amanda\",\n        \"repId\": 25,\n        \"contactId\": 546,\n        \"contactUuid\": \"382369f5-d039-4b86-9722-ce16ab02cf29\",\n        \"caseId\": 738481,\n        \"noteId\": null,\n        \"platform\": \"fyf\",\n        \"platformId\": \"+5329184849273\",\n        \"integrationId\": \"26b12cc1-8b7b-11e8-b7b1-0cc47a4c6790\",\n        \"clientName\": \"Amanda Tester\",\n        \"dateClosed\": null,\n        \"dateAnonymized\": null,\n        \"lastMessage\": \"I love FuseDesk!\",\n        \"dateLastMessage\": \"2021-11-09T01:52:51+00:00\",\n        \"dateLastMessageReceived\": \"2021-11-09T01:52:51+00:00\",\n        \"lastMessageSender\": \"Charlie Testing\",\n        \"dateLastResponse\": \"2021-11-09T01:52:51+00:00\",\n        \"dateBlocked\": null,\n        \"unseen\": 0,\n        \"departmentId\": 273,\n        \"meta\": {\n            \"ourNumber\": \"+16504801234\",\n            \"fyfNumberId\": 14034,\n            \"clientEmail\": \"amandatester@example.com\"\n        },\n        \"isArchived\": false,\n        \"isAnonymized\": false,\n        \"avatarUrl\": \"https://secure.gravatar.com/avatar/6fc6b6c9a6a2038dc4937371a1310c22?d=robohash\"\n    },\n    {\n        \"id\": \"66a8b4f9-e3d9-4cc8-8cd5-312893a2dd17\",\n        \"dateCreated\": \"2022-07-27T21:25:06+00:00\",\n        \"title\": \"Chat from mywebsiteexample.com\",\n        \"repId\": 15,\n        \"contactId\": 1702,\n        \"contactUuid\": \"7b23c3bf-d82c-4456-8ffc-96689bc76d4b\",\n        \"caseId\": null,\n        \"noteId\": null,\n        \"platform\": \"livechat\",\n        \"platformId\": null,\n        \"integrationId\": \"0e1eacba-b51f-11e8-bb27-0cc47a4c6790\",\n        \"clientName\": \"Suzie A Tester\",\n        \"dateClosed\": null,\n        \"dateAnonymized\": null,\n        \"lastMessage\": \"Hey there!!!\",\n        \"dateLastMessage\": \"2022-07-27T21:26:59+00:00\",\n        \"dateLastMessageReceived\": \"2022-07-27T21:26:59+00:00\",\n        \"lastMessageSender\": \"Suzie A Tester\",\n        \"dateLastResponse\": \"2022-07-27T21:26:59+00:00\",\n        \"dateBlocked\": null,\n        \"unseen\": 0,\n        \"departmentId\": 587,\n        \"meta\": {\n            \"timezoneOffset\": 240,\n            \"timezoneName\": \"America/Santo_Domingo\",\n            \"languages\": [\n                \"en-US\"\n            ],\n            \"userAgent\": \"Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/103.0.5060.63 Mobile/15E148 Safari/604.1\",\n            \"platform\": \"iPhone\",\n            \"screen\": {\n                \"height\": 926,\n                \"width\": 428\n            },\n            \"entryPage\": \"https://mywebsiteexample.com/\",\n            \"entryPageTitle\": \"My Website Example WElcome\",\n            \"utm\": [],\n            \"clientName\": \"Suzie A Tester\",\n            \"clientEmail\": \"suzietester@example.com\",\n            \"custom\": {\n                \"membershipLevel\": \"Silver\"\n            },\n            \"ipAddress\": \"123.143.13.21\",\n            \"ipGeoLocation\": {\n                \"countryCode\": \"DO\",\n                \"countryName\": \"Dominican Republic\",\n                \"regionCode\": \"32\",\n                \"regionName\": \"Santo Domingo\",\n                \"city\": \"Santo Domingo Oeste\",\n                \"countryFlagEmoji\": \"🇩🇴\"\n            }\n        },\n        \"isArchived\": false,\n        \"isAnonymized\": false,\n        \"avatarUrl\": \"https://secure.gravatar.com/avatar/8bf16a3dae0e7f930d584c9e2f4475af?d=robohash\"\n    }\n]"}],"_postman_id":"28be6359-388d-4743-8d2c-f0009cb627ac"},{"name":"Get a Chat","id":"b5ca8abc-a274-4bae-9ca3-f04735e0fe72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://YOURAPPNAME.fusedesk.com/api/v1/chats/:chatId","description":"<p>Ready to get an individual chat with all of it's message history?</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chats",":chatId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"description":{"content":"<p>The ID of the Chat you'd like</p>\n","type":"text/plain"},"type":"any","value":null,"key":"chatId"}]}},"response":[{"id":"056c64b9-65fc-4f83-846b-71e62ef85e4b","name":"Get a Chat","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v1/chats/:chatId","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v1","chats",":chatId"],"variable":[{"key":"chatId","value":"","description":"The ID of the Chat you'd like"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n    \"dateCreated\": \"2020-06-10T19:16:18+00:00\",\n    \"title\": \"Thanks for the giftie!\",\n    \"repId\": 15,\n    \"contactId\": 1692,\n    \"contactUuid\": \"28c725f8-4e97-44fa-a4b7-4680eef3c09a\",\n    \"caseId\": 738553,\n    \"noteId\": 2199626,\n    \"platform\": \"twilio\",\n    \"platformId\": null,\n    \"integrationId\": \"0e1eacba-b51f-11e8-bb27-0cc47a4c6790\",\n    \"clientName\": \"Bob Tester\",\n    \"dateClosed\": null,\n    \"dateAnonymized\": null,\n    \"lastMessage\": \"Thank you so much for sending me the free gift! You guys are the best! ❤️\",\n    \"dateLastMessage\": \"2020-06-10T20:10:34+00:00\",\n    \"dateLastMessageReceived\": \"2020-06-10T20:10:34+00:00\",\n    \"lastMessageSender\": \"Tracy Duncan\",\n    \"dateLastResponse\": \"2020-06-10T20:10:34+00:00\",\n    \"dateBlocked\": null,\n    \"unseen\": 0,\n    \"departmentId\": 273,\n    \"meta\": {},\n    \"isArchived\": false,\n    \"isAnonymized\": false,\n    \"avatarUrl\": \"https://secure.gravatar.com/avatar/245b0f1ad16c25309a52ed182aa38cf4?d=robohash\",\n    \"messages\": [\n        {\n            \"id\": \"110406a5-577a-42db-9d0c-f8bd3b52d4e5\",\n            \"chatId\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n            \"repId\": null,\n            \"dateSent\": \"2020-06-10T19:16:18.000000+00:00\",\n            \"senderName\": \"Tracy Duncan\",\n            \"message\": \"Hey\",\n            \"meta\": null,\n            \"platformId\": null\n        },\n        {\n            \"id\": \"f9775680-dd9f-478d-9579-7962f8278a29\",\n            \"chatId\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n            \"repId\": 15,\n            \"dateSent\": \"2020-06-10T19:16:25.000000+00:00\",\n            \"senderName\": \"Suzie A Tester\",\n            \"message\": \"Hey\",\n            \"meta\": null,\n            \"platformId\": null\n        },\n        {\n            \"id\": \"08cb28c8-1979-4317-a1cc-ba219397f296\",\n            \"chatId\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n            \"repId\": 15,\n            \"dateSent\": \"2020-06-10T19:16:25.000000+00:00\",\n            \"senderName\": null,\n            \"message\": null,\n            \"meta\": {\n                \"eventType\": \"chatAssign\",\n                \"assigningRepId\": 15,\n                \"repId\": 15,\n                \"departmentId\": null\n            },\n            \"platformId\": null\n        },\n        {\n            \"id\": \"43a2b4ae-a02f-4482-b3d3-cc981bf13a93\",\n            \"chatId\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n            \"repId\": 15,\n            \"dateSent\": \"2020-06-10T20:10:20.000000+00:00\",\n            \"senderName\": \"Suzie A Tester\",\n            \"message\": \"You're welcome!\",\n            \"meta\": null,\n            \"platformId\": null\n        }\n    ]\n}"}],"_postman_id":"b5ca8abc-a274-4bae-9ca3-f04735e0fe72"},{"name":"Update a Chat","id":"04842f72-4833-46c1-bd1a-b4213a0e008d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"","type":"text","description":"<p>To rename a chat</p>\n"},{"key":"repId","value":"","type":"text","description":"<p>The ID of the rep to transfer the chat to</p>\n"},{"key":"departmentId","value":"","type":"text","description":"<p>The ID of the department to transfer the chat to</p>\n"},{"key":"contactUuid","value":"","type":"text","description":"<p>The UUID of the Contact to relink the chat to a different contact</p>\n"},{"key":"clientName","value":"","type":"text","description":"<p>The name of the client you're chatting with if you'd like to rename</p>\n"},{"key":"caseId","value":"","type":"text","description":"<p>The ID of the case to link the chat to</p>\n"},{"key":"unseen","value":"","type":"text","description":"<p>The number of \"unseen\" messages by the rep, i.e. 0 to mark all messages as seen</p>\n"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/chats/:chatId","description":"<p>Want to update a chat? Simply POST to it with the changes you'd like to make.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chats",":chatId"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"description":{"content":"<p>The ID of the Chat you'd like</p>\n","type":"text/plain"},"type":"any","value":null,"key":"chatId"}]}},"response":[{"id":"dcc43c11-1b69-4c0a-9cb3-44d8fcad10e0","name":"Updated Chat","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Thanks for the giftie!\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v1/chats/:chatId","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v1","chats",":chatId"],"variable":[{"key":"chatId","value":"","description":"The ID of the Chat you'd like"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n    \"dateCreated\": \"2020-06-10T19:16:18+00:00\",\n    \"title\": \"Thanks for the giftie!\",\n    \"repId\": 15,\n    \"contactId\": 1692,\n    \"contactUuid\": \"28c725f8-4e97-44fa-a4b7-4680eef3c09a\",\n    \"caseId\": 738553,\n    \"noteId\": 2199626,\n    \"platform\": \"twilio\",\n    \"platformId\": null,\n    \"integrationId\": \"0e1eacba-b51f-11e8-bb27-0cc47a4c6790\",\n    \"clientName\": \"Bob Tester\",\n    \"dateClosed\": null,\n    \"dateAnonymized\": null,\n    \"lastMessage\": \"Thank you so much for sending me the free gift! You guys are the best! ❤️\",\n    \"dateLastMessage\": \"2020-06-10T20:10:34+00:00\",\n    \"dateLastMessageReceived\": \"2020-06-10T20:10:34+00:00\",\n    \"lastMessageSender\": \"Tracy Duncan\",\n    \"dateLastResponse\": \"2020-06-10T20:10:34+00:00\",\n    \"dateBlocked\": null,\n    \"unseen\": 0,\n    \"departmentId\": 273,\n    \"meta\": {},\n    \"isArchived\": false,\n    \"isAnonymized\": false,\n    \"avatarUrl\": \"https://secure.gravatar.com/avatar/245b0f1ad16c25309a52ed182aa38cf4?d=robohash\",\n    \"messages\": [\n        {\n            \"id\": \"110406a5-577a-42db-9d0c-f8bd3b52d4e5\",\n            \"chatId\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n            \"repId\": null,\n            \"dateSent\": \"2020-06-10T19:16:18.000000+00:00\",\n            \"senderName\": \"Tracy Duncan\",\n            \"message\": \"Hey\",\n            \"meta\": null,\n            \"platformId\": null\n        },\n        {\n            \"id\": \"f9775680-dd9f-478d-9579-7962f8278a29\",\n            \"chatId\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n            \"repId\": 15,\n            \"dateSent\": \"2020-06-10T19:16:25.000000+00:00\",\n            \"senderName\": \"Suzie A Tester\",\n            \"message\": \"Hey\",\n            \"meta\": null,\n            \"platformId\": null\n        },\n        {\n            \"id\": \"08cb28c8-1979-4317-a1cc-ba219397f296\",\n            \"chatId\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n            \"repId\": 15,\n            \"dateSent\": \"2020-06-10T19:16:25.000000+00:00\",\n            \"senderName\": null,\n            \"message\": null,\n            \"meta\": {\n                \"eventType\": \"chatAssign\",\n                \"assigningRepId\": 15,\n                \"repId\": 15,\n                \"departmentId\": null\n            },\n            \"platformId\": null\n        },\n        {\n            \"id\": \"43a2b4ae-a02f-4482-b3d3-cc981bf13a93\",\n            \"chatId\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n            \"repId\": 15,\n            \"dateSent\": \"2020-06-10T20:10:20.000000+00:00\",\n            \"senderName\": \"Suzie A Tester\",\n            \"message\": \"You're welcome!\",\n            \"meta\": null,\n            \"platformId\": null\n        }\n    ]\n}"}],"_postman_id":"04842f72-4833-46c1-bd1a-b4213a0e008d"},{"name":"Close (Resolve) a Chat","id":"fda44692-6a99-4b38-8d98-408bdbeca27f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"repid","value":"","type":"text","description":"<p>Optional, to create a case, the ID of the rep to assign the case to</p>\n"},{"key":"depid","value":"","type":"text","description":"<p>Optional, to create a case, the ID of the department to assign the case to</p>\n"},{"key":"status","value":"","type":"text","description":"<p>Optional, if creating a case, the status of the new case, one of <code>new</code> (default), <code>open</code>, or <code>closed</code>.</p>\n"}]},"url":"https://YOURAPPNAME.fusedesk.com/api/v1/chats/:chatId/close","description":"<p>Want to update a chat? Simply POST to it with the changes you'd like to make.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","chats",":chatId","close"],"host":["YOURAPPNAME","fusedesk","com"],"query":[],"variable":[{"description":{"content":"<p>The ID of the Chat you'd like to close</p>\n","type":"text/plain"},"type":"any","value":null,"key":"chatId"}]}},"response":[{"id":"e8b0080d-c3b7-4868-96a8-c39986eb6a4c","name":"Close a Chat","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"repid\": 15,\n    \"status\": \"closed\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://YOURAPPNAME.fusedesk.com/api/v1/chats/:chatId/close","protocol":"https","host":["YOURAPPNAME","fusedesk","com"],"path":["api","v1","chats",":chatId","close"],"variable":[{"key":"chatId","value":"","description":"The ID of the Chat you'd like"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n    \"dateCreated\": \"2020-06-10T19:16:18+00:00\",\n    \"title\": \"Thanks for the giftie!\",\n    \"repId\": 15,\n    \"contactId\": 1692,\n    \"contactUuid\": \"28c725f8-4e97-44fa-a4b7-4680eef3c09a\",\n    \"caseId\": 738553,\n    \"noteId\": 2199626,\n    \"platform\": \"twilio\",\n    \"platformId\": null,\n    \"integrationId\": \"0e1eacba-b51f-11e8-bb27-0cc47a4c6790\",\n    \"clientName\": \"Bob Tester\",\n    \"dateClosed\": \"2021-06-10T20:10:34+00:00\",,\n    \"dateAnonymized\": null,\n    \"lastMessage\": \"Thank you so much for sending me the free gift! You guys are the best! ❤️\",\n    \"dateLastMessage\": \"2020-06-10T20:10:34+00:00\",\n    \"dateLastMessageReceived\": \"2020-06-10T20:10:34+00:00\",\n    \"lastMessageSender\": \"Tracy Duncan\",\n    \"dateLastResponse\": \"2020-06-10T20:10:34+00:00\",\n    \"dateBlocked\": null,\n    \"unseen\": 0,\n    \"departmentId\": 273,\n    \"meta\": {},\n    \"isArchived\": false,\n    \"isAnonymized\": false,\n    \"avatarUrl\": \"https://secure.gravatar.com/avatar/245b0f1ad16c25309a52ed182aa38cf4?d=robohash\",\n    \"messages\": [\n        {\n            \"id\": \"110406a5-577a-42db-9d0c-f8bd3b52d4e5\",\n            \"chatId\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n            \"repId\": null,\n            \"dateSent\": \"2020-06-10T19:16:18.000000+00:00\",\n            \"senderName\": \"Tracy Duncan\",\n            \"message\": \"Hey\",\n            \"meta\": null,\n            \"platformId\": null\n        },\n        {\n            \"id\": \"f9775680-dd9f-478d-9579-7962f8278a29\",\n            \"chatId\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n            \"repId\": 15,\n            \"dateSent\": \"2020-06-10T19:16:25.000000+00:00\",\n            \"senderName\": \"Suzie A Tester\",\n            \"message\": \"Hey\",\n            \"meta\": null,\n            \"platformId\": null\n        },\n        {\n            \"id\": \"08cb28c8-1979-4317-a1cc-ba219397f296\",\n            \"chatId\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n            \"repId\": 15,\n            \"dateSent\": \"2020-06-10T19:16:25.000000+00:00\",\n            \"senderName\": null,\n            \"message\": null,\n            \"meta\": {\n                \"eventType\": \"chatAssign\",\n                \"assigningRepId\": 15,\n                \"repId\": 15,\n                \"departmentId\": null\n            },\n            \"platformId\": null\n        },\n        {\n            \"id\": \"43a2b4ae-a02f-4482-b3d3-cc981bf13a93\",\n            \"chatId\": \"08a8b424-b45a-458b-97c1-419db148d1b8\",\n            \"repId\": 15,\n            \"dateSent\": \"2020-06-10T20:10:20.000000+00:00\",\n            \"senderName\": \"Suzie A Tester\",\n            \"message\": \"You're welcome!\",\n            \"meta\": null,\n            \"platformId\": null\n        }\n    ]\n}"}],"_postman_id":"fda44692-6a99-4b38-8d98-408bdbeca27f"}],"id":"0c5ccb1a-087c-437c-bcb2-962907811fcc","description":"<p>Our Chats API endpoint allows you to list, get, respond to, update, and create chats across all of our chat platforms.</p>\n","_postman_id":"0c5ccb1a-087c-437c-bcb2-962907811fcc","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]},"isInherited":true,"source":{"_postman_id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","id":"1d9d7b71-b4bb-4365-9fd6-db9ae4cda280","name":"FuseDesk API","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-FuseDesk-Api-Key"},{"key":"value","value":"YOURAPIKEY"}]}},"event":[{"listen":"prerequest","script":{"id":"dd0f1384-d754-4f76-a4c4-ed7cb36cbca1","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1e84d3ac-9f6d-42fa-9327-ebbe9faf4153","type":"text/javascript","exec":[""]}}],"variable":[{"key":"AppName","value":"YOURAPPNAME"},{"key":"ApiKey","value":"YOURAPIKEY"}]}