Aviyan API Authentication

Request only the permission an integration needs.

Public access

The public site index at GET /api/v1/site and public MCP tools do not require a credential. They are read-only and contain no account-specific investor records. Use these endpoints whenever public information is sufficient.

Protected API key role

The protected GET /api/v1/investor-resources endpoint requires an Aviyan-issued API key with the investor.resources:read role. Send the key as Authorization: Bearer YOUR_API_KEY. A valid key without that role receives HTTP 403; a missing or invalid key receives HTTP 401. The role permits listing approved investor-resource references only and does not permit transactions, profile access, writes, or administrative actions.

Key handling

Keep keys in a server-side secret manager, never in source control, logs, public prompts, URLs, or browser JavaScript. Give each integration a separate key, restrict its role, rotate it if exposure is suspected, and remove it when no longer needed. The production service reads key-to-role assignments from its protected hosting environment; no live key is stored in this repository.

Access requests

Protected keys are not currently generated through a self-service flow. An organization that has a legitimate need should contact info@aviyangroup.com and identify the integration, data need, and responsible contact. Approval and credential issuance are product and compliance decisions. Public read-only resources remain available without this process.