ข้ามไปยังเนื้อหาหลัก
← Developer portal

API Reference

Base URL: https://tasmaew.com /api/public

Response envelope

Every endpoint returns { data, meta, links }. Errors follow RFC 9457 (application/problem+json).

System

GET/api/public/health

Liveness check

GET/api/public/openapi.json

OpenAPI 3.1 spec

Veterinary Clinics

GET/api/public/vets

List veterinary clinics

Parameters
  • zonestringFilter by district/zone
  • emergencybooleanOnly emergency-ready
  • is_24hrbooleanOnly 24-hour clinics
  • verifiedbooleanOnly verified clinics
  • limit1-50Results per page
  • cursorstringPagination cursor
GET/api/public/vets/{id}

Single vet detail

Parameters
  • iduuidrequiredClinic id
GET/api/public/vets/nearby

Geo search

Parameters
  • latnumberrequired-90..90
  • lngnumberrequired-180..180
  • radiusnumberkm, default 10, max 100
  • emergencybooleanEmergency only
  • is_24hrboolean24hr only
  • limit1-50Max results
GET/api/public/vets/emergency

List 24hr/emergency clinics

Parameters
  • zonestringFilter by zone
  • only_24hrbooleanStrictly 24hr

Shop Products

GET/api/public/shop/products

List cat products

Parameters
  • categoryfood|toys|health|accessoriesCategory filter
  • min_pricenumberMin THB
  • max_pricenumberMax THB
  • qstringSearch name

Adopt

GET/api/public/adopt/cats

List adoptable cats

Parameters
  • colorstringCoat color
  • districtstringDistrict
  • vaccinatedbooleanVaccinated only
  • neuteredbooleanNeutered only

Breeds

GET/api/public/breeds

List cat breeds

Parameters
  • qstringSearch name/origin
GET/api/public/breeds/{slug}

Single breed

Parameters
  • slugstringrequirede.g. persian, siamese

Search

GET/api/public/search

Unified search

Parameters
  • qstringrequiredMin 2 chars
  • typeall|vets|products|adopt|breedsScope