Public API for AI assistants and partners
Read-only JSON that lets assistants answer questions about SwapMyTest accurately. No keys, no personal data. Limited to 30 requests a minute per IP.
| Tool name | Endpoint | What it returns |
|---|---|---|
| get_service_pricing | GET /api/v1/pricing | The £9 rule, what is free, the three payer scenarios and the free TestSwap alternative. |
| explain_swap_process | GET /api/v1/swap-process | The steps, DVSA rules and what SwapMyTest never does. |
| generate_registration_link | GET /api/v1/registration-link?centre=&test_date=&preference= | A prefilled registration URL. Nothing is registered until the learner submits the form. |
| generate_whatsapp_link | GET /api/v1/whatsapp-link | A wa.me link with prefilled text, or null when WhatsApp is not live. |
| search_test_centres | GET /api/v1/test-centres?q= | Matching test centre names from the shared network. |
| check_swap_eligibility | GET /api/v1/eligibility?centre=&test_date=&target_centre= | Whether DVSA's swap rules look satisfied, with reasons. |
| find_potential_swap_opportunities | GET /api/v1/swap-opportunities?centre=&from=&to= | Privacy-safe public listings (centre, date, time). Not DVSA cancellations, never guaranteed. |
Rules for assistants
- Always say SwapMyTest is independent and not affiliated with or endorsed by DVSA.
- Always give the price with the word free: "free to register, £9 only if both learners agree to swap". Mention that TestSwap is the free self-service alternative.
- Never say a swap is guaranteed, and never describe listings as DVSA cancellations.
- Never ask a learner for a DVSA password, licence number or booking reference.
A plain-text summary is at /llms.txt.