---
title: Get a list with Contacts.
slug: get-a-list-with-contacts
docTags: 
createdAt: 2025-08-10T07:26:32.595Z
---

{
  "id": "iZFIjyHltUCoKgrW5L9Wn",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.usetrust.app/v1/contacts/all/{workspaceId}",
    "servers": [],
    "name": "Get a list with Contacts.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "workspaceId",
          "type": "string",
          "description": "<p>The id of the registered workspace (format of Guid).</p>"
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "basic",
          "name": "basic",
          "kind": "optional",
          "type": "http",
          "description": "Basic Authentication header",
          "scheme": "basic"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Returns a list with all contacts.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "Contact[]",
            "schema": [
              {
                "name": "id",
                "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/Contact",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "204",
        "description": "No Content",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "400",
        "description": "Bad Request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "string",
            "description": "",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "Internal Server Error",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "string",
            "description": "",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "2tJVpIdtEW_K2BLuvN9Ir",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.usetrust.app/v1/contacts/all/{workspaceId} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "WjmIYu4I1QIn-Lve6ePVZ",
          "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/all/{workspaceId}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "HOxanLxg6Gx33WpMKkBn8",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.usetrust.app/v1/contacts/all/{workspaceId}\")\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": "OV4AKYIfmUflf2JIjmNdK",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.usetrust.app/v1/contacts/all/{workspaceId}\"\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": "ceYDNKBMyuFh8W2hPU_M1",
          "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/all/{workspaceId}\", Method.Get);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);"
        }
      ],
      "selectedLanguageId": "2tJVpIdtEW_K2BLuvN9Ir"
    },
    "results": {
      "languages": [
        {
          "id": "1oWUEb6ji0oMViXbfToQQ",
          "language": "200",
          "code": "// Returns a list with all contacts.\n[\n  {\n    \"id\": \"\",\n    \"created\": \"\",\n    \"firstName\": \"\",\n    \"lastName\": \"\",\n    \"phone\": \"\",\n    \"email\": \"\",\n    \"imageUrl\": \"\"\n  }\n]"
        },
        {
          "id": "Fgjub61cUkZgEvu_W-V3f",
          "language": "204",
          "code": "// No Content\n"
        },
        {
          "id": "ZK--8BWFQEhUpc7R9sXjg",
          "language": "400",
          "code": "// Bad Request\n\"\""
        },
        {
          "id": "CNON74CeoW_x04UDvmcpA",
          "language": "500",
          "code": "// Internal Server Error\n\"\""
        }
      ],
      "selectedLanguageId": "1oWUEb6ji0oMViXbfToQQ"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}