---
title: Get appointments report as CSV
slug: get-appointments-report-as-csv
docTags: 
createdAt: 2026-04-21T15:22:49.957Z
---

{
  "id": "riNvU7udvuzi-4KKd7oLi",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://developer.digitail.io/api/v1/reports/appointments/export-csv",
    "servers": [
      {
        "url": "https://developer.digitail.io/api/v1/reports/appointments/export-csv",
        "description": "Sandbox server (uses test data)"
      },
      {
        "url": "https://vet.digitail.io/api/v1/reports/appointments/export-csv",
        "description": "Production server (uses live data)"
      }
    ],
    "name": "Get appointments report as CSV",
    "description": "Get appointments report as CSV",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/csv",
            "application/json"
          ],
          "default": "application/csv"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "filter[vet_id]",
          "type": "string",
          "description": "Filter by vet ID"
        },
        {
          "kind": "optional",
          "name": "filter[source]",
          "type": "string",
          "description": "<p><code>0</code> - Clinic <code>1</code> - Web <code>2</code> - App</p>"
        },
        {
          "kind": "optional",
          "name": "filter[status]",
          "type": "string",
          "description": "<p><code>0</code> - Pending <code>1</code> - Pending Client Approval <code>2</code> - Pending Clinic Approval <code>3</code> - Rescheduled Clinic Approval <code>4</code> - Rescheduled Client Approval <code>5</code> - Confirmed <code>6</code> - Canceled By Client <code>7</code> - Canceled By Clinic' <code>8</code> - Automatically Created' <code>9</code> - No Show</p>"
        },
        {
          "kind": "optional",
          "name": "filter[date_between]",
          "type": "array",
          "description": "<p>Dates Between (start_date, end_date), format: YYYY-MM-DD</p>",
          "schema": [],
          "itemType": "string",
          "customType": "string[]"
        },
        {
          "kind": "optional",
          "name": "filter[visit_type_id]",
          "type": "string",
          "description": "Filter by visit type ID"
        },
        {
          "kind": "optional",
          "name": "sort",
          "type": "string",
          "description": "<p>Sorting(ex: 'datetime_start_utc', 'datetime_end_utc', 'clinic_id', 'vet_id')</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
      },
      {
        "statusCode": "202",
        "description": "Accepted",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "rbhxW9ICYcAAwx3RB3Fg8",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://developer.digitail.io/api/v1/reports/appointments/export-csv \\\n     --header 'accept: application/csv'"
        },
        {
          "id": "LEOntuzRf6d7BCUpvdLUv",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/csv\");\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/reports/appointments/export-csv\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "RuG61WgPXJEZwCtwDIUdv",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://developer.digitail.io/api/v1/reports/appointments/export-csv\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/csv\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "nOqTYYX4PuOSnQj8RSeqV",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://developer.digitail.io/api/v1/reports/appointments/export-csv\"\n\npayload = {}\nheaders = {\n   'accept': 'application/csv',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "rbhxW9ICYcAAwx3RB3Fg8"
    },
    "results": {
      "languages": [
        {
          "id": "_4eEinPahqpqzZEDvaN_c",
          "language": "200",
          "code": "// successful operation\n"
        },
        {
          "id": "maEINkmdOiK61IK2KvkdF",
          "language": "202",
          "code": "// Accepted\n"
        }
      ],
      "selectedLanguageId": "_4eEinPahqpqzZEDvaN_c"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}