API Documentation
Photo Analysis
API Documentation
Photo Analysis
POST
/
api
/
v1
/
analysis
/
image
Copy
curl --request POST \
--url 'http://{{baseurl}}/api/v1/analysis/image' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"imageUrl": "https://ulgucrkicfwmrtwjntxa.supabase.co/storage/v1/object/public/public_photos/prop/3335/preview.png",
"imageName": "3335",
"uid": "3335"
},
{
"imageUrl": "https://ulgucrkicfwmrtwjntxa.supabase.co/storage/v1/object/public/public_photos/prop/3331/preview.png",
"imageName": "3331",
"uid": "3331"
},
{
"imageUrl": "https://ulgucrkicfwmrtwjntxa.supabase.co/storage/v1/object/public/public_photos/prop/3338/preview.png",
"imageName": "3338",
"uid": "3338"
}
]'
Copy
{
"imageId": "1bdba808-c1ec-48f0-88f4-d54dde42de8d",
"analysis": {
"category": "Front of Structure",
"condition": 8,
"confidence": 9,
"explanation": "The front of the structure appears to be in good condition. The exterior walls and roof look well-maintained, and the driveway is clear and in good shape. There are no visible signs of damage or significant wear."
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json · object
Response
200 - application/json
OK
The response is of type object
.
Copy
curl --request POST \
--url 'http://{{baseurl}}/api/v1/analysis/image' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"imageUrl": "https://ulgucrkicfwmrtwjntxa.supabase.co/storage/v1/object/public/public_photos/prop/3335/preview.png",
"imageName": "3335",
"uid": "3335"
},
{
"imageUrl": "https://ulgucrkicfwmrtwjntxa.supabase.co/storage/v1/object/public/public_photos/prop/3331/preview.png",
"imageName": "3331",
"uid": "3331"
},
{
"imageUrl": "https://ulgucrkicfwmrtwjntxa.supabase.co/storage/v1/object/public/public_photos/prop/3338/preview.png",
"imageName": "3338",
"uid": "3338"
}
]'
Copy
{
"imageId": "1bdba808-c1ec-48f0-88f4-d54dde42de8d",
"analysis": {
"category": "Front of Structure",
"condition": 8,
"confidence": 9,
"explanation": "The front of the structure appears to be in good condition. The exterior walls and roof look well-maintained, and the driveway is clear and in good shape. There are no visible signs of damage or significant wear."
}
}