---
agentTools:
  projectIndex: https://docs.oncallhealth.io/llms.txt
---

# Query casenotes

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "oncall",
    "version": "1.2"
  },
  "servers": [
    {
      "url": "https://api.oncallhealth.ca"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/casenotes/": {
      "get": {
        "summary": "Query casenotes",
        "description": "",
        "operationId": "query-appointment-requestsss",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"count\": 3,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": 766553,\n            \"appointment\": \"https://api.oncallhealth.ca/appointments/973104/\",\n            \"versions\": \"https://api.oncallhealth.ca/casenotes/766553/casenoteversions/\"\n        },\n        {\n            \"id\": 773222,\n            \"appointment\": \"https://api.oncallhealth.ca/appointments/976592/\",\n            \"versions\": \"https://api.oncallhealth.ca/casenotes/773222/casenoteversions/\"\n        },\n        {\n            \"id\": 781491,\n            \"appointment\": \"https://api.oncallhealth.ca/appointments/983895/\",\n            \"versions\": \"https://api.oncallhealth.ca/casenotes/781491/casenoteversions/\"\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer",
                      "example": 3,
                      "default": 0
                    },
                    "next": {},
                    "previous": {},
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 766553,
                            "default": 0
                          },
                          "appointment": {
                            "type": "string",
                            "example": "https://api.oncallhealth.ca/appointments/973104/"
                          },
                          "versions": {
                            "type": "string",
                            "example": "https://api.oncallhealth.ca/casenotes/766553/casenoteversions/"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Authorization",
        "value": "Token YOUR_PROVIDER_TOKEN"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "62e03e9f2e494c003d6f7e00:62e03e9f2e494c003d6f7e5d"
}
```