API Explorer
- POST
Generate Image
/ai/generate-image - POST
Edit Image
/ai/edit-image
- GET
List Files
/files - POST
Upload File
/files - POST
Generate Presigned URL
/files/presigned-url - GET
Search Files
/files/search
- GET
List Projects
/projects - POST
Create Project
/projects - GET
Get Project Details
/projects/{id}
- GET
List Artifacts
/artifacts - POST
Create Artifact
/artifacts - GET
Get Artifact Types
/artifacts/types
- GET
List Mementos
/mementos - POST
Create Memento
/mementos/create - POST
Groom Mementos
/mementos/groom
- GET
List API Keys
/user-api-keys - POST
Create API Key
/user-api-keys - POST
Rotate API Key
/user-api-keys/{id}/rotate
- GET
Get User Subscriptions
/subscriptions/own - POST
Create Subscription
/subscriptions/subscribe - GET
Get Credit Transactions
/credits/transactions
- GET
List Organizations
/organizations - POST
Create Organization
/organizations
B4M API Reference
Interactive Bike4Mind API reference and testing tool. Access AI chat, image generation, file management, and more.
Current Endpoint
/password/login
Authenticate user with email and password, get JWT token for API access.
User Login
Test this endpoint with your API key
Endpoint
Request Body
Example Usage
const response = await fetch('https://app.bike4mind.com/api/password/login', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ email: "user@example.com", password: "securePassword123", rememberMe: true }) }); const result = await response.json(); // Response: { "user": { "_id": "user_123", "email": "user@example.com", "name": "John Doe", "organizationId": "org_456" }, "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refreshToken": "refresh_token_xyz", "expiresIn": 3600 }
Response Schema
{ "user": { "_id": "string", "email": "string", "name": "string", "organizationId": "string" }, "token": "string", "refreshToken": "string", "expiresIn": "number" }