PetSpace API
Photos of a home space in, a pet-safety and comfort report out. Machine-readable spec: /api/openapi.json.
Authenticate
curl -H "Authorization: Bearer $PETSPACE_KEY" https://petspace.sensifai.com/api/v1/spaces
Create keys on the dashboard under Settings. Only POST /api/v1/analyses is billed, and only once the analysis is delivered.
Analyse a space
curl -X POST -H "Authorization: Bearer $PETSPACE_KEY" \ -F [email protected] -F space_kind=living_room -F budget_eur=150 -F activity=play -F activity=climb \ -F 'pet={"species":"cat","age":"young","mobility":"full"}' -F restriction=no_drill \ https://petspace.sensifai.com/api/v1/analyses # 202 {"job_id":"...","poll":"/api/v1/jobs/..."} curl -H "Authorization: Bearer $PETSPACE_KEY" https://petspace.sensifai.com/api/v1/analyses/JOB_ID
What if? Re-plan with a new budget (free)
curl -X POST -H "Authorization: Bearer $PETSPACE_KEY" -H "Content-Type: application/json" \
-d '{"context":{"budget_eur":300}}' \
https://petspace.sensifai.com/api/v1/analyses/JOB_ID/replanConfirm what a photo cannot show (free)
curl -X POST -H "Authorization: Bearer $PETSPACE_KEY" -H "Content-Type: application/json" \
-d '{"plants":{"e4":"monstera"},"storage":{"e9":true},"acknowledge":["all"]}' \
https://petspace.sensifai.com/api/v1/analyses/JOB_ID/confirm
A report is a guide to what the photos show, never a statement that a home is safe.