{ "opencollection": "1.0.0", "info": { "name": "HEVN 2FA documents API", "version": "0.1.2" }, "items": [ { "info": { "name": "documents", "type": "folder" }, "items": [ { "info": { "name": "List uploaded documents (deprecated, use GET /documents)", "type": "http" }, "http": { "method": "GET", "url": "https://api.hevn.finance/api/v1/b2b/documents", "headers": [ { "name": "x-api-key", "value": "" } ], "params": [ { "name": "doc_type", "value": "", "type": "query", "description": "Document filter type, e.g. 'uploaded'" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Backward-compatible proxy to GET /documents." }, { "info": { "name": "Download a document via signed token", "type": "http" }, "http": { "method": "GET", "url": "https://api.hevn.finance/api/v1/documents/download/:document_id", "params": [ { "name": "document_id", "value": "", "type": "path" }, { "name": "key", "value": "", "type": "query" } ] }, "docs": "Verify download token, log the event, and redirect to a Supabase signed URL." }, { "info": { "name": "Upload a document", "type": "http" }, "http": { "method": "POST", "url": "https://api.hevn.finance/api/v1/documents/upload", "headers": [ { "name": "x-api-key", "value": "" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Upload a document to storage. Returns document_id for referencing." }, { "info": { "name": "List uploaded documents", "type": "http" }, "http": { "method": "GET", "url": "https://api.hevn.finance/api/v1/documents", "headers": [ { "name": "x-api-key", "value": "" } ], "params": [ { "name": "doc_type", "value": "", "type": "query", "description": "Document filter type, e.g. 'uploaded'" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "List user-uploaded documents by filter type." }, { "info": { "name": "Update document extracted content", "type": "http" }, "http": { "method": "PUT", "url": "https://api.hevn.finance/api/v1/documents/:document_id/content", "headers": [ { "name": "x-api-key", "value": "" } ], "params": [ { "name": "document_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Validate and save extracted content for a document.\n\nContent is validated against the Pydantic model for the document's type/category." }, { "info": { "name": "Create a document for e-signing via Firma", "type": "http" }, "http": { "method": "POST", "url": "https://api.hevn.finance/api/v1/documents/create", "headers": [ { "name": "x-api-key", "value": "" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Create a document for e-signing via Firma" }, { "info": { "name": "List uploaded documents (deprecated, use GET /documents)", "type": "http" }, "http": { "method": "GET", "url": "https://api.hevn.finance/api/v1/kyb/b2b/documents", "headers": [ { "name": "x-api-key", "value": "" } ], "params": [ { "name": "doc_type", "value": "", "type": "query", "description": "Document filter type, e.g. 'uploaded'" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Backward-compatible proxy to GET /documents." } ] } ], "bundled": true }