{"openapi":"3.0.3","info":{"title":"IntelliDent Public API","description":"Read-only access to a dental organisation's own IntelliDent data, for its integrations. Available on the Enterprise plan.\n\nOrganisation owners and admins create keys in Settings → API. Send the key as `Authorization: Bearer idt_live_…` or in an `X-API-Key` header.\nEach key has scopes (`appointments:read`, `patients:read`, `agents:read`, `usage:read`) and a per-minute limit (default 60, at most 600).\nResponses use the envelope `{ success, data, error }`.","version":"1.0.0","contact":{"name":"IntelliDent Support","email":"support@intellident.com.au"}},"servers":[{"url":"https://intellident.com.au","description":"Production"}],"tags":[{"name":"Appointments","description":"Scheduling data for the organisation’s appointments."},{"name":"Patients","description":"Patient contact records."},{"name":"Agents","description":"The organisation’s AI agents."},{"name":"Usage","description":"Plan usage for the current billing period."}],"components":{"securitySchemes":{"apiKeyBearer":{"type":"http","scheme":"bearer","bearerFormat":"idt_live_…","description":"Authorization: Bearer YOUR_API_KEY"},"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Used instead of Authorization when both are sent."}},"schemas":{"Error":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Human-readable explanation. Do not parse it."},"code":{"type":"string","description":"Stable, machine-readable error code. Branch on this."},"details":{"description":"Extra context for some errors, such as the request id of a server error."}}},"requestId":{"type":"string","description":"Present on most errors. Quote it when contacting support."},"timestamp":{"type":"string","format":"date-time"}}},"Appointment":{"type":"object","description":"Scheduling fields only. Clinical notes, free text and contact details are never returned.","properties":{"id":{"type":"string","nullable":true,"description":"Appointment id."},"centerId":{"type":"string","nullable":true,"description":"The centre (practice location) the appointment is at."},"patientId":{"type":"string","nullable":true,"description":"The patient. Look the patient up with the patients:read scope."},"dentistUserId":{"type":"string","nullable":true,"description":"The practitioner, when one is assigned."},"type":{"type":"string","nullable":true,"description":"Appointment type, for example `checkup` or `cleaning`."},"status":{"type":"string","nullable":true,"description":"One of `scheduled`, `confirmed`, `checked_in`, `in_progress`, `completed`, `cancelled`, `no_show`, `rescheduled`."},"startTime":{"type":"string","nullable":true,"format":"date-time","description":"Start, ISO 8601 in UTC (`…Z`). A time stored without a timezone is returned as stored, and is read as UTC by `from`, `to` and the sort order."},"endTime":{"type":"string","nullable":true,"format":"date-time","description":"End, ISO 8601 in UTC (`…Z`). A time stored without a timezone is returned as stored."},"duration":{"type":"number","nullable":true,"description":"Length in minutes."},"source":{"type":"string","nullable":true,"description":"How it was created, for example `ai_agent` or `voice_agent` for AI bookings. Null when not recorded."},"createdAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","nullable":true,"format":"date-time"}}},"Patient":{"type":"object","description":"A patient contact record. A field the record does not have is omitted.","properties":{"id":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"status":{"type":"string"}}},"Agent":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","description":"Agent type: `dental_voice` (phone receptionist), `website_chat`, `custom`, or a legacy type."},"isActive":{"type":"boolean"}}},"UsageMetric":{"type":"object","properties":{"metric":{"type":"string","enum":["tokens","voice_minutes","sms","agents","storage_bytes","vector_chunks","ai_calls"]},"limit":{"type":"number","description":"Plan allowance for the period."},"amount":{"type":"number","description":"Used so far this period."},"percentUsed":{"type":"integer"},"warning":{"type":"boolean","description":"Near the allowance but not over it."},"exceeded":{"type":"boolean"}}},"Usage":{"type":"object","properties":{"period":{"type":"string","description":"Billing period as `YYYY-MM`."},"periodResetAt":{"type":"string","format":"date-time"},"plan":{"type":"string"},"metrics":{"type":"array","items":{"$ref":"#/components/schemas/UsageMetric"}},"anyWarning":{"type":"boolean"},"anyExceeded":{"type":"boolean"}}},"Pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"total":{"type":"integer","description":"Matching records across all pages."},"totalPages":{"type":"integer"}}}}},"security":[{"apiKeyBearer":[]},{"apiKeyHeader":[]}],"paths":{"/api/v1/appointments":{"get":{"operationId":"listAppointments","tags":["Appointments"],"summary":"List appointments","description":"Appointments of the key’s organisation, across all of its centres, sorted by start time (earliest first). Deleted appointments are excluded. Scheduling fields only.","x-required-scope":"appointments:read","parameters":[{"name":"from","in":"query","required":false,"description":"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.","schema":{"type":"string","format":"date-time"},"example":"2026-11-20T00:00:00Z"},{"name":"to","in":"query","required":false,"description":"Only appointments ending at or before this time. ISO 8601 with `Z` or an offset. Compared as an instant.","schema":{"type":"string","format":"date-time"},"example":"2026-11-27T00:00:00Z"},{"name":"limit","in":"query","required":false,"description":"Page size, a whole number from 1 to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":100}},{"name":"page","in":"query","required":false,"description":"Page number, from 1.","schema":{"type":"integer","minimum":1,"default":1}}],"responses":{"200":{"description":"A page of appointments.","content":{"application/json":{"schema":{"type":"object","required":["success","data","pagination"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Appointment"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"`from` or `to` is not a date, or `limit` or `page` is out of range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"VALIDATION_ERROR","message":"limit must be a whole number from 1 to 100"}}}}},"401":{"description":"No API key (UNAUTHORIZED), or the key is unknown, revoked or expired (INVALID_API_KEY).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"INVALID_API_KEY","message":"Invalid or revoked API key"}}}}},"403":{"description":"The key lacks the scope (INSUFFICIENT_SCOPE), the organisation is not on the Enterprise plan (PLAN_REQUIRED), or the account is not active (ACCOUNT_NOT_ACTIVE).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"INSUFFICIENT_SCOPE","message":"Insufficient scope"}}}}},"429":{"description":"Over the key's per-minute limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"RATE_LIMITED","message":"Too many requests. Please try again later."}}}},"headers":{"Retry-After":{"description":"Seconds until the current one-minute window ends.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server error. `error.details.requestId` identifies it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"INTERNAL_ERROR","message":"Internal server error"}}}}},"503":{"description":"The rate limiter could not count the request, so it was refused. Retry after Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"RATE_LIMIT_UNAVAILABLE","message":"Service temporarily unavailable. Please try again shortly."}}}},"headers":{"Retry-After":{"description":"Seconds until the current one-minute window ends.","schema":{"type":"integer"}}}}},"x-response-example":{"success":true,"data":[{"id":"6740b1c2a9e3f1d2c3b4a501","centerId":"6740a0f1a9e3f1d2c3b4a001","patientId":"6740a8d3a9e3f1d2c3b4a311","dentistUserId":"6740a2b4a9e3f1d2c3b4a102","type":"checkup","status":"scheduled","startTime":"2026-11-24T23:00:00.000Z","endTime":"2026-11-24T23:30:00.000Z","duration":30,"source":"ai_agent","createdAt":"2026-11-19T04:12:09.000Z","updatedAt":"2026-11-19T04:12:09.000Z"}],"pagination":{"page":1,"limit":100,"total":1,"totalPages":1}}}},"/api/v1/patients":{"get":{"operationId":"listPatients","tags":["Patients"],"summary":"List patients","description":"Patient records of the key’s organisation (deleted records excluded): name, phone, email and status. Oldest record first, paginated. There are no filters yet.","x-required-scope":"patients:read","parameters":[{"name":"limit","in":"query","required":false,"description":"Page size, a whole number from 1 to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":100}},{"name":"page","in":"query","required":false,"description":"Page number, from 1.","schema":{"type":"integer","minimum":1,"default":1}}],"responses":{"200":{"description":"A page of patients.","content":{"application/json":{"schema":{"type":"object","required":["success","data","pagination"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/Patient"}},"requestId":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"`limit` or `page` is out of range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"VALIDATION_ERROR","message":"limit must be a whole number from 1 to 100"}}}}},"401":{"description":"No API key (UNAUTHORIZED), or the key is unknown, revoked or expired (INVALID_API_KEY).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"INVALID_API_KEY","message":"Invalid or revoked API key"}}}}},"403":{"description":"The key lacks the scope (INSUFFICIENT_SCOPE), the organisation is not on the Enterprise plan (PLAN_REQUIRED), or the account is not active (ACCOUNT_NOT_ACTIVE).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"INSUFFICIENT_SCOPE","message":"Insufficient scope"}}}}},"429":{"description":"Over the key's per-minute limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"RATE_LIMITED","message":"Too many requests. Please try again later."}}}},"headers":{"Retry-After":{"description":"Seconds until the current one-minute window ends.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server error. `error.details.requestId` identifies it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"INTERNAL_ERROR","message":"Internal server error"}}}}},"503":{"description":"The rate limiter could not count the request, so it was refused. Retry after Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"RATE_LIMIT_UNAVAILABLE","message":"Service temporarily unavailable. Please try again shortly."}}}},"headers":{"Retry-After":{"description":"Seconds until the current one-minute window ends.","schema":{"type":"integer"}}}}},"x-response-example":{"success":true,"data":[{"id":"6740a8d3a9e3f1d2c3b4a311","name":"Alex Sample","phone":"+61400000000","email":"alex.sample@example.com","status":"active"}],"pagination":{"page":1,"limit":100,"total":1,"totalPages":1},"requestId":"7d1f5c2e-3b8a-4c6e-9f10-2a4b6c8d0e1f","timestamp":"2026-11-20T01:15:00.000Z"}}},"/api/v1/agents":{"get":{"operationId":"listAgents","tags":["Agents"],"summary":"List AI agents","description":"Every AI agent of the key’s organisation, active or not.","x-required-scope":"agents:read","parameters":[],"responses":{"200":{"description":"Agents.","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Agent"}},"requestId":{"type":"string"},"timestamp":{"type":"string","format":"date-time"}}}}}},"401":{"description":"No API key (UNAUTHORIZED), or the key is unknown, revoked or expired (INVALID_API_KEY).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"INVALID_API_KEY","message":"Invalid or revoked API key"}}}}},"403":{"description":"The key lacks the scope (INSUFFICIENT_SCOPE), the organisation is not on the Enterprise plan (PLAN_REQUIRED), or the account is not active (ACCOUNT_NOT_ACTIVE).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"INSUFFICIENT_SCOPE","message":"Insufficient scope"}}}}},"429":{"description":"Over the key's per-minute limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"RATE_LIMITED","message":"Too many requests. Please try again later."}}}},"headers":{"Retry-After":{"description":"Seconds until the current one-minute window ends.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server error. `error.details.requestId` identifies it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"INTERNAL_ERROR","message":"Internal server error"}}}}},"503":{"description":"The rate limiter could not count the request, so it was refused. Retry after Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"RATE_LIMIT_UNAVAILABLE","message":"Service temporarily unavailable. Please try again shortly."}}}},"headers":{"Retry-After":{"description":"Seconds until the current one-minute window ends.","schema":{"type":"integer"}}}}},"x-response-example":{"success":true,"data":[{"id":"6740a3c5a9e3f1d2c3b4a201","name":"Front desk (phone)","type":"dental_voice","isActive":true},{"id":"6740a3c5a9e3f1d2c3b4a202","name":"Website assistant","type":"website_chat","isActive":false}],"requestId":"7d1f5c2e-3b8a-4c6e-9f10-2a4b6c8d0e1f","timestamp":"2026-11-20T01:15:00.000Z"}}},"/api/v1/usage":{"get":{"operationId":"getUsage","tags":["Usage"],"summary":"Get usage","description":"Plan usage for the current billing period: one entry for each of the seven metrics. Limits depend on the plan; the example values are illustrative.","x-required-scope":"usage:read","parameters":[],"responses":{"200":{"description":"Usage snapshot.","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Usage"},"requestId":{"type":"string"},"timestamp":{"type":"string","format":"date-time"}}}}}},"401":{"description":"No API key (UNAUTHORIZED), or the key is unknown, revoked or expired (INVALID_API_KEY).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"INVALID_API_KEY","message":"Invalid or revoked API key"}}}}},"403":{"description":"The key lacks the scope (INSUFFICIENT_SCOPE), the organisation is not on the Enterprise plan (PLAN_REQUIRED), or the account is not active (ACCOUNT_NOT_ACTIVE).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"INSUFFICIENT_SCOPE","message":"Insufficient scope"}}}}},"429":{"description":"Over the key's per-minute limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"RATE_LIMITED","message":"Too many requests. Please try again later."}}}},"headers":{"Retry-After":{"description":"Seconds until the current one-minute window ends.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server error. `error.details.requestId` identifies it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"INTERNAL_ERROR","message":"Internal server error"}}}}},"503":{"description":"The rate limiter could not count the request, so it was refused. Retry after Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"success":false,"error":{"code":"RATE_LIMIT_UNAVAILABLE","message":"Service temporarily unavailable. Please try again shortly."}}}},"headers":{"Retry-After":{"description":"Seconds until the current one-minute window ends.","schema":{"type":"integer"}}}}},"x-response-example":{"success":true,"data":{"period":"2026-11","periodResetAt":"2026-12-01T00:00:00.000Z","plan":"enterprise","metrics":[{"metric":"tokens","limit":5000000,"amount":1250000,"percentUsed":25,"warning":false,"exceeded":false},{"metric":"voice_minutes","limit":3000,"amount":412,"percentUsed":14,"warning":false,"exceeded":false},{"metric":"sms","limit":2000,"amount":1790,"percentUsed":90,"warning":true,"exceeded":false},{"metric":"agents","limit":20,"amount":3,"percentUsed":15,"warning":false,"exceeded":false},{"metric":"storage_bytes","limit":10737418240,"amount":52428800,"percentUsed":0,"warning":false,"exceeded":false},{"metric":"vector_chunks","limit":100000,"amount":2400,"percentUsed":2,"warning":false,"exceeded":false},{"metric":"ai_calls","limit":20000,"amount":3100,"percentUsed":16,"warning":false,"exceeded":false}],"anyWarning":true,"anyExceeded":false},"requestId":"7d1f5c2e-3b8a-4c6e-9f10-2a4b6c8d0e1f","timestamp":"2026-11-20T01:15:00.000Z"}}}}}