{
  "info": {
    "_postman_id": "2e211aef-37a7-51bf-a6b7-50fc9908896c",
    "name": "Qlara API - Social profiles",
    "description": "The Social profiles section of API Reference in the Qlara documentation.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "id": "f172a518-3b7d-590a-ad57-3f91203ea066",
      "name": "List connected social profiles",
      "request": {
        "name": "List connected social profiles",
        "description": {
          "content": "Returns the social media profiles connected to your account.\n\n- **What a profile is**: an authenticated connection to an external platform, such as Facebook, Instagram, LinkedIn, Google Business Profile, TikTok or YouTube. Profiles are connected from the web dashboard, through the OAuth flow of the platform: this API cannot connect them.\n- **Each entry** carries the platform, username, profile name, profile picture URL, connection date, a `disconnected` flag and the number of linked pages or sub-accounts (`pageCount`).\n- **`platform` is not a closed list**: it is the code the connection is stored under. Besides `facebook`, `instagram`, `linkedin`, `google`, `tiktok` and `youtube` it can be a calendar connection such as `google_calendar` or `gcal_booking`, so accept values you do not know.\n- **Pages only**: when only pages or sub-accounts are connected (for example a YouTube channel), `username`, `profileName`, `profilePicture`, `connectionDate` and `disconnected` are null and `pageCount` counts the pages.\n- **`disconnected` true**: the OAuth token has expired or been revoked. Connect the profile again from the web dashboard.\n\nFor the pages and sub-accounts of a platform, call `GET /socials/{platform}` with the `platform` of an entry.",
          "type": "text/plain"
        },
        "url": {
          "path": [
            "api",
            "partner-gateway",
            "socials"
          ],
          "host": [
            "{{baseUrl}}"
          ],
          "query": [],
          "variable": []
        },
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "method": "GET",
        "auth": {
          "type": "apikey",
          "apikey": [
            {
              "key": "key",
              "value": "X-API-Key"
            },
            {
              "key": "value",
              "value": "{{apiKey}}"
            },
            {
              "key": "in",
              "value": "header"
            }
          ]
        }
      },
      "response": [
        {
          "id": "c1b722eb-b5cf-5d9f-ae05-dd1757d7b1d4",
          "name": "The connected social profiles.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "OK",
          "code": 200,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "[\n  {\n    \"platform\": \"facebook\",\n    \"username\": \"string\",\n    \"profileName\": \"string\",\n    \"profilePicture\": \"string\",\n    \"connectionDate\": \"string\",\n    \"disconnected\": true,\n    \"pageCount\": 4699\n  },\n  {\n    \"platform\": \"facebook\",\n    \"username\": \"string\",\n    \"profileName\": \"string\",\n    \"profilePicture\": \"string\",\n    \"connectionDate\": \"string\",\n    \"disconnected\": true,\n    \"pageCount\": 7714\n  }\n]",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "484393f6-d94d-569f-a38a-0b46182be88a",
          "name": "The API key is missing, invalid, or lacks the `SOCIALS` operation.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Unauthorized",
          "code": 401,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "ef3f436f-4e68-5837-a894-823a16bd1821",
          "name": "The profile service failed or did not answer in time. Retry with backoff.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Internal Server Error",
          "code": 500,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "19bbbc12-60a5-58fe-ade1-54d0c2d1930d",
          "name": "The profile service is unavailable. Retry with backoff.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Bad Gateway",
          "code": 502,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "40b3df23-0e0f-5d69-ae1d-4fe76df26783",
          "name": "The profile service is unavailable. Retry with backoff.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Service Unavailable",
          "code": 503,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "b8d3f17f-5773-5c26-ada7-8110ceeac5e6",
          "name": "The profile service did not answer in time. Retry with backoff.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Gateway Timeout",
          "code": 504,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        }
      ],
      "event": [],
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      }
    },
    {
      "id": "0b18ddba-c2ca-5eca-a86f-5f2457293e2a",
      "name": "Get social profile detail",
      "request": {
        "name": "Get social profile detail",
        "description": {
          "content": "Returns one connected social platform in full, with all its linked pages or sub-accounts, such as the Facebook Pages managed by the connected Facebook profile.\n\n- **`platform`** is the `platform` value of an entry of `GET /socials`, matched case-insensitively: for example `facebook`, `instagram`, `linkedin`, `google` (Google Business Profile), `tiktok`, `youtube`, or a calendar connection such as `google_calendar` or `gcal_booking`.\n- **Profile**: username, profile name, picture, website, biography, link count, connection date and `disconnected` flag.\n- **`pages`**: for each page, its ID, name, profile picture, username, website, biography, link count, connection and expiration dates and a `disconnected` flag.\n- **Pages only**: when only pages or sub-accounts are connected (for example a YouTube channel), the profile fields are null and the connection is described by `pages` alone.\n\nUse it to list the pages or sub-accounts of a connection, for example to choose the Facebook Page to publish to.",
          "type": "text/plain"
        },
        "url": {
          "path": [
            "api",
            "partner-gateway",
            "socials",
            ":platform"
          ],
          "host": [
            "{{baseUrl}}"
          ],
          "query": [],
          "variable": [
            {
              "disabled": false,
              "type": "any",
              "value": "facebook",
              "key": "platform",
              "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
            }
          ]
        },
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "method": "GET",
        "auth": {
          "type": "apikey",
          "apikey": [
            {
              "key": "key",
              "value": "X-API-Key"
            },
            {
              "key": "value",
              "value": "{{apiKey}}"
            },
            {
              "key": "in",
              "value": "header"
            }
          ]
        }
      },
      "response": [
        {
          "id": "da33ac52-1a36-5e62-add7-ade9395a947f",
          "name": "The social profile, with its pages.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials",
                ":platform"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "facebook",
                  "key": "platform",
                  "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "OK",
          "code": 200,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "{\n  \"platform\": \"facebook\",\n  \"username\": \"string\",\n  \"profileName\": \"string\",\n  \"profilePicture\": \"string\",\n  \"website\": \"string\",\n  \"biography\": \"string\",\n  \"linksCount\": 7513,\n  \"connectionDate\": \"string\",\n  \"disconnected\": true,\n  \"pages\": [\n    {\n      \"pageId\": \"string\",\n      \"pageName\": \"string\",\n      \"profilePicture\": \"string\",\n      \"username\": \"string\",\n      \"website\": \"string\",\n      \"biography\": \"string\",\n      \"linksCount\": 8222,\n      \"connectionDate\": \"string\",\n      \"expireDate\": \"string\",\n      \"disconnected\": false\n    },\n    {\n      \"pageId\": \"string\",\n      \"pageName\": \"string\",\n      \"profilePicture\": \"string\",\n      \"username\": \"string\",\n      \"website\": \"string\",\n      \"biography\": \"string\",\n      \"linksCount\": 2166,\n      \"connectionDate\": \"string\",\n      \"expireDate\": \"string\",\n      \"disconnected\": false\n    }\n  ]\n}",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "bac8265d-45cd-59f2-a248-3fd8bdf17c42",
          "name": "The API key is missing, invalid, or lacks the `SOCIALS` operation.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials",
                ":platform"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "facebook",
                  "key": "platform",
                  "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Unauthorized",
          "code": 401,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "a24490ea-a510-55a3-a548-173516ed0832",
          "name": "No connected profile for this platform: it was never connected, or it has been removed.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials",
                ":platform"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "facebook",
                  "key": "platform",
                  "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Not Found",
          "code": 404,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "d576822a-a67b-549a-ada8-bf47027cb55f",
          "name": "The profile service failed or did not answer in time. Retry with backoff.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials",
                ":platform"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "facebook",
                  "key": "platform",
                  "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Internal Server Error",
          "code": 500,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "844a4644-79c6-5f0c-ac7e-73cce5ec1018",
          "name": "The profile service is unavailable. Retry with backoff.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials",
                ":platform"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "facebook",
                  "key": "platform",
                  "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Bad Gateway",
          "code": 502,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "09d42b0f-40d2-56d8-afef-a23ee2df0aa7",
          "name": "The profile service is unavailable. Retry with backoff.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials",
                ":platform"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "facebook",
                  "key": "platform",
                  "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Service Unavailable",
          "code": 503,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "3d85ba95-d520-5b00-a1e0-8da07119e29b",
          "name": "The profile service did not answer in time. Retry with backoff.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "socials",
                ":platform"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "facebook",
                  "key": "platform",
                  "description": "(Required) The `platform` value of an entry of `GET /socials`, case-insensitive: for example `facebook`, `instagram`, `linkedin`, `google`, `tiktok`, `youtube` or `google_calendar`."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Gateway Timeout",
          "code": 504,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        }
      ],
      "event": [],
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      }
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "X-Api-Key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.qlara.ai",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "YOUR_API_KEY",
      "type": "string"
    }
  ]
}
