Resources

SDKs & examples

A request builder and copy-paste examples in cURL, TypeScript and Python.

SDKsLink to this section

There is no official SDK yet. The API is plain HTTPS and JSON, so any HTTP client works. The examples here use fetch (Node.js 18 and later) and Python’s requests. To generate a typed client, point an OpenAPI generator at /developers/openapi.json.

Request builderLink to this section

Pick an endpoint, fill in its parameters, and copy a ready-to-run request.

GETNeeds scope appointments:read

Only appointments starting at or after this time. ISO 8601 with `Z` or an offset. Compared as an instant, whatever format the appointment was stored in.

Only appointments ending at or before this time. ISO 8601 with `Z` or an offset. Compared as an instant.

Page size, a whole number from 1 to 100.

Page number, from 1.

Your request

curl "https://intellident.com.au/api/v1/appointments" \
  -H "Authorization: Bearer YOUR_API_KEY"

Nothing is sent from this page and no key is entered here. Replace YOUR_API_KEY on your own server or terminal.

Why there is no “Try it” button

IntelliDent has no sandbox yet, so every API key is a production key with access to real practice data. Typing such a key into a web page puts it at risk, so this builder only writes the request. Run it from your own terminal or server.

RecipesLink to this section

Fetch every appointment in a date range

const BASE = "https://intellident.com.au/api/v1/appointments";
const headers = { Authorization: `Bearer ${process.env.INTELLIDENT_API_KEY}` };

/** Every appointment between two times, following the page numbers. */
export async function allAppointments(from: string, to: string) {
  const all: Array<Record<string, unknown>> = [];
  for (let page = 1; ; page++) {
    const url = `${BASE}?from=${encodeURIComponent(from)}&to=${encodeURIComponent(to)}&limit=100&page=${page}`;
    const res = await fetch(url, { headers });
    const body = await res.json();
    if (!res.ok) throw new Error(`${res.status} ${body.error?.code}`);
    all.push(...body.data);
    if (page >= body.pagination.totalPages) return all;
  }
}

Warn before a plan allowance runs out

/** Alert when any plan allowance is at its warning level or used up. */
export async function checkUsage() {
  const res = await fetch("https://intellident.com.au/api/v1/usage", {
    headers: { Authorization: `Bearer ${process.env.INTELLIDENT_API_KEY}` },
  });
  const { data } = await res.json();
  for (const m of data.metrics) {
    if (m.exceeded) console.warn(`${m.metric}: allowance used up (${m.amount}/${m.limit})`);
    else if (m.warning) console.warn(`${m.metric}: ${m.percentUsed}% used`);
  }
}