Service Dog Standards Help

Find trainer

1. Get find trainer form

Endpoint

GET /api/v1/trainers/find_trainer

Request Headers

{ "X-API-Key": "your_tenant_api_key", "Authorization": "Bearer token here", //optional "Content-Type": "application/json" }

Request Body

{}

Expected Response

{ "success": true, "message": "Data retrieved successfully", "data": { "fields": [ { "label": "Use current location or type address", "name": "location", "type": "text", "required": true, "info": null, "visible_if": [], "value": null }, { "label": "Units", "name": "units", "type": "select", "required": true, "info": null, "visible_if": [], "value": "miles", "options": { "miles": "Miles", "km": "Kilometers" } }, { "label": "Distance", "name": "distance", "type": "number", "required": false, "info": null, "visible_if": [], "value": 25 }, { "label": "Find trainers willing to travel", "name": "willing_to_travel", "type": "checkbox", "required": false, "info": null, "visible_if": [], "value": false, "options": [] } ] } }

2. Send request to find trainer

Endpoint

POST /api/v1/trainers/find_trainer

Request Headers

{ "X-API-Key": "your_tenant_api_key", "Authorization": "Bearer token here", //optional "Content-Type": "application/json" }

Request Body

{ "location": "49.4377765, 27.0010315", "units": "miles", "distance": 25, "willing_to_travel": false }

Expected Response

{ "success": true, "message": "Data retrieved successfully", "data": { "fields": [ { "label": "Use current location or type address", "name": "location", "type": "text", "required": true, "info": null, "visible_if": [], "value": "49.4377765, 27.0010315" }, { "label": "Units", "name": "units", "type": "select", "required": true, "info": null, "visible_if": [], "value": "miles", "options": { "miles": "Miles", "km": "Kilometers" } }, { "label": "Distance", "name": "distance", "type": "number", "required": false, "info": null, "visible_if": [], "value": 25 }, { "label": "Find trainers willing to travel", "name": "willing_to_travel", "type": "checkbox", "required": false, "info": null, "visible_if": [], "value": false, "options": [] } ], "items": { "caregiver": [ { "id": 630, "full_name": "1 1 1", "subtitle": "Caregiver", "email": "[email protected]", "account_type": "caregiver", "photo": null, "distance": "Distance 1.2 miles", "profile_link": "http://localhost:3000/public-page/hid37f1a301542" }, { "id": 388, "full_name": "Daria Khatamova", "subtitle": "Caregiver", "email": "[email protected]", "account_type": "caregiver", "photo": null, "distance": "Distance 1.2 miles", "profile_link": "http://localhost:3000/public-page/as3aaa9199eabd" } ] } } }
31 March 2026