diff --git a/docs/guidelines/user-api.mdx b/docs/guidelines/user-api.mdx
index c37a1bc1..deec3b3b 100644
--- a/docs/guidelines/user-api.mdx
+++ b/docs/guidelines/user-api.mdx
@@ -31,199 +31,6 @@ Use the following header parameters for all requests:
## Authentication
-### Login
-
-
-
-
-
-
-Log in to the IQM platform with your email and password, and grant type set to
password.
-
-| Request schema | |
-| ---- | --- |
-| `grantType`
string | [OAuth Grant Types
](https://oauth.net/2/grant-types/). |
-| `email`
string | User's email. |
-| `password`
string | User's password. |
-
-
-Response properties
-
-
-
-`success` boolean |
-Indicates user successfully logged in: true. |
-
-
-`access_token` string |
-Access token. |
-
-
-`refresh_token` string |
-Refresh token. |
-
-
-`scope` string |
-User access rights. |
-
-
-`token_type` string |
-Token type. |
-
-
-`expires_in` integer |
-Time until token expires. |
-
-
-`owId` integer |
-Organization Workspace ID. |
-
-
-
-
-
-
-
-
-
-```json title="Request sample"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
-```
-
-```json title="Response 200"
-{
- "success": true,
- "data": {
- "access_token": "106adb25-37b0-4cab-8381-d682fe7cc3c8",
- "refresh_token": "eac4c1f6-781e-4b04-baff-9c2e415d1f64",
- "scope": "read write",
- "token_type": "bearer",
- "expires_in": 35999,
- "owId": 200001
- }
-}
-```
-
-
-More responses
-
-```json title="Response 400"
-{
- "success": false,
- "data": {
- "status": "On Hold",
- "reason": "The particular account is kept on hold due to missed payment dates for last 3 months.",
- "supportEmail": "support@iqm.com"
- },
- "errorObjects": [
- {
- "error": "User is not allowed to access provided customer",
- "reason": "User is not associated with any active organization."
- }
- ]
-}
-```
-
-```json title="Response 403"
-{
- "success": false,
- "errorObjects": [
- {
- "error": "User doesn't exist or user is not allowed to provided workspace."
- }
- ]
-}
-```
-
-
-
-
-
-
-See [TypeScript prerequisites](/getting-started/typescript-prerequisites.mdx) for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
-
- expires_in: number;
-
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- grantType: `string`,
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
-
-
-
-
----
-
### OAuth token
diff --git a/docs/quickstart-guides/authentication-quickstart-guide.mdx b/docs/quickstart-guides/authentication-quickstart-guide.mdx
index 7160aee3..e6a5dbd6 100644
--- a/docs/quickstart-guides/authentication-quickstart-guide.mdx
+++ b/docs/quickstart-guides/authentication-quickstart-guide.mdx
@@ -155,8 +155,8 @@ The response includes an access token, refresh token, and the Organization Works
| Request Schema | |
| ---- | --- |
-| `grantType`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required | User account password |
@@ -188,81 +188,6 @@ curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
}
```
-
-
-
-See [TypeScript Prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- grantType: `string`,
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
@@ -283,7 +208,7 @@ Use a refresh token to get a new access token. This endpoint accepts a URL encod
| Request Schema | |
| --- | --- |
-| `grantType`
string | refresh_token to get a new access token
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `grant_type`
string | refresh_token to get a new access token
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
| `refresh_token`
string | Refresh token |
diff --git a/docs/quickstart-guides/bid-model-quickstart.mdx b/docs/quickstart-guides/bid-model-quickstart.mdx
index 85c24039..14c28a9c 100644
--- a/docs/quickstart-guides/bid-model-quickstart.mdx
+++ b/docs/quickstart-guides/bid-model-quickstart.mdx
@@ -16,7 +16,7 @@ Create a Bid Model with this in-depth tutorial using IQM's API.
The following endpoints are used to check a campaign's eligibility and create a Bid Model:
-
+
diff --git a/docs/quickstart-guides/contextual-audience-quickstart.mdx b/docs/quickstart-guides/contextual-audience-quickstart.mdx
index 8ea471b2..89813dcb 100644
--- a/docs/quickstart-guides/contextual-audience-quickstart.mdx
+++ b/docs/quickstart-guides/contextual-audience-quickstart.mdx
@@ -15,7 +15,7 @@ Create your first audience using IQM's API in this step-by-step quickstart guide
The following endpoints are used to create a Contextual audience:
-
+
@@ -78,13 +78,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
| Headers | |
| ---- | --- |
-| `Authentication`
string required | Authentication bearer token. See [Sign up and authenticate](/quickstart-guides/authentication-quickstart-guide) |
+| `Authentication`
string required | Client ID and Client Secret |
+| `Content-Type`
string required | application/x-www-form-urlencoded |
| Request schema | |
| ---- | --- |
-| `grantType`
string required | [OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required | User account password |
@@ -92,12 +93,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-```json title="Request schema"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
+```curl title="Request sample"
+curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
+--header 'accept: application/json, text/plain, */*' \
+--header 'Authorization: Basic ' \
+--header 'Content-Type: application/x-www-form-urlencoded' \
+--data-urlencode 'grant_type=password' \
+--data-urlencode 'username=user@iqm.com' \
+--data-urlencode 'password='
```
```json title="Response 200"
@@ -150,80 +153,6 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
```
-
-
-
-See [TypeScript prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
diff --git a/docs/quickstart-guides/conversion-quickstart.mdx b/docs/quickstart-guides/conversion-quickstart.mdx
index cf82f789..a161f6af 100644
--- a/docs/quickstart-guides/conversion-quickstart.mdx
+++ b/docs/quickstart-guides/conversion-quickstart.mdx
@@ -18,7 +18,7 @@ Create a conversion with this in-depth tutorial using IQM's API.
The following endpoints are used to create a conversion and assign it to a campaign:
-
+
@@ -85,8 +85,8 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
| Request schema | |
| ----| --- |
-| `grantType`
string required | [OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required | User account password |
@@ -94,12 +94,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-```json title="Request sample"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
+```curl title="Request sample"
+curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
+--header 'accept: application/json, text/plain, */*' \
+--header 'Authorization: Basic ' \
+--header 'Content-Type: application/x-www-form-urlencoded' \
+--data-urlencode 'grant_type=password' \
+--data-urlencode 'username=user@iqm.com' \
+--data-urlencode 'password='
```
```json title="Response 200"
@@ -153,80 +155,6 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-
-
-
-See [TypeScript prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
diff --git a/docs/quickstart-guides/create-a-campaign-quickstart.mdx b/docs/quickstart-guides/create-a-campaign-quickstart.mdx
index 37a3b405..74ae69d4 100644
--- a/docs/quickstart-guides/create-a-campaign-quickstart.mdx
+++ b/docs/quickstart-guides/create-a-campaign-quickstart.mdx
@@ -19,7 +19,7 @@ Create your first campaign using IQM's API in this step-by-step quickstart guide
The following endpoints are used to create an insertion order (IO) and start a campaign:
-
+
@@ -80,13 +80,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
| Headers | |
| ---- | --- |
-| `Authentication`
string required | Authentication bearer token. See [Sign up and authenticate](/quickstart-guides/authentication-quickstart-guide) |
+| `Authentication`
string required | Client ID and Client Secret |
+| `Content-Type`
string required | application/x-www-form-urlencoded |
| Request schema | |
| ---- | --- |
-| `grantType`
string required | [OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required | User account password |
@@ -94,12 +95,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-```json title="Request schema"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
+```curl title="Request sample"
+curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
+--header 'accept: application/json, text/plain, */*' \
+--header 'Authorization: Basic ' \
+--header 'Content-Type: application/x-www-form-urlencoded' \
+--data-urlencode 'grant_type=password' \
+--data-urlencode 'username=user@iqm.com' \
+--data-urlencode 'password='
```
```json title="Response 200"
@@ -152,80 +155,6 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
```
-
-
-
-See [TypeScript prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
diff --git a/docs/quickstart-guides/insights-quickstart.mdx b/docs/quickstart-guides/insights-quickstart.mdx
index 8e6994ff..388a4e61 100644
--- a/docs/quickstart-guides/insights-quickstart.mdx
+++ b/docs/quickstart-guides/insights-quickstart.mdx
@@ -65,8 +65,8 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
| Request schema | |
| ---- | --- |
-| `grantType`
string required | [OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required | User account password |
@@ -74,12 +74,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-```json title="Request schema"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
+```curl title="Request sample"
+curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
+--header 'accept: application/json, text/plain, */*' \
+--header 'Authorization: Basic ' \
+--header 'Content-Type: application/x-www-form-urlencoded' \
+--data-urlencode 'grant_type=password' \
+--data-urlencode 'username=user@iqm.com' \
+--data-urlencode 'password='
```
```json title="Response 200"
@@ -133,80 +135,6 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-
-
-
-See [TypeScript prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
diff --git a/docs/quickstart-guides/inventory-quickstart.mdx b/docs/quickstart-guides/inventory-quickstart.mdx
index aad58bf7..367a3cbe 100644
--- a/docs/quickstart-guides/inventory-quickstart.mdx
+++ b/docs/quickstart-guides/inventory-quickstart.mdx
@@ -86,8 +86,8 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
| Request schema | |
| ----| --- |
-| `grantType`
string required | [OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required | User account password |
@@ -95,12 +95,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-```json title="Request sample"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
+```curl title="Request sample"
+curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
+--header 'accept: application/json, text/plain, */*' \
+--header 'Authorization: Basic ' \
+--header 'Content-Type: application/x-www-form-urlencoded' \
+--data-urlencode 'grant_type=password' \
+--data-urlencode 'username=user@iqm.com' \
+--data-urlencode 'password='
```
```json title="Response 200"
@@ -154,80 +156,6 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-
-
-
-See [TypeScript prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
diff --git a/docs/quickstart-guides/matched-audience-upload-api-quickstart-guide.mdx b/docs/quickstart-guides/matched-audience-upload-api-quickstart-guide.mdx
index c8b06386..3cfe01df 100644
--- a/docs/quickstart-guides/matched-audience-upload-api-quickstart-guide.mdx
+++ b/docs/quickstart-guides/matched-audience-upload-api-quickstart-guide.mdx
@@ -103,8 +103,8 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
| Request schema | |
| ---- | --- |
-| `grantType`
string required | [OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required| User account password |
@@ -112,12 +112,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-```json title="Request sample"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
+```curl title="Request sample"
+curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
+--header 'accept: application/json, text/plain, */*' \
+--header 'Authorization: Basic ' \
+--header 'Content-Type: application/x-www-form-urlencoded' \
+--data-urlencode 'grant_type=password' \
+--data-urlencode 'username=user@iqm.com' \
+--data-urlencode 'password='
```
```json title="Response 200"
@@ -171,80 +173,6 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-
-
-
-See [TypeScript prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
diff --git a/docs/quickstart-guides/reporting-api-quickstart-guide.mdx b/docs/quickstart-guides/reporting-api-quickstart-guide.mdx
index 53ce501c..ff8bb4ac 100644
--- a/docs/quickstart-guides/reporting-api-quickstart-guide.mdx
+++ b/docs/quickstart-guides/reporting-api-quickstart-guide.mdx
@@ -79,8 +79,8 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
| Request schema | |
| ----| --- |
-| `grantType`
string required | [OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required | User account password |
@@ -88,12 +88,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-```json title="Request sample"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
+```curl title="Request sample"
+curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
+--header 'accept: application/json, text/plain, */*' \
+--header 'Authorization: Basic ' \
+--header 'Content-Type: application/x-www-form-urlencoded' \
+--data-urlencode 'grant_type=password' \
+--data-urlencode 'username=user@iqm.com' \
+--data-urlencode 'password='
```
```json title="Response 200"
@@ -147,80 +149,6 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-
-
-
-See [TypeScript prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
diff --git a/docs/quickstart-guides/schedule-report-api-quickstart-guide.mdx b/docs/quickstart-guides/schedule-report-api-quickstart-guide.mdx
index 033518cb..f9c3d9b9 100644
--- a/docs/quickstart-guides/schedule-report-api-quickstart-guide.mdx
+++ b/docs/quickstart-guides/schedule-report-api-quickstart-guide.mdx
@@ -71,8 +71,8 @@ To log in, the Authentication: Basic header is required. The Login AP
| Request schema | |
| ---- | --- |
-| `grantType`
string required | [OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required | User account password |
@@ -80,12 +80,14 @@ To log in, the Authentication: Basic header is required. The Login AP
-```json title="Request sample"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
+```curl title="Request sample"
+curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
+--header 'accept: application/json, text/plain, */*' \
+--header 'Authorization: Basic ' \
+--header 'Content-Type: application/x-www-form-urlencoded' \
+--data-urlencode 'grant_type=password' \
+--data-urlencode 'username=user@iqm.com' \
+--data-urlencode 'password='
```
```json title="Response 200"
@@ -139,80 +141,6 @@ To log in, the Authentication: Basic header is required. The Login AP
-
-
-
-See [TypeScript prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
diff --git a/docs/quickstart-guides/upload-a-creative-quickstart.mdx b/docs/quickstart-guides/upload-a-creative-quickstart.mdx
index 542791ec..60f2f89f 100644
--- a/docs/quickstart-guides/upload-a-creative-quickstart.mdx
+++ b/docs/quickstart-guides/upload-a-creative-quickstart.mdx
@@ -97,8 +97,8 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
| Request schema | |
| ---- | --- |
-| `grantType`
string required | [OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required | User account password |
@@ -106,12 +106,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-```json title="Request sample"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
+```curl title="Request sample"
+curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
+--header 'accept: application/json, text/plain, */*' \
+--header 'Authorization: Basic ' \
+--header 'Content-Type: application/x-www-form-urlencoded' \
+--data-urlencode 'grant_type=password' \
+--data-urlencode 'username=user@iqm.com' \
+--data-urlencode 'password='
```
```json title="Response 200"
@@ -166,80 +168,6 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
```
-
-
-
-See [TypeScript Prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
diff --git a/docs/quickstart-guides/upload-creative-and-create-a-campaign-api-quickstart-guide.mdx b/docs/quickstart-guides/upload-creative-and-create-a-campaign-api-quickstart-guide.mdx
index c6d4e905..b4340e9a 100644
--- a/docs/quickstart-guides/upload-creative-and-create-a-campaign-api-quickstart-guide.mdx
+++ b/docs/quickstart-guides/upload-creative-and-create-a-campaign-api-quickstart-guide.mdx
@@ -90,8 +90,8 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
| Request schema | |
| ---- | --- |
-| `grantType`
string required | [OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required | User account password |
@@ -99,12 +99,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-```json title="Request sample"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
+```curl title="Request sample"
+curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
+--header 'accept: application/json, text/plain, */*' \
+--header 'Authorization: Basic ' \
+--header 'Content-Type: application/x-www-form-urlencoded' \
+--data-urlencode 'grant_type=password' \
+--data-urlencode 'username=user@iqm.com' \
+--data-urlencode 'password='
```
```json title="Response 200"
@@ -157,80 +159,6 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
```
-
-
-
-See [TypeScript prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
diff --git a/docs/tutorials/customer-guide.mdx b/docs/tutorials/customer-guide.mdx
index e5e1776d..110a25e2 100644
--- a/docs/tutorials/customer-guide.mdx
+++ b/docs/tutorials/customer-guide.mdx
@@ -57,8 +57,8 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
| Request schema | |
| ---- | --- |
-| `grantType`
string required | [OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required| User account password |
@@ -66,12 +66,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-```json title="Request sample"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
+```curl title="Request sample"
+curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
+--header 'accept: application/json, text/plain, */*' \
+--header 'Authorization: Basic ' \
+--header 'Content-Type: application/x-www-form-urlencoded' \
+--data-urlencode 'grant_type=password' \
+--data-urlencode 'username=user@iqm.com' \
+--data-urlencode 'password='
```
```json title="Response 200"
@@ -125,80 +127,6 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-
-
-
-See [TypeScript prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
diff --git a/docs/tutorials/deal-guide.mdx b/docs/tutorials/deal-guide.mdx
index 131ccf44..6b82e7cf 100644
--- a/docs/tutorials/deal-guide.mdx
+++ b/docs/tutorials/deal-guide.mdx
@@ -54,8 +54,8 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
| Request schema | |
| ---- | --- |
-| `grantType`
string required | [OAuth Grant Types](https://oauth.net/2/grant-types/) |
-| `email`
string required | User account email |
+| `grant_type`
string required | password for login
[OAuth Grant Types](https://oauth.net/2/grant-types/) |
+| `username`
string required | User account email |
| `password`
string required| User account password |
@@ -63,12 +63,14 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-```json title="Request sample"
-{
- "grantType": "password",
- "email": "pratik.t+ihp@iqm.com",
- "password": "123456"
-}
+```curl title="Request sample"
+curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
+--header 'accept: application/json, text/plain, */*' \
+--header 'Authorization: Basic ' \
+--header 'Content-Type: application/x-www-form-urlencoded' \
+--data-urlencode 'grant_type=password' \
+--data-urlencode 'username=user@iqm.com' \
+--data-urlencode 'password='
```
```json title="Response 200"
@@ -122,80 +124,6 @@ For further information see [OAuth token](/guidelines/user-api#oauth-token).
-
-
-
-See [TypeScript prerequisites](/getting-started/typescript-prerequisites.mdx) page for usage.
-
-```ts
-import {
- getInstance
-} from "prerequisites"
-
-const axios = getInstance();
-
-interface Responses {
- 200: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- access_token: string;
- refresh_token: string;
- scope: string;
- token_type: string;
- expires_in: number;
- owId: number;
- };
- };
- };
- };
- 400: {
- content: {
- "application/json": {
- success: boolean;
- data: {
- status: string;
- reason: string;
- supportEmail: string;
- };
- errorObjects: {
- error: string;
- reason: string;
- }[];
- };
- };
- };
- 403: {
- content: {
- "application/json": {
- success: boolean;
- errorObjects: {
- error: string;
- }[];
- };
- };
- };
-};
-
-function Login(): Promise < Responses > {
- const options = {
- method: 'POST',
- url: 'https://api.iqm.com/api/v3/ua/login',
- requestBody: {
- content: {
- "application/json": {
- email: `string`,
- password: `string`,
- }
- }
- }
- };
-
- return axios.request(options).then(({ data }: { data: Responses }) => data);
-}
-```
-
diff --git a/sidebars.js b/sidebars.js
index 1a9fa9c2..2520b919 100644
--- a/sidebars.js
+++ b/sidebars.js
@@ -4808,13 +4808,6 @@ const sidebars = {
label: 'Authentication',
className: 'sidebarItem',
items: [
- {
- type: 'link',
- label: 'Login',
- href: '/guidelines/user-api#login',
- customProps: { method: 'POST' },
- className: 'sidebarItem'
- },
{
type: 'link',
label: 'OAuth token',