---
title: Get all Contacts specified by email.
slug: get-all-contacts-specified-by-email
docTags: 
createdAt: 2025-08-10T07:26:32.595Z
---

{
  "id": "X_SD48dVYH7FKGxZdPHAK",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.usetrust.app/v1/contacts",
    "servers": [],
    "name": "Get all Contacts specified by email.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "email",
          "type": "string",
          "description": "The email address of the contact."
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "basic",
          "name": "basic",
          "kind": "optional",
          "type": "http",
          "description": "Basic Authentication header",
          "scheme": "basic"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Returns a list of a contacts.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"contactId\":\"f7bbb440-cfe5-46c2-ac2a-f509e6ec79fc\",\"typeId\":\"00000000-0000-0000-0000-000000000000\",\"customerId\":\"dd20a8e3-0aec-4bdb-9036-78a075f2e706\",\"created\":\"2025-08-10T08:05:55.3899942Z\",\"firstName\":\"Carsten\",\"lastName\":\"Schaefer\",\"phone\":null,\"email\":\"support@usetrust.io\",\"imageUrl\":null}",
            "description": "",
            "customType": "ContactModel",
            "schema": [
              {
                "name": "contactId",
                "kind": "optional",
                "type": "string<uuid>",
                "example": ""
              },
              {
                "name": "typeId",
                "kind": "optional",
                "type": "string<uuid>",
                "example": ""
              },
              {
                "name": "customerId",
                "kind": "optional",
                "type": "string<uuid>",
                "example": ""
              },
              {
                "name": "created",
                "kind": "optional",
                "type": "string<date-time>",
                "example": ""
              },
              {
                "name": "firstName",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "lastName",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "phone",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "email",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "imageUrl",
                "kind": "optional",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/ContactModel",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad Request",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "Not Found",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "string",
            "description": "",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "Internal Server Error",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "503",
        "description": "Service Unavailable",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "qxKaqLbGwYuLCIV4cM4So",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.usetrust.app/v1/contacts \\\n     --header 'accept: application/json'"
        },
        {
          "id": "yxzcoG3MVZssvb1ur3NDl",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.usetrust.app/v1/contacts\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "XSAu3ClvegtzJkH4oYOTt",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.usetrust.app/v1/contacts\")\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\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "RrvH6Wk13UCkTeCqENQFe",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.usetrust.app/v1/contacts\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        },
        {
          "id": "7S9n9fY415L4y1JRTApB4",
          "language": "csharp",
          "label": "C#",
          "code": "var options = new RestClientOptions(\"https://api.usetrust.app\")\n{\n   MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"/v1/contacts\", Method.Get);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);"
        }
      ],
      "selectedLanguageId": "qxKaqLbGwYuLCIV4cM4So"
    },
    "results": {
      "languages": [
        {
          "id": "Ek0_tTKAW99P0njiwaJHJ",
          "language": "200",
          "code": "// Returns a list of a contacts.\n{\n  \"contactId\": \"\",\n  \"typeId\": \"\",\n  \"customerId\": \"\",\n  \"created\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"phone\": \"\",\n  \"email\": \"\",\n  \"imageUrl\": \"\"\n}"
        },
        {
          "id": "i_8Q5zPufsf7mnmAY0BLf",
          "language": "400",
          "code": "// Bad Request\n"
        },
        {
          "id": "QboSek7SmWI42OrlZwJnl",
          "language": "404",
          "code": "// Not Found\n\"\""
        },
        {
          "id": "P_6faBrn_ZJCMFafWxJrY",
          "language": "500",
          "code": "// Internal Server Error\n"
        },
        {
          "id": "nhtbkRAbHKIP9HpkQqw8-",
          "language": "503",
          "code": "// Service Unavailable\n"
        }
      ],
      "selectedLanguageId": "Ek0_tTKAW99P0njiwaJHJ"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}