Carregar uma fotografia de prova
RegistosPOST /evidence-photos
Upload an evidence photo (JPEG or PNG, up to 8 MiB)
Stores a photo taken with a reading or a field order and returns the reference to send as photo_evidence, evidence_photo or in evidence_ids. The content is verified by its bytes; the storage location is generated by the server. Retrying with the same client_key and the same photo returns the original record and stores nothing new. Requires the business:evidence-photos:create scope.
Devolve
200 The photo already stored under this client key
Mostrar atributos
idtenant_idclient_keyreferenceValue to store on the reading or field order, of the form evidence://{id}.
content_typeum de
image/jpeg,image/pngsize_bytesuploaded_bycreated_at
Permissões business:evidence-photos:create · Funções: admin, field_reader, field_supervisor, operations, owner
curl -X POST "$BUSINESS_API/evidence-photos" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/evidence-photos", {
method: "POST",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.post(
"$BUSINESS_API/evidence-photos",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("POST", "$BUSINESS_API/evidence-photos", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"id": "idx_2xBW8Tr0oR5YsrNoIdzQO7t4Gjn",
"tenant_id": "ten_2ugFXIC316WXzGu1HGal90AxTA6",
"client_key": "client key",
"reference": "REF-2026-000142",
"content_type": "image/jpeg",
"size_bytes": 1,
"uploaded_by": "uploaded by",
"created_at": "2026-11-19T09:30:00Z"
}