curl --location --request POST 'https://api-pruebas.phoqo.cl/pruebas/v1/documents/TEST' \
--header 'empresa: ' \
--header 'grupo: ' \
--header 'x-application: PHOQO' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": "completed",
"dentist": {
"id": "ed66827b-6e20-42c1-bcaf-780781215cdb",
"email": "pia+10@febos.cl",
"identificationNumber": "18019240-9",
"name": "Usuario Prueba Phoqo"
},
"medicalCenter": {
"clinicId": "9688aa20-bb75-4c4d-aaa9-927c78df4c21",
"companyId": "d6baef78-d4f0-457a-a119-7ebbbd4cdee8",
"identification": "55505836-5",
"name": "Clinica QA",
"status": "active",
"dateCreation": "2023-03-15T12:43:01+00:00",
"dateUpdate": "2023-03-21T21:03:26+00:00"
},
"patient": {
"id": "b3160703-9620-4742-913a-109e7d8e3691",
"birthDate": "1993-03-18T00:00:00+00:00",
"identificationNumber": "12345678-5",
"lastName": "miranda",
"name": "claudio",
"email": "claudio@febos.cl",
"gender": "male",
"source": "internal"
},
"technician": {
"id": "claudio_miranda_pizarro",
"email": "claudio@febos.cl",
"identificationNumber": "18331089-5",
"name": "Claudio Bryan Miranda Pizarro"
},
"urgency": "medium",
"medicalDiagnosis": "diagnostico",
"observations": "observaciones",
"company": "d6baef78-d4f0-457a-a119-7ebbbd4cdee8",
"isControl": false,
"exams": [
{
"name": "Retroalveolar unit",
"isChild": false,
"isADA": false,
"files": [
{
"date": "2025-09-15T19:03:52.832Z",
"name": "image.jpg",
"size": 307179,
"type": "image/jpeg",
"key": "image_jpeg_1757963032832.image.jpg",
"group": "exam",
"fileKey": "phoqo-privatebucket-k7nbaqvoc1ja/exam/companies/d6baef78-d4f0-457a-a119-7ebbbd4cdee8/image_jpeg_1757963032832.image.jpg"
}
],
"odontogram": [
18,
17
],
"diagnostic": "examen diagnostico",
"code": "a3dec688-6246-497a-b2ae-19025f265cf9"
}
]
}'{
"document": {
"status": "completed",
"dentist": {
"id": "ed66827b-6e20-42c1-bcaf-780781215cdb",
"email": "dentist@phoqo.cl",
"identificationNumber": "18019240-9",
"name": "Usuario Prueba Phoqo"
},
"medicalCenter": {
"clinicId": "9688aa20-bb75-4c4d-aaa9-927c78df4c21",
"companyId": "d6baef78-d4f0-457a-a119-7ebbbd4cdee8",
"identification": "55505836-5",
"name": "Clinica QA",
"status": "active"
},
"patient": {
"birthDate": "1993-03-18",
"companyId": "d6baef78-d4f0-457a-a119-7ebbbd4cdee8",
"dateCreation": "2022-10-14T19:25:04.000000+0000",
"email": "patient@phoqo.cl",
"gender": "male",
"id": "b3160703-9620-4742-913a-109e7d8e3691",
"identification": "123456785",
"identificationNumber": "12345678-5",
"identificationType": "national",
"lastName": "miranda",
"middleName": "b",
"motherLastName": "pizarro",
"name": "claudio",
"nationality": "CL",
"phone": "+569 7592 7832"
},
"technician": {
"id": "claudio_miranda_pizarro",
"email": "technician@phoqo.cl",
"identificationNumber": "18331089-5",
"name": "Claudio Bryan Miranda Pizarro"
},
"urgency": "medium",
"medicalDiagnosis": "diagnostico",
"observations": "observaciones",
"company": "d6baef78-d4f0-457a-a119-7ebbbd4cdee8",
"isControl": false,
"exams": [
{
"name": "Retroalveolar unit",
"isChild": false,
"isADA": false,
"odontogram": [
18,
17
],
"diagnostic": "examen diagnostico",
"code": "a3dec688-6246-497a-b2ae-19025f265cf9",
"id": "754c3442-c241-475e-b36b-fb81534ada50",
"numberFiles": 1
}
],
"accessCode": "668515",
"pendingPayment": false,
"companyName": "SERVICIOS TECNOLÓGICOS SALUD 360 SPA",
"id": "b05db86f-5cb3-4fd3-a347-55d7ce300236",
"createdAt": "2025-09-15T19:59:51.832336+00:00",
"trackingId": "829121ab-4416-4feb-857f-10772e28c2c2",
"clinic": {
"clinicId": "67ecffbf-8fd7-4f58-a72f-d7a14a3140f9",
"companyId": "d6baef78-d4f0-457a-a119-7ebbbd4cdee8",
"identification": "CS-MAR",
"name": "Clinica Santa Maria",
"status": "active"
},
"urgencyLevel": 2,
"number": "695"
},
"code": 10,
"duration": 3766,
"date": "2025-09-15T19:59:54.338195",
"message": "Acción realizada satisfactoriamente",
"trackingId": "829121ab-4416-4feb-857f-10772e28c2c2"
}