Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Alejandrin08/Hackathon-SPEI/llms.txt
Use this file to discover all available pages before exploring further.
List connections
GET /api/openfinance/connections
Returns all external bank connections for the authenticated user.
Response
Unique connection identifier (UUID).
Name of the connected Open Finance provider, e.g.,
"BBVA", "Banamex".Connection status, e.g.,
"active", "pending", "error".ISO 8601 timestamp of the most recent successful sync.
Response
Create connection
POST /api/openfinance/connections
Links a new Open Finance provider connection to the authenticated user’s profile.
Request body
Name of the Open Finance provider, e.g.,
"BBVA", "Banamex".Space-separated OAuth scopes to request from the provider, e.g.,
"accounts transactions".Authorization token obtained from the provider’s OAuth flow.
Error responses
| Status | Description |
|---|---|
400 | Validation error — providerName, scopes, and authToken are all required. |
401 | Invalid or missing bearer token. |
Response (201 Created)
Remove connection
DELETE /api/openfinance/connections/{id}
Removes an Open Finance connection. Associated product data is no longer accessible after deletion.
Path parameters
UUID of the connection to delete.
Response
Returns204 No Content on success with an empty body.
Error responses
| Status | Description |
|---|---|
401 | Invalid or missing bearer token. |
404 | Connection not found or belongs to a different user. |
Sync connection
POST /api/openfinance/sync/{connectionId}
Triggers a pull of the latest balance and product data from the Open Finance provider. Returns an array of newly synced external products.
Path parameters
UUID of the connection to sync.
Response
Returns an array of synced external product objects. See External Products for the product schema.Error responses
| Status | Description |
|---|---|
401 | Invalid or missing bearer token. |
404 | Connection not found or belongs to a different user. |
