Ucotron Cortex
Referencia de API

Reportes, firmados o en borrador.

Guía del flujo: Reportes firmados

GET
/v1/reports

Authorization

bearerFixtureToken
AuthorizationBearer <token>

Token fixture del sandbox. Hay tres: acceso completo, sólo lectura y otra organización — para poder ejercitar 200, 403 y 404 cross-tenant. Ninguno es un secreto.

In: header

Query Parameters

cursor?string

Opaco. Usá el nextCursor de la página anterior; construirlo a mano se rompe cuando cambie la paginación.

limit?integer
Range1 <= value <= 250
Default25

Header Parameters

x-ucotron-tenant-id?string

Organización. Si viene, tiene que coincidir con la de la credencial: un header que la sobreescribiera sería el propio bypass.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/reports"
{  "data": [    {      "reportId": "report_sbox_5e7cfce9",      "claimId": "claim_sbox_83d381c9",      "status": "draft",      "templateId": "template_sbox_hail_claims_public_example_v1",      "version": 1,      "evidenceRefs": [        "fixture://sbox/weather/weather_sbox_hail_001",        "fixture://sbox/aoi/synthetic_pergamino_north"      ],      "signature": null    }  ],  "page": {    "nextCursor": null,    "previousCursor": null,    "limit": 25,    "hasMore": true  }}