Case Notes API

Retrieve external case notes for a service provider or client.


Base Information

  • Namespace: wedatatools/v1
  • Allowed Methods: GET

Endpoint

Path

/wp-json/wedatatools/v1/external/case-notes

Full URL (example)

https://example.com/wp-json/wedatatools/v1/external/case-notes

Method

GET

Authorization

This endpoint requires authentication using an application key issued for a specific user.

Authentication Method

Requests are authenticated using HTTP Basic Authentication.

  • Username: the username provided to you
  • Password: the application key provided to you

The application key functions as a dedicated API credential and is used in place of an account password.

Request Example

Example using curl:

curl -u username:application-key \
  "https://example.com/wp-json/wedatatools/v1/external/case-notes"

This sends an Authorization header in the following form:

Authorization: Basic base64(username:application-key)

Security Notes

  • Application keys should be kept secret and treated like passwords.
  • Requests must be made over HTTPS to protect credentials in transit.
  • Do not embed application keys directly in client-side code.

Error Responses

If authentication fails, the API will return one of the following:

  • 401 Unauthorized – missing or invalid credentials
  • 403 Forbidden – credentials are valid but lack permission to access this resource

Query Parameters

ParameterTypeRequiredDefaultConstraintsDescription
clientReferenceNumberstring (nullable)NonullFormat: text-fieldReturn case notes for a specific client by their CaMS Client Reference Number.
fromDatestring (nullable)NonullFormat: date-time (ISO8601)Return case notes created after the specified date (ISO8601 format).
perPageintegerNo20Min: 1, Max: 100How many case note results to return in a given request.
pageintegerNo1Min: 1Specify the page number of the results.
sortstringNodate-descAllowed: date-desc, date-ascSpecify a strategy to order the results.

Examples

1) Default request

GET /wp-json/wedatatools/v1/external/case-notes

2) Filter by client reference number

GET /wp-json/wedatatools/v1/external/case-notes?clientReferenceNumber=123456

3) Pagination + sorting

GET /wp-json/wedatatools/v1/external/case-notes?perPage=50&page=2&sort=date-asc

4) Filter by creation date

Return case notes created after January 1, 2024 (ISO8601 format).

GET /wp-json/wedatatools/v1/external/case-notes?fromDate=2024-01-01T00:00:00Z

Notes

  • If clientReferenceNumber is omitted, the endpoint returns case notes without filtering by client.
  • perPage is capped at 100.
  • Use sort=date-desc for newest-first (default) or sort=date-asc for oldest-first.