Skip to content

Flowless API Reference โ€‹

Complete API documentation for Flowless Authentication Service. All endpoints use snake_case for request/response fields.


๐Ÿš€ Quick Start โ€‹

Base URL: https://your-instance-name.pubflow.com

Authentication: Most endpoints require X-Session-ID header or X-Bridge-Secret header (for bridge endpoints).

Response Format: All responses use snake_case fields (e.g., user_name, session_id, expires_at).


๐Ÿ“š API Endpoints by Category โ€‹

๐Ÿ” Authentication โ€‹

Core authentication endpoints for user login, registration, and logout.


๐Ÿ‘ค User Profile โ€‹

Manage user profile information and profile pictures.


๐Ÿ”‘ Password Management โ€‹

Password reset and change endpoints.


โœ‰๏ธ Email Verification โ€‹

Email verification and resend endpoints.


๐Ÿ”— Sessions โ€‹

Session validation and bridge integration endpoints.


๐Ÿ’พ Cache Management โ€‹

Cache invalidation endpoints for efficient data synchronization.


๐ŸŽซ Token Auth โ€‹

Token-based authentication for passwordless login via email/SMS.


๐ŸŒ Social Auth (BETA) โ€‹

OAuth social authentication with Google, GitHub, Facebook, Apple, Discord, and Microsoft.


๐Ÿ‘จโ€๐Ÿ’ผ Admin โ€‹

Admin-only endpoints for user management (requires admin or superadmin role).


๐Ÿ”’ Authentication Methods โ€‹

Session Authentication โ€‹

Most endpoints require a valid session. You can provide the session ID in multiple ways:

1. Header (Recommended):

http
X-Session-ID: ses_xyz123456

2. Query Parameter:

http
GET /auth/me?session_id=ses_xyz123456
POST /auth/profile?session_id=ses_xyz123456

3. Cookie:

http
Cookie: session_id=ses_xyz123456

Bridge Secret Authentication โ€‹

Bridge endpoints (for integration) require the bridge secret:

http
X-Bridge-Secret: your-bridge-secret-key

๐Ÿ“Š Rate Limiting โ€‹

All endpoints are rate-limited to prevent abuse:

Endpoint TypeLimitWindow
Login5 attempts15 minutes
Registration3 attempts1 hour
Token Login10 attempts10 minutes
Token Validate20 attempts5 minutes
Social Login10 attempts15 minutes
Social API20 attempts10 minutes
Cache Invalidation10 attempts5 minutes
Admin Actions50 attempts10 minutes

Rate limit headers are included in responses:

http
X-RateLimit-Limit: 5
X-RateLimit-Remaining: 4
X-RateLimit-Reset: 1733570460

๐ŸŽฏ Common Response Codes โ€‹

CodeDescription
200Success
400Bad Request - Invalid input or validation failed
401Unauthorized - Invalid or missing authentication
403Forbidden - Insufficient permissions
404Not Found - Resource doesn't exist
429Too Many Requests - Rate limit exceeded
500Internal Server Error
503Service Unavailable - Feature not configured

๐Ÿงช Interactive Testing โ€‹

Use the API Playground to test all endpoints interactively with your own server URL.


๐Ÿ“– Additional Resources โ€‹