---
title: Retrieve Vet Schedule
slug: retrieve-vet-schedule
docTags: 
createdAt: 2026-04-21T15:22:49.957Z
---

{
  "id": "QKhm-dfC-qYJQwxTZ3jql",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://developer.digitail.io/api/v1/vets/{id}/schedule",
    "servers": [
      {
        "url": "https://developer.digitail.io/api/v1/vets/{id}/schedule",
        "description": "Sandbox server (uses test data)"
      },
      {
        "url": "https://vet.digitail.io/api/v1/vets/{id}/schedule",
        "description": "Production server (uses live data)"
      }
    ],
    "name": "Retrieve Vet Schedule",
    "description": "<p>Permissions needed: NONE\nGet Schedule by Clinic id and Vet id</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "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",
          "format": "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>",
          "format": "date"
        },
        {
          "kind": "optional",
          "name": "visit_type_id",
          "type": "integer",
          "description": "<p>visit_type_id for calc available slots, required one of service_id, visit_type_id or duration</p>"
        },
        {
          "kind": "optional",
          "name": "duration",
          "type": "integer",
          "description": "<p>duration in minutes for calc available slots, required one of visit_type_id or duration</p>"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "passport",
          "name": "passport",
          "kind": "optional",
          "type": "oauth2",
          "description": "Laravel passport oauth2 security.",
          "oauth2Flows": {
            "authorizationCode": {
              "authorizationUrl": "https://digitail.test/oauth/authorize",
              "tokenUrl": "https://digitail.test/oauth/token",
              "refreshUrl": "https://digitail.test/oauth/token"
            }
          }
        },
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "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",
                    "format": "date"
                  },
                  {
                    "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",
                        "format": "date-time"
                      },
                      {
                        "name": "end_time",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "",
                        "example": "2022-02-22T10:30:00.000000Z",
                        "format": "date-time"
                      }
                    ]
                  },
                  {
                    "name": "appointments",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "id",
                        "kind": "optional",
                        "type": "integer",
                        "description": ""
                      },
                      {
                        "name": "start_time",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "",
                        "example": "2022-02-22T10:00:00.000000Z",
                        "format": "date-time"
                      },
                      {
                        "name": "end_time",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "",
                        "example": "2022-02-22T10:30:00.000000Z",
                        "format": "date-time"
                      }
                    ]
                  },
                  {
                    "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",
                        "format": "date-time"
                      },
                      {
                        "name": "end_time",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "",
                        "example": "2022-02-22T10:30:00.000000Z",
                        "format": "date-time"
                      }
                    ]
                  },
                  {
                    "name": "shift_rules",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "id",
                        "kind": "optional",
                        "type": "integer",
                        "description": ""
                      },
                      {
                        "name": "name",
                        "kind": "optional",
                        "type": "string",
                        "nullable": true,
                        "description": ""
                      },
                      {
                        "name": "time_start",
                        "kind": "optional",
                        "type": "string",
                        "description": "",
                        "example": "11:00:00"
                      },
                      {
                        "name": "time_end",
                        "kind": "optional",
                        "type": "string",
                        "description": "",
                        "example": "12:00:00"
                      },
                      {
                        "name": "color",
                        "kind": "optional",
                        "type": "string",
                        "nullable": true,
                        "description": "",
                        "example": "#FF0000"
                      },
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string<available | unbookable>",
                        "description": "",
                        "enum": [
                          "available",
                          "unbookable"
                        ]
                      },
                      {
                        "name": "visit_types",
                        "kind": "optional",
                        "type": "array",
                        "nullable": true,
                        "description": "",
                        "modelRef": "#/paths/~1api~1v1~1records/post/responses/201/content/application~1json/schema/properties/data/properties/visit_types/items",
                        "customType": "items[]",
                        "schema": []
                      }
                    ]
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "aBMX-3zOhTHPtUMD8np6r",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url 'https://developer.digitail.io/api/v1/vets/{id}/schedule?filter[clinic_id]=integer&filter[start_date]=2023-07-01' \\\n     --header 'accept: application/json'"
        },
        {
          "id": "aMKTxBUoXwpp6MgJoLIah",
          "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://developer.digitail.io/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": "c-BG5HThgGcaRRMFI9C4m",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://developer.digitail.io/api/v1/vets/{id}/schedule?filter[clinic_id]=integer&filter[start_date]=2023-07-01\")\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": "n082v2cGsJflJlitYvASa",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://developer.digitail.io/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": "aBMX-3zOhTHPtUMD8np6r"
    },
    "results": {
      "languages": [
        {
          "id": "5J7TUdQnhDAOQJipckXoa",
          "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      \"shift_rules\": [\n        {\n          \"id\": 0,\n          \"name\": \"\",\n          \"time_start\": \"11:00:00\",\n          \"time_end\": \"12:00:00\",\n          \"color\": \"#FF0000\",\n          \"type\": \"\",\n          \"visit_types\": [\n            \"\"\n          ]\n        }\n      ]\n    }\n  ]\n}"
        }
      ],
      "selectedLanguageId": "5J7TUdQnhDAOQJipckXoa"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}