---
title: Get the List of Vets from a clinic
slug: import-test-pdf/get-the-list-of-vets-from-a-clinic
createdAt: 2025-10-28T16:28:34.277Z
---

{
  "id": "85Nn8ArIv9D0DqscHgpC-",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/api/v1/vets",
    "servers": [],
    "name": "Get the List of Vets from a clinic",
    "description": "Returns the Vet list",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "filter[email]",
          "type": "string",
          "description": "Vet email"
        },
        {
          "kind": "optional",
          "name": "filter[status]",
          "type": "boolean",
          "description": "Filter only by vets that are active. Exclude to get all vets."
        },
        {
          "kind": "optional",
          "name": "include",
          "type": "string",
          "description": "<p>Additional info to include. You can use multiple, comma separated.  Options: multipleClinic, vetRolesAll, services, employee.chatUser. employee.chatUser manages has_chat_user attribute, true if chatUser is active, false if non-existent or inactive</p>"
        },
        {
          "kind": "optional",
          "name": "sort",
          "type": "string",
          "description": "<p>Order by field(s) (status, first_name) Use a minus before for descending order -status</p>"
        },
        {
          "kind": "optional",
          "name": "per_page",
          "type": "integer",
          "description": "Number of items to retrieve per page",
          "default": 15
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "successful operation",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "data",
                "kind": "optional",
                "type": "array",
                "description": "",
                "modelRef": "#/components/schemas/Vet",
                "customType": "Vet[]",
                "schema": [
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "integer",
                    "description": "",
                    "example": 1
                  },
                  {
                    "name": "first_name",
                    "kind": "optional",
                    "type": "integer",
                    "description": "",
                    "example": "John"
                  },
                  {
                    "name": "last_name",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Doe"
                  },
                  {
                    "name": "full_name",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "John Doe"
                  },
                  {
                    "name": "name_with_title",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Dr. John Doe"
                  },
                  {
                    "name": "email",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "vet@example.com"
                  },
                  {
                    "name": "phone",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "123456789"
                  },
                  {
                    "name": "avatar",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "https://vet.digitail.io/images/profilepic.jpg"
                  },
                  {
                    "name": "stamp",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "https://vet.digitail.io/images/signature.jpg"
                  },
                  {
                    "name": "license_number",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "123456789"
                  },
                  {
                    "name": "job_title",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Dr."
                  },
                  {
                    "name": "deleted_at",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "description": "",
                    "example": ""
                  },
                  {
                    "name": "active",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "",
                    "example": true
                  },
                  {
                    "name": "video_link",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "https://digitail.com/video"
                  },
                  {
                    "name": "public_appointment_link",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "https://digitail.com/clinics/clinic-slug/vet-slug"
                  },
                  {
                    "name": "type",
                    "kind": "optional",
                    "type": "string<veterinarian | technician | groomer>",
                    "description": "",
                    "example": ""
                  },
                  {
                    "name": "two_factor_enabled",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "",
                    "example": true
                  },
                  {
                    "name": "has_chat_user",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "true if chatUser is active, false if non-existent or inactive",
                    "example": true
                  }
                ]
              },
              {
                "name": "links",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/paths/~1api~1v1~1pets/get/responses/200/content/application~1json/schema/properties/links",
                "customType": "links",
                "schema": []
              },
              {
                "name": "meta",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/paths/~1api~1v1~1pets/get/responses/200/content/application~1json/schema/properties/meta",
                "customType": "meta",
                "schema": []
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url '/api/v1/vets?per_page=15' \\\n     --header 'accept: application/json'"
        },
        {
          "id": "example-1-javascript",
          "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(\"/api/v1/vets?per_page=15\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/api/v1/vets?per_page=15\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/api/v1/vets?per_page=15\"\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"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// successful operation\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"first_name\": \"John\",\n      \"last_name\": \"Doe\",\n      \"full_name\": \"John Doe\",\n      \"name_with_title\": \"Dr. John Doe\",\n      \"email\": \"vet@example.com\",\n      \"phone\": \"123456789\",\n      \"avatar\": \"https://vet.digitail.io/images/profilepic.jpg\",\n      \"stamp\": \"https://vet.digitail.io/images/signature.jpg\",\n      \"license_number\": \"123456789\",\n      \"job_title\": \"Dr.\",\n      \"deleted_at\": \"\",\n      \"active\": true,\n      \"video_link\": \"https://digitail.com/video\",\n      \"public_appointment_link\": \"https://digitail.com/clinics/clinic-slug/vet-slug\",\n      \"type\": \"\",\n      \"two_factor_enabled\": true,\n      \"has_chat_user\": true\n    }\n  ],\n  \"links\": {},\n  \"meta\": {}\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}