{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"adf5dbe0-4f7e-4f73-a174-3e90ad2bd264","name":"Amplify API v2.0","description":"<p>The Amplify Platform API provides a suite of RESTful API's.</p>\n\n<h2>Call Basics</h2>\n\n<p>All calls made to the API are <b>POST</b> calls.</p>\n\n<p>Each endpoint URL must be prefixed with the version of the API being called. The current version is v2.0</p>\n\n<p>The optional body of each request is JSON formatted text.</p>\n\n<p>Every API endpoint supports a <b>callstate</b> attribute. Any value passed in the <b>callstate</b> attribute is returned unaltered in the response ticket. This allows you as a developer to pass in state data that your application would like to include in responses.</p>\n\n<p><br>For example&nbsp;</p>\n\n``` json\n{    \n    \"chatLogs\": [ ],\n    \"callstate\":\"1234\"\n}\n\n ```\n\n<p>Returns</p>\n\n``` json\n{\n\"ticket\": {\n    \"authtoken\": \"\",\n    \"authtoken-expiration\": \"600\",\n    \"endpoint\": \"/chatLogs/get/\",\n    \"api-version\": \"1.1\",\n    \"elapsed\": \"0.007271\", \n    \"callstate\": \"1234\"\n},    \n\"results\": {\n    \"status\": \"ok\",\n    \"xstatus\": \"\",\n    \"data\": \"\"\n}\n}\n\n ```\n\n<h3>Authentication</h3>\n\n<p>To use the API's you must provide your API key in the header of your POST call, or as a parameter in the query string. Always keep your API key secret!</p>\n\n<p>All requests must be made over an encrypted<a href=\"http://en.wikipedia.org/wiki/HTTP_Secure\">HTTPS</a>connection.</p>\n\n```\nPOST /v2.0/profile/get/ HTTPS/1.1\nHost: api.haleymarketing.com\napikey: xxxxx-xxxxxx-xxxxxx-xxxxx\nContent-Type: application/json\nAccept: application/json\nCache-Control: no-cache\n\n ```\n\n<h3>Successful Response</h3>\n\n<p>The API's successful response is a JSON payload. The payload consists of two hashes: a ticket detailing the request, and the results of the request.</p>\n\n<p><b>Example:</b></p>\n\n``` json\n{\n    \"ticket\":{\n        \"endpoint\":\"/v2.0/profile/get/\",\n        \"apikey\":\"xxxxx-xxxxxx-xxxxxx-xxxxx\",\n        \"elapsed\":\"0.1234\",\n        \"api-version\":\"1.1\",\n        \"callstate\":\"any string you'd like returned\"\n    },\n    \"results\":{\n        \"status\":\"ok\",\n        \"xstatus\":{\"en-US\":\"\"},\n        \"data\":\"[]\"\n    }\n}\n\n ```\n\nFor endpoints that return a paged list, there will be a paging object.\n\n- Request Properties\n    \n    - first - the first item to return, 0 based\n        \n    - perPage - how many items to return\n        \n- Response Properties\n    \n    - next - the next item to request in the subsequent call as \"first\"\n        \n    - count - the total number of items\n        \n    - first - the position of the first item returned\n        \n    - perPage - how many items to return\n        \n\n``` json\n\"paging\": {\n                \"next\": 0, \n                \"count\": \"9\",\n                \"first\": \"0\",\n                \"perPage\": \"10\"\n            },\n\n ```\n\n<h3>Error Reporting</h3>\n\n<p><b>Example of the API Error:</b></p>\n\n``` json\n{\n    \"ticket\":{\n        \"endpoint\":\"/v2.0/profile/get\",\n        \"apikey\":\"xxxxx-xxxxxx-xxxxxx-xxxxx\",\n        \"elapsed\":\"0.1234\",\n        \"api-version\":\"1.1\"\n    },\n    \"results\":{\n        \"status\":\"error\",\n        \"xstatus\":{\"en-US\":\"Unable to connect\"},\n        \"data\":\"\"\n    }\n}\n\n ```","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"10319599","team":135879,"collectionId":"adf5dbe0-4f7e-4f73-a174-3e90ad2bd264","publishedId":"2s8YmRPgqh","public":true,"publicUrl":"https://apidocs.haleymarketing.com","privateUrl":"https://go.postman.co/documentation/10319599-adf5dbe0-4f7e-4f73-a174-3e90ad2bd264","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.10.1","publishDate":"2022-11-18T21:16:07.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[{"name":"v2.0 Default","id":"0546556d-bccb-4067-a5e7-12f63c2167fe","owner":"388433","values":[{"key":"url","value":"https://api.haleymarketing.com","enabled":true},{"key":"apikey","value":"your-apikey","enabled":true},{"key":"authtoken","value":"your-authtoken","enabled":true},{"key":"apiversion","value":"v2.0","enabled":true}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/28629676e7b4717cae203ca47335300d1392a611c54c65eceb177bf97c97132f","favicon":"https://haleymarketing.com/favicon.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"v2.0 Default","value":"388433-0546556d-bccb-4067-a5e7-12f63c2167fe"}],"canonicalUrl":"https://apidocs.haleymarketing.com/view/metadata/2s8YmRPgqh"}