---
title: Get Schedule by Clinic id and Vet id
slug: import-test-pdf/get-schedule-by-clinic-id-and-vet-id
createdAt: 2025-10-28T16:28:35.360Z
---

{
  "id": "2Y_OHLGpYBlq4uWxXQYJ0",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/api/v1/vets/{id}/schedule",
    "servers": [],
    "name": "Get Schedule by Clinic id and Vet id",
    "description": "Returns Vet Schedule",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "filter[clinic_id]",
          "type": "integer",
          "description": "clinic id"
        },
        {
          "kind": "required",
          "name": "filter[start_date]",
          "type": "string<date>",
          "example": "2023-07-01",
          "description": "Date"
        },
        {
          "kind": "optional",
          "name": "filter[end_date]",
          "type": "string<date>",
          "example": "2023-07-04",
          "description": "<p>Date, can be skipped for one day schedule</p>"
        },
        {
          "kind": "optional",
          "name": "service_id",
          "type": "integer",
          "description": "<p>service_id for calc available slots, required one of service_id or duration</p>"
        },
        {
          "kind": "optional",
          "name": "duration",
          "type": "integer",
          "description": "<p>duration in minutes for calc available slots, required one of service_id or duration</p>"
        }
      ],
      "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": "",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "weekday",
                    "kind": "optional",
                    "type": "integer",
                    "description": "",
                    "example": 1
                  },
                  {
                    "name": "is_open",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "",
                    "example": true
                  },
                  {
                    "name": "date",
                    "kind": "optional",
                    "type": "string<date>",
                    "description": "",
                    "example": "2022-02-22"
                  },
                  {
                    "name": "intervals",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "start_time",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "",
                        "example": "2022-02-22T10:00:00.000000Z"
                      },
                      {
                        "name": "end_time",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "",
                        "example": "2022-02-22T10:30:00.000000Z"
                      }
                    ]
                  },
                  {
                    "name": "appointments",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "id",
                        "kind": "optional",
                        "type": "integer",
                        "description": "",
                        "example": 0
                      },
                      {
                        "name": "start_time",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "",
                        "example": "2022-02-22T10:00:00.000000Z"
                      },
                      {
                        "name": "end_time",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "",
                        "example": "2022-02-22T10:30:00.000000Z"
                      }
                    ]
                  },
                  {
                    "name": "events",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "start_time",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "",
                        "example": "2022-02-22T10:00:00.000000Z"
                      },
                      {
                        "name": "end_time",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "",
                        "example": "2022-02-22T10:30:00.000000Z"
                      }
                    ]
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url '/api/v1/vets/{id}/schedule?filter[clinic_id]=integer&filter[start_date]=2023-07-01' \\\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/{id}/schedule?filter[clinic_id]=integer&filter[start_date]=2023-07-01\", 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/{id}/schedule?filter[clinic_id]=integer&filter[start_date]=2023-07-01\")\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/{id}/schedule?filter[clinic_id]=integer&filter[start_date]=2023-07-01\"\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      \"weekday\": 1,\n      \"is_open\": true,\n      \"date\": \"2022-02-22\",\n      \"intervals\": [\n        {\n          \"start_time\": \"2022-02-22T10:00:00.000000Z\",\n          \"end_time\": \"2022-02-22T10:30:00.000000Z\"\n        }\n      ],\n      \"appointments\": [\n        {\n          \"id\": 0,\n          \"start_time\": \"2022-02-22T10:00:00.000000Z\",\n          \"end_time\": \"2022-02-22T10:30:00.000000Z\"\n        }\n      ],\n      \"events\": [\n        {\n          \"start_time\": \"2022-02-22T10:00:00.000000Z\",\n          \"end_time\": \"2022-02-22T10:30:00.000000Z\"\n        }\n      ]\n    }\n  ]\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}