Register
Create a new Vrin account.
Email address for the new account.
{
"success": true,
"user_id": "user_xyz",
"api_key": "vrin_abc123...",
"message": "Account created"
}
Login
Authenticate and receive an API key.
{
"success": true,
"api_key": "vrin_abc123...",
"user_id": "user_xyz",
"email": "user@example.com"
}
List API keys
List all API keys for the authenticated user.
{
"api_keys": [
{
"key_id": "key_123",
"name": "Production",
"prefix": "vrin_abc...",
"created_at": "2025-12-01T00:00:00Z"
}
]
}
Create API key
POST /api/auth/create-api-key
Human-readable name for the key.
{
"success": true,
"api_key": "vrin_new_key...",
"key_id": "key_456",
"name": "Production"
}
The full API key is only shown once at creation time. Store it securely.
Delete API key
POST /api/auth/delete-api-key
The ID of the key to delete (not the key value).
{
"success": true,
"message": "API key deleted"
}
Get user limits
Check the authenticated user’s plan and usage limits.
{
"plan": "free",
"queries_remaining": 100,
"inserts_remaining": 50,
"allowed_models": ["gpt-4o-mini"],
"max_file_size_mb": 10
}