Integration Reference
Last updated 3 months ago
KiviCare Telemedicine exposes several custom endpoints to handle settings and authentication flow in the React dashboard.
📍 Base Route
YOUR_SITE_URL/wp-json/kivicare/v1/settings/zoom-telemed/
🛠️ Settings & Config
1. [GET] /
- Capability:
administrator
- Result: Returns global Client ID, Secret, and Auth Type.
2. [POST/PUT] /
- Capability:
administrator
- Action: Updates global Zoom settings.
👨⚕️ Doctor Auth Flow
3. [GET] /doctor-config
- Capability:
doctor
- Result: Returns current connection status for the logged-in doctor.
4. [GET] /authorize
- Capability:
doctor
- Result: Generates the URL used to redirect the doctor to the Zoom Auth screen.
5. [GET] /callback
- Capability:
public
- Action: This is the redirect target. It exchanges the
code for a token and closes the connection.
🧪 Testing
6. [PUT] /test-connection
- Capability:
doctor / administrator
- Body:
{ client_id, client_secret, account_id, auth_type }
- Result: Returns
{ success: true } if credentials are valid.