{"info":{"_postman_id":"6f692f05-dbbe-40de-8658-94bb39b0308f","name":"API Documentation","description":"<html><head></head><body><p>🚀 This is the official API Version 1.0.0!</p>\n<p>⚙️ API are useful to automate processes!</p>\n<p>For example, you can automate the process of adding new seats, or automate review invitations!</p>\n<p><strong>AUTHORIZATION:</strong></p>\n<p>HOW TO FIND YOUR API TOKEN:</p>\n<ol>\n<li>Log in into the webapp</li>\n<li>Go to 'Settings' on the top-right corner</li>\n<li>Click on 'Automate'</li>\n<li>Click copy on the 'x-api-key'</li>\n</ol>\n<p>HOW TO FIND YOUR SEAT ID:</p>\n<ol>\n<li>Log in into the webapp</li>\n<li>Go to 'Settings' on the top-right corner</li>\n<li>Click on 'Automate'</li>\n<li>Click on 'Seat ID' to copy the selected ID you want to use</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"25285435","collectionId":"6f692f05-dbbe-40de-8658-94bb39b0308f","publishedId":"2s8ZDR6QWW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"25D366"},"publishDate":"2023-01-11T10:03:01.000Z"},"item":[{"name":"Seats","item":[{"name":"Create new seat","id":"e73939d0-717e-45ab-9e72-a9220abdaaf8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjoiNjAyNGYwMjIzYmJiOTQ0NGZkNjc5MmY1Iiwic2VydmVyX2VudiI6IkRldiIsInNlcnZlcl91cmwiOiJodHRwOi8vbG9jYWxzaG9zdDo1MDAwL2FwaS92MC4wLjkifQ.ah6xHZffAUBRbGQi7tyDaTM_JbMnOcBmov74Tjl9vrY","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"seat_name\": \"test-country-papi1\",\n    \"email\": \"tiniyat140@hraifi.com\",\n    \"password\": \"blablabla\",\n    \"full_name\": \"Gianluca\",\n    \"country\":\"ES\"\n}","options":{"raw":{"language":"json"}}},"url":"https://server.onlinereviews.tech/public-api/v1.0.0/seat/add","description":"<p>This call allows you to automatically add a seat and associate it with a new user.</p>\n<p>If you have reached the maximum quantity of seats for your account, this call will automatically increase the number of seats in your subscription.</p>\n<p><strong>BODY DESCRIPTION:</strong></p>\n<p><code>seat_name:</code>required, string</p>\n<p>The name of the new business you want to add.</p>\n<p><code>email:</code>required, string</p>\n<p>Email of the new user: the new user will have access to only this seat. If you want to grant this user access to multiple seats, you have to repeat this call with the same email account.</p>\n<p><code>password</code>: optional, string</p>\n<p>If you don't pass this field, the password will be generated by our system and will be communicated to the user via email with the new credentials. If passed, we will use your password instead.</p>\n<p><code>full_name</code>: required, string</p>\n<p>Full name of the new user you want to give this seat access.</p>\n<p><code>purchase</code>: optional, boolean,</p>\n<p>Default to <strong>true</strong>. If you <strong>dont</strong> want to automatically purchase another seat if you've reached the maximum quantity for your subscription, please pass this parameter with the value <strong>false.</strong> If you purchased an \"unlimited clients\" account, you will not be charged.</p>\n<p><code>email_subject</code>: string,</p>\n<p>The subject of the welcome email.</p>\n<p><code>email_text</code>: string,</p>\n<p>The text of the welcome email.</p>\n<p>If you want your client to receive a custom email, please add this field to the body and the customer will receive a custom email. Notice we will automatically add his credentials after your text.</p>\n<p><strong>RESPONSE DESCRIPTION:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"seat\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n<p><code>seat</code>: string,</p>\n<p>It contains the seat id.</p>\n<p><code>message</code>: optional, string</p>\n<p>It contains information about the API call.</p>\n","urlObject":{"protocol":"https","path":["public-api","v1.0.0","seat","add"],"host":["server","onlinereviews","tech"],"query":[],"variable":[]}},"response":[],"_postman_id":"e73939d0-717e-45ab-9e72-a9220abdaaf8"},{"name":"Switch client plan","id":"c83144d1-3153-4d16-9e08-26248860a02c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":""}],"body":{"mode":"raw","raw":"{\n    \"email\": \"\",\n    \"plan_name\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/public-api/v1.0.0/seat/custom-plan","urlObject":{"path":["public-api","v1.0.0","seat","custom-plan"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c83144d1-3153-4d16-9e08-26248860a02c"}],"id":"651acc95-d98b-4128-af7b-ab7c5e53d315","description":"<p>This endpoint will allow you to create a new seat with a new user associated. It is useful to automate the process of adding new clients or locations!</p>\n<p>We improved the response message of this api call, you will get better explanation when encountering an error.</p>\n<p>Best practise:</p>\n<ul>\n<li>Do not add yourself or an admin, as you will get an error.</li>\n<li>If you try to add a user whose email is already in the our app but associated with a different account you will get en error</li>\n<li>Make sure you used all the required parameters before making this call.</li>\n</ul>\n<p>Note that if you want to add more seat to one of your user you can do it by calling this endpoint with a different seat_name but the same email address.</p>\n","_postman_id":"651acc95-d98b-4128-af7b-ab7c5e53d315"},{"name":"Review Invitations","item":[{"name":"Schedule review invitation","id":"00c74609-504a-4a9a-ac4a-9a1f616aecb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"YOUR-API-TOKEN","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"send_datetime\":\"2021-09-23T15:52:55+02:00\",\n    \"retry\":3,\n    \"template\":{\n        \"subject\":\"Ciao {{name}}\",\n        \"html\":\"test {{name}} {{company_name}} {{review_link}}\",\n        \"text\":\"test {{name}} {{company_name}} {{review_link}}\"\n    },\n    \"name\":\"Marco\",\n    \"email\":\"mattamarco88@gmail.com\",\n    \"user_defined_id\":\"xxx\",\n    \"seat\":\"{{seat_api}}\"\n}"},"url":"https://server.onlinereviews.tech/public-api/v1.0.0/review/invitation","description":"<p><strong>BODY DESCRIPTION:</strong></p>\n<p><code>send_datetime</code>: Required, DateTime</p>\n<p>e.g. \"2023-09-23T16:10:55+02:00\"</p>\n<p>When you want the invitation to be sent.</p>\n<p>At the moment is supported only UTC format</p>\n<p><code>retry</code>: Optional, Int, default: 0</p>\n<p>How many time do you want to re-send this invitation if the client does not click on the review link.</p>\n<p>Max 3 times</p>\n<p><code>Template</code>: Required, Dict</p>\n<p>If you want to use the email template of your acount please pass this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"id\": \"default\",\n\"locale\": \"en\"\n}\n\n</code></pre>\n<ul>\n<li><p><code>id</code>: Pass \"default\" for using the email template of your account</p>\n</li>\n<li><p><code>locale</code>: The language you want the template to be sent</p>\n<ul>\n<li>At the moment the supported languages are: <code>it, en, de, es, fr, pt, pl, no, nl, dk</code></li>\n</ul>\n</li>\n</ul>\n<p>If you want to use a custom template use this format instead:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{    \n\"subject\":\"Hi {{name}}\",\n\"html\":\"test {{name}} {{company_name}} {{review_link}}\",\n\"text\":\"test {{name}} {{company_name}} {{review_link}}\"\n}\n\n</code></pre>\n<ul>\n<li><code>subject</code>: String<ul>\n<li>The subject of the email</li>\n</ul>\n</li>\n<li><code>html</code>: String<ul>\n<li>The text of the email: any parameters will need to be inside double brackets</li>\n</ul>\n</li>\n<li><code>text</code>: String<ul>\n<li>The text of the email: any parameters will need to be inside double brackets</li>\n</ul>\n</li>\n</ul>\n<p><code>name</code>: Required, String</p>\n<p>Name of the client you want to send the invitation to.</p>\n<p><code>email</code>: Required, String</p>\n<p>Email of the client.</p>\n<p><code>user_defined_id</code>: Optional, String</p>\n<p>If you pass this parameter, as a response to a successful invitation, we will send you back this ID, as a tracking method</p>\n<p><code>seat</code>: Required, String</p>\n<p>The ID of the seat</p>\n<p>You can find this ID in the Account -&gt; Automation &amp; then copy the ID of which seat you want to send invitation from</p>\n<p><strong>RESPONSE DESCRIPTION:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": \"\",\n    \"tracking\": \"\",\n    \"send_datetime\": \"\",\n    \"retry\": \"\",\n    \"template\":{},\n    \"name\": \"\",\n    \"email\": \"\",\n    \"user_defined_id\": \"\",\n    \"idempotency_id\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["public-api","v1.0.0","review","invitation"],"host":["server","onlinereviews","tech"],"query":[],"variable":[]}},"response":[],"_postman_id":"00c74609-504a-4a9a-ac4a-9a1f616aecb1"},{"name":"Delete review invitation","id":"53ac0e41-799a-4133-848e-79bcd0ec273a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-api-key","value":"YOUR_API_TOKEN","type":"text"}],"url":"https://server.onlinereviews.tech/public-api/v1.0.0/review/invitation/:invitation_id","description":"<p>Delete the invitation.</p>\n<p><strong>PATH VARIABLES DESCRIPTION</strong>:</p>\n<p><code>invitation_id</code>: Required, String</p>\n<p>The ID of the Invitation.</p>\n<p>This ID is the id given as response in the previous endpoint.</p>\n","urlObject":{"protocol":"https","path":["public-api","v1.0.0","review","invitation",":invitation_id"],"host":["server","onlinereviews","tech"],"query":[],"variable":[{"type":"any","value":null,"key":"invitation_id"}]}},"response":[],"_postman_id":"53ac0e41-799a-4133-848e-79bcd0ec273a"},{"name":"Get review Invitation","id":"cb694892-cb6e-43a0-aaf9-00549b9be27a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"YOUR_API_TOKEN","type":"text"}],"url":"https://server.onlinereviews.tech/public-api/v1.0.0/review/invitation/:invitation_id","description":"<p>Get invitation description.</p>\n<p><strong>PATH VARIABLES DESCRIPTION</strong>:</p>\n<p><code>invitation_id</code>: Reqiured, String</p>\n<p>The ID of the invitation.</p>\n<p><strong>RESPONSE DESCRIPTION</strong>:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": \"\",\n    \"tracking\": \"\",\n    \"send_datetime\": \"\",\n    \"retry\": \"\",\n    \"template\":{},\n    \"name\": \"\",\n    \"email\": \"\",\n    \"user_defined_id\": \"\",\n    \"idempotency_id\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["public-api","v1.0.0","review","invitation",":invitation_id"],"host":["server","onlinereviews","tech"],"query":[],"variable":[{"type":"any","value":"","key":"invitation_id"}]}},"response":[],"_postman_id":"cb694892-cb6e-43a0-aaf9-00549b9be27a"},{"name":"Get review stats","id":"a6bdc6db-a8d6-4b9f-a2a3-5b6a024e2450","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://server.onlinereviews.tech/public-api/v1.0.0/review/stats/:seat_id","description":"<p>Return reviews stats of your seats.</p>\n<p><strong>PATH VARIABLES DESCRIPTION</strong>:</p>\n<p><code>seat_id:</code> Required, String</p>\n<p>The ID of the seat.</p>\n<p>You can find this ID in the Account -&gt; Automation &amp; then copy the ID of which seat you want</p>\n","urlObject":{"protocol":"https","path":["public-api","v1.0.0","review","stats",":seat_id"],"host":["server","onlinereviews","tech"],"query":[],"variable":[{"type":"any","value":null,"key":"seat_id"}]}},"response":[],"_postman_id":"a6bdc6db-a8d6-4b9f-a2a3-5b6a024e2450"}],"id":"b62d9d22-bde8-4d5b-ba4b-7e392d95f3da","description":"<p>Automate the review invitations.</p>\n<p>This endpoint will give you the opportunity do create &amp; delete review invitation.</p>\n","_postman_id":"b62d9d22-bde8-4d5b-ba4b-7e392d95f3da"}]}