{"document":{"Id":3,"PageName":"Authentication","PageSlug":"Authentication","MetaTitle":"Authentication API Documentation Guide","MetaDescription":"Explore the Authentication API with clear steps on securing and managing user data.","documentList":null},"documentdata":"<div class=\"doc-step-grid\">\n        <div class=\"doc-step-grid-col\" id=\"left-section-content\">\n            <h3>Authentication<\/h3>\n            <p>&lt;p&gt;&lt;span style=&quot;color: rgb(14, 16, 26); background-color: transparent;&quot;&gt;The Quick Moderate API uses OAuth 2.0 which requires more authentication processes like passing two header keys in the &lt;\/span&gt;&lt;a href=&quot;https:\/\/admin.quickmoderate.com\/login&quot; rel=&quot;noopener noreferrer&quot; target=&quot;_blank&quot; style=&quot;color: rgb(0, 102, 204); background-color: transparent;&quot;&gt;Dashboard&lt;\/a&gt;&lt;span style=&quot;color: rgb(0, 102, 204);&quot;&gt; &lt;\/span&gt;&lt;span style=&quot;color: rgb(14, 16, 26); background-color: transparent;&quot;&gt;of the API.&lt;\/span&gt; &lt;span style=&quot;color: rgb(14, 16, 26); background-color: transparent;&quot;&gt;One key is named&lt;\/span&gt;&lt;span style=&quot;color: rgb(102, 163, 224);&quot;&gt; AppKey&lt;\/span&gt; &amp;amp; &lt;span style=&quot;color: rgb(14, 16, 26); background-color: transparent;&quot;&gt;the other is&lt;\/span&gt; &lt;span style=&quot;color: rgb(102, 163, 224);&quot;&gt;UserKey &lt;\/span&gt;&lt;span style=&quot;color: rgb(14, 16, 26); background-color: transparent;&quot;&gt;at the time of calling the API; it&#039;s a two-step auth required as mentioned&lt;\/span&gt;.&lt;\/p&gt;&lt;p&gt;&lt;br&gt;&lt;\/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(14, 16, 26); background-color: transparent;&quot;&gt;It starts with the authentication of the required keys then the API hits to get the Auth Token which is an additional step of authentication for the entire API calls. It will require your API keys then it will return the Authentication token generated for the time duration of 5 minutes. Then the token will expire. This is an additional security feature that consists of the API.&lt;\/span&gt;&lt;\/p&gt;&lt;p&gt;&lt;br&gt;&lt;\/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(53, 58, 68);&quot;&gt;All API requests must be made over &lt;\/span&gt;&lt;a href=&quot;https:\/\/en.wikipedia.org\/wiki\/HTTPS&quot; rel=&quot;noopener noreferrer&quot; target=&quot;_blank&quot; style=&quot;color: rgb(0, 102, 204);&quot;&gt;HTTPS&lt;\/a&gt;&lt;span style=&quot;color: rgb(53, 58, 68);&quot;&gt;. Calls made over plain HTTP will fail. API requests without authentication will also fail.&lt;\/span&gt;&lt;\/p&gt;<\/p>\n\n        <\/div>\n\n        <div class=\"doc-step-grid-col\">\n                        <div class=\"doc-code-wrap\">\n                <div class=\"doc-code-header\" id=\"doc-header-0\">\n                    <span>Authenticated Request<\/span>\n                                        <div class=\"copy-btn\" data-content-id=\"doc-content-0\">\n                        <img title=\"Click to copy\" class=\"copy-img\" src=\"\/assets\/front\/images\/copy.svg\" alt=\"Copy\" style=\"height: 20px;cursor: pointer;\">\n                    <\/div>\n                                    <\/div>\n                <div class=\"doc-code-body\" id=\"doc-content-0\">\n                    <div>&lt;pre class=&quot;ql-syntax&quot; spellcheck=&quot;false&quot;&gt;curl -X &#039;POST&#039; \\\n  &#039;https:\/\/sandbox.quickmoderate.com\/api\/GenerateAuthToken&#039; \\\n  -H &#039;accept: *\/*&#039; \\\n  -H &#039;X-App-Key: Your App Key&#039; \\\n  -H &#039;X-User-Key: Your User Key&#039; \\\n  -d &#039;&#039;\n\n\n\n&lt;\/pre&gt;<\/div>\n                <\/div>\n            <\/div>\n                    <div class=\"doc-code-wrap\">\n                <div class=\"doc-code-header\" id=\"doc-header-1\">\n                    <span>Your API Key<\/span>\n                                    <\/div>\n                <div class=\"doc-code-body\" id=\"doc-content-1\">\n                    <div>&lt;p&gt;A sample test API key is included in all the examples here, so you can test any example right away. Do not submit any personally identifiable information in requests made with this key.&lt;\/p&gt;&lt;p&gt;&lt;br&gt;&lt;\/p&gt;&lt;p&gt;To test requests using your account, replace the sample API key with your actual API key or&amp;nbsp;sign in.&lt;\/p&gt;<\/div>\n                <\/div>\n            <\/div>\n                \n        <\/div>\n    <\/div>\n            <hr>\n        <div class=\"doc-step-grid\">\n        <div class=\"doc-step-grid-col\" id=\"left-section-content\">\n            <h3>Connected Accounts<\/h3>\n            <p>&lt;p&gt;To connect your account as connected account one should use there &lt;span style=&quot;color: rgb(102, 163, 224);&quot;&gt;Quick Moderate-Account&lt;\/span&gt; in the header section. By connecting your account make sure that the connected account contains the &lt;span style=&quot;color: rgb(102, 163, 224);&quot;&gt;Quick Moderate&lt;\/span&gt; prefix as the starting of the prefix.&lt;\/p&gt;&lt;p&gt;&lt;br&gt;&lt;\/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(53, 58, 68);&quot;&gt;The value is set per-request as shown in the adjacent code sample. Methods on the returned object reuse the same account ID.&lt;\/span&gt;&lt;\/p&gt;<\/p>\n\n        <\/div>\n\n        <div class=\"doc-step-grid-col\">\n                        <div class=\"doc-code-wrap\">\n                <div class=\"doc-code-header\" id=\"doc-header-0\">\n                    <span>PER-REQUEST ACCOUNT<\/span>\n                                        <div class=\"copy-btn\" data-content-id=\"doc-content-0\">\n                        <img title=\"Click to copy\" class=\"copy-img\" src=\"\/assets\/front\/images\/copy.svg\" alt=\"Copy\" style=\"height: 20px;cursor: pointer;\">\n                    <\/div>\n                                    <\/div>\n                <div class=\"doc-code-body\" id=\"doc-content-0\">\n                    <div>&lt;pre class=&quot;ql-syntax&quot; spellcheck=&quot;false&quot;&gt;curl -X &#039;POST&#039; \\\n  &#039;https:\/\/sandbox.quickmoderate.com\/api\/GenerateAuthToken&#039; \\\n  -H &#039;accept: *\/*&#039; \\\n  -H &#039;X-App-Key: Your App Key&#039; \\\n  -H &#039;X-User-Key: Your User Key&#039; \\\n  -d &#039;&#039;\n&lt;\/pre&gt;<\/div>\n                <\/div>\n            <\/div>\n                \n        <\/div>\n    <\/div>\n    "}