Documentation Index
Fetch the complete documentation index at: https://mintlify.com/InsForge/InsForge/llms.txt
Use this file to discover all available pages before exploring further.
The Metadata API provides administrative endpoints to monitor your InsForge backend, retrieve database statistics for dashboards, and manage API keys. These endpoints require admin authentication.
Get App Metadata
Retrieve comprehensive metadata about your InsForge application including version, environment, database configuration, and uptime.Authentication
Requires either:- Bearer Token: Admin JWT token in
Authorization: Bearer <token>header - API Key: API key in
X-API-Key: <key>header
Response
Application name
Current version of the InsForge backend
Deployment environment (e.g., production, staging)
Application uptime in seconds
Current server timestamp in ISO 8601 format
Example Request
Example Response
Get Database Metadata
Retrieve detailed database statistics including table information, record counts, and database size. Ideal for building admin dashboards.Authentication
Requires either:- Bearer Token: Admin JWT token in
Authorization: Bearer <token>header - API Key: API key in
X-API-Key: <key>header
Response
Total number of tables in the database
Total number of records across all tables
Total database size (human-readable format)
Timestamp when statistics were last updated
Example Request
Example Response
Error Responses
Error code:
UNAUTHORIZEDHuman-readable error message
HTTP status code:
401Suggested action to resolve the error
Get API Key
Retrieve the API key for your InsForge backend. This is an admin-only endpoint that requires bearer token authentication (API key authentication is not allowed for this endpoint).Authentication
Requires:- Bearer Token: Admin JWT token in
Authorization: Bearer <token>header
This endpoint only accepts bearer token authentication. You cannot use an API key to retrieve the API key.
Response
The API key for your InsForge backend (format:
ins_ followed by 32 hexadecimal characters)Example Request
Example Response
Error Responses
403 Forbidden - When a non-admin user attempts to access the endpoint:When to Use Metadata APIs
Use these endpoints to:
- Monitor backend health: Check version, uptime, and environment configuration
- Build admin dashboards: Display database statistics and table information
- Retrieve API credentials: Get the API key for SDK configuration
- Debug connection issues: Verify database configuration and connectivity
Common Use Cases
- Admin Dashboard: Use
/api/metadata/databaseto display real-time database statistics - Monitoring Tools: Use
/api/metadatato track uptime and version information - Setup Wizards: Use
/api/metadata/api-keyto retrieve credentials for SDK initialization - Health Checks: Combine with health endpoints to ensure backend availability