---
title: Get a list with Testimonials for a specific website via workspace id.
slug: get-a-list-with-testimonials-for-a-specific-website-via-workspace-id
docTags: 
createdAt: 2025-08-10T07:26:32.596Z
---

{
  "id": "WhUCEICa1HhHBCsC-43sr",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.usetrust.app/v1/testimonial/all/{workspaceId}",
    "servers": [],
    "name": "Get a list with Testimonials for a specific website via workspace id.",
    "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 testimonials.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "TestimonialApiDb[]",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "string<uuid>",
                "example": ""
              },
              {
                "name": "workspaceId",
                "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": "title",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "subtitle",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "company",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "email",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "imageUrl",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "testimonialText",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "externalVideoHtml",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "videoVideoUrl",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "socialMediaProfiles",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "stars",
                "kind": "optional",
                "type": "number<float>",
                "example": ""
              },
              {
                "name": "gaveConsent",
                "kind": "optional",
                "type": "boolean",
                "example": ""
              },
              {
                "name": "consentDateTime",
                "kind": "optional",
                "type": "string<date-time>",
                "example": ""
              },
              {
                "name": "published",
                "kind": "optional",
                "type": "boolean",
                "example": ""
              },
              {
                "name": "questionsAndAnswers",
                "kind": "optional",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/TestimonialApiDb",
            "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": "401",
        "description": "Unauthorized",
        "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": "kLvGM9EL6GXNXJ0zQxJh7",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.usetrust.app/v1/testimonial/all/{workspaceId} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "brsBUXNEYdPaYOhHYKodB",
          "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/testimonial/all/{workspaceId}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "OE6APh2i4qDkHXGCWnop2",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.usetrust.app/v1/testimonial/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": "rq3whlKVqN3trgG8VE3r2",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.usetrust.app/v1/testimonial/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": "LQeFinNWM7ss16KPX0SM0",
          "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/testimonial/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": "kLvGM9EL6GXNXJ0zQxJh7"
    },
    "results": {
      "languages": [
        {
          "id": "5xoeUHlT6GgkCKFrvMV1f",
          "language": "200",
          "code": "// Returns a list with all testimonials.\n[\n  {\n    \"id\": \"\",\n    \"workspaceId\": \"\",\n    \"created\": \"\",\n    \"firstname\": \"\",\n    \"lastname\": \"\",\n    \"title\": \"\",\n    \"subtitle\": \"\",\n    \"company\": \"\",\n    \"email\": \"\",\n    \"imageUrl\": \"\",\n    \"testimonialText\": \"\",\n    \"externalVideoHtml\": \"\",\n    \"videoVideoUrl\": \"\",\n    \"socialMediaProfiles\": \"\",\n    \"stars\": \"\",\n    \"gaveConsent\": false,\n    \"consentDateTime\": \"\",\n    \"published\": false,\n    \"questionsAndAnswers\": \"\"\n  }\n]"
        },
        {
          "id": "rogO5oiP8bYNygei2SEtm",
          "language": "204",
          "code": "// No Content\n"
        },
        {
          "id": "LOnpwWmkXvO7Tvo9sdX28",
          "language": "400",
          "code": "// Bad Request\n\"\""
        },
        {
          "id": "2kRNCdKlyemSdbd2jYbHx",
          "language": "401",
          "code": "// Unauthorized\n\"\""
        },
        {
          "id": "uRQRSPVrvnTWze4DjshZr",
          "language": "500",
          "code": "// Internal Server Error\n\"\""
        }
      ],
      "selectedLanguageId": "5xoeUHlT6GgkCKFrvMV1f"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}