---
title: Retrieve available external providers
slug: docs/demo/retrieve-available-external-providers
description: Learn how to use the curl command to effortlessly send a GET request to a desired URL, with this comprehensive code example. Enhance your skills by understanding how to include headers for accepting and transmitting JSON data. Streamline your coding proce
docTags: 
createdAt: 2022-03-21T20:12:45.000Z
---

{
  "id": "ozNHZOFC9gLzdJ4kjbTTM",
  "data": {
    "url": "https://api.fictive.com/REST/api/accounts/{accountReference}/external-providers",
    "name": "Retrieve available external providers",
    "method": "GET",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "accountReference",
          "type": "string"
        }
      ],
      "queryParameters": [],
      "headerParameters": [
        {
          "kind": "optional",
          "name": "X-TokenId",
          "type": "string",
          "description": "The eSuite Token Id"
        },
        {
          "kind": "optional",
          "name": "X-SessionId",
          "type": "string",
          "description": "The eSuite Session Id"
        },
        {
          "kind": "required",
          "name": "X-Version",
          "type": "string",
          "description": "The eSuite Version"
        },
        {
          "kind": "optional",
          "name": "Origin",
          "type": "string",
          "description": "The eSuite Origin"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": []
    },
    "responses": [
      {
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "schema": [
              {
                "kind": "optional",
                "name": "providerName",
                "type": "string",
                "example": "",
                "description": "The name of 3rd party authentication provider"
              },
              {
                "kind": "optional",
                "name": "accountLinked",
                "type": "boolean",
                "example": "",
                "description": "The account status"
              }
            ],
            "modelRef": "#/definitions/FictiveGlobal.Api.Rest.Dtos.v1.UserAuthenticationProvider",
            "customType": "FictiveGlobal.Api.Rest.Dtos.v1.UserAuthenticationProvider[]",
            "isExpanded": true,
            "description": "Third party authentication provider info"
          }
        ],
        "isExpanded": true,
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "[\n  {\n    \"providerName\": \"FakeProviderA\",\n    \"accountLinked\": true\n  },\n  {\n    \"providerName\": \"FakeProviderB\",\n    \"accountLinked\": false\n  },\n  {\n    \"providerName\": \"JanrainProvider\",\n    \"accountLinked\": false\n  },\n  {\n    \"providerName\": \"FacebookProvider\",\n    \"accountLinked\": false\n  },\n  {\n    \"providerName\": \"YahooJapanProvider\",\n    \"accountLinked\": false\n  }\n]"
      },
      {
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "schema": [
              {
                "kind": "optional",
                "name": "providerName",
                "type": "string",
                "example": "",
                "description": "The name of 3rd party authentication provider"
              },
              {
                "kind": "optional",
                "name": "accountLinked",
                "type": "boolean",
                "example": "",
                "description": "The account status"
              }
            ],
            "modelRef": "#/definitions/FictiveGlobal.Api.Rest.Dtos.v1.UserAuthenticationProvider",
            "customType": "FictiveGlobal.Api.Rest.Dtos.v1.UserAuthenticationProvider[]",
            "isExpanded": true,
            "description": "Third party authentication provider info"
          }
        ],
        "isExpanded": true,
        "statusCode": "204",
        "description": "No Content.",
        "jsonExample": ""
      },
      {
        "isExpanded": true,
        "statusCode": "401",
        "description": "Not Authorized",
        "jsonExample": ""
      },
      {
        "isExpanded": true,
        "statusCode": "500",
        "description": "Internal Server Error",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "This endpoint will provide the ability to display to an account the available external providers they can authenticate or link with e.g. Facebook",
    "examples": {
      "languages": [
        {
          "id": "LP1aNLVbVfjxr3wg4v_SQ",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.fictive.com/REST/api/accounts/{accountReference}/external-providers \\\n     --header 'accept: application/json' \\\n     --header 'x-version: string'"
        },
        {
          "id": "7gTGSs9ckfsdVm-SP8apc",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-version\", \"string\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.fictive.com/REST/api/accounts/{accountReference}/external-providers\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "u7Ffny4vhGkv5yQkIr0JF",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.fictive.com/REST/api/accounts/{accountReference}/external-providers\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-version\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "Islymjx89lEatmkImd5qB",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.fictive.com/REST/api/accounts/{accountReference}/external-providers\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-version': 'string'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "LP1aNLVbVfjxr3wg4v_SQ"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "[\n  {\n    \"providerName\": \"FakeProviderA\",\n    \"accountLinked\": true\n  },\n  {\n    \"providerName\": \"FakeProviderB\",\n    \"accountLinked\": false\n  },\n  {\n    \"providerName\": \"JanrainProvider\",\n    \"accountLinked\": false\n  },\n  {\n    \"providerName\": \"FacebookProvider\",\n    \"accountLinked\": false\n  },\n  {\n    \"providerName\": \"YahooJapanProvider\",\n    \"accountLinked\": false\n  }\n]"
        },
        {
          "id": "response-1-204",
          "language": "204",
          "code": "// No Content.\n[\n  {\n    \"providerName\": \"\",\n    \"accountLinked\": false\n  }\n]"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// Not Authorized\n"
        },
        {
          "id": "response-3-500",
          "language": "500",
          "code": "// Internal Server Error\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}