Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ValoSpectra/Spectra-Server/llms.txt
Use this file to discover all available pages before exploring further.
GET /getOrgForKey
Verifies an API key and returns the associated organization information. This endpoint requires backend integration to be enabled.Authentication
Requires a valid API key passed as a query parameter.Query Parameters
The API key to verify. Must be a valid string.
Response
The organization’s unique identifier
The organization’s name
Whether the organization has supporter status
Status Codes
200- Key is valid, organization information returned400- Key parameter is missing or invalid401- Key is invalid or unauthorized
Error Responses
Backend Requirement
This endpoint only functions when backend integration is enabled:Implementation
Fromsrc/index.ts:44-64:
Key Verification
The key is verified against the backend database usingDatabaseConnector.verifyAccessKey(), which returns:
Example Requests
Example Response
Use Cases
API Key Validation
Verify a key before allowing access to other services:Organization Lookup
Retrieve organization details for display or logging:Supporter Features
Check if an organization has supporter status:Notes
- Keys are validated in real-time against the backend database
- Invalid keys immediately return
401 Unauthorized - CORS headers are included for browser-based requests
- The endpoint requires backend integration via
USE_BACKEND=true