Was ist eine API?
Eine API (Application Programming Interface) ist eine Schnittstelle, die es Ihnen ermöglicht, Ihre eigene Website, App oder Software mit My-Coach-Finder zu verbinden. So können Sie automatisch Daten austauschen und Funktionen integrieren.
Warum die API nutzen?
- Automatische Synchronisation Ihrer Coach-Daten mit Ihrer eigenen Website
- Integration von Coaching-Buchungen in Ihre bestehende Software
- Entwicklung eigener mobiler Apps oder Tools
- Automatisierung von Arbeitsabläufen und Prozessen
Für wen ist die API?
Die API ist primär für Entwickler und technische Teams gedacht. Als Coach ohne technische Kenntnisse können Sie die normale Plattform nutzen - alle Funktionen sind dort bereits integriert und einfach zu bedienen.
Brauchen Sie technische Unterstützung? Kontaktieren Sie uns für individuelle Integrationslösungen.
Erste Schritte
Die My-Coach-Finder API basiert auf REST. Unsere API hat vorhersagbare, ressourcenorientierte URLs, akzeptiert JSON-kodierte Request-Bodies, gibt JSON-kodierte Antworten zurück und verwendet standardisierte HTTP-Statuscodes.
Basis-URL
Interaktive Dokumentation
Testen Sie alle Endpunkte interaktiv mit Swagger UI oder durchsuchen Sie sie mit ReDoc:
Authentication
The API uses JWT (JSON Web Tokens) for authentication. Include your access token in the Authorization header of each request.
Step 1: Register or Login
First, create an account or login to get your access token:
Response:
Step 2: Use the Token
Include the token in the Authorization header for all protected endpoints:
API Token (Alternative)
For server-to-server integrations, generate a permanent API token from your settings page:
Rate Limiting
Rate limits protect the API from abuse and ensure fair usage:
Registration
3 requests / hour
Login
5 requests / minute
2FA Verification
3 requests / minute
General API
100 requests / minute
API Endpoints
The API provides 141 endpoints across multiple resource categories:
Authentication Endpoints
/auth/register
Register a new user account. Automatically creates both coach and coachee profiles.
/auth/login
Authenticate with email and password. Returns JWT access token (7 days validity).
/auth/me
Get current authenticated user information.
/auth/change-password
Change user password (requires current password).
/auth/update-profile
Update user profile (first name, last name).
Chat Endpoints
/chat/conversations
Get all conversations for the current user with unread counts.
/chat/conversations/{conversation_id}/messages
Get all messages in a conversation (automatically marks as read).
/chat/messages
Send a new message to a user. Creates conversation if it doesn't exist.
/chat/users/search?query={query}
Search users to start a new conversation.
Documents Endpoints
/documents/upload
Upload a document (PDF, images, etc.). Max 50MB. Supports multipart/form-data.
/documents/
Get all documents for the current user.
/documents/stats/summary
Get document statistics (total count, size, public documents).
/documents/{document_id}
Delete a document and its file from storage.
Blog Endpoints
/api/blog/
Create a new blog post (draft by default).
/api/blog/my-posts
Get all blog posts for the current user (including drafts).
/api/blog/public
Get all published blog posts (public, no authentication required).
/api/blog/{post_id}/publish
Publish a draft blog post (generates SEO-friendly slug).
/api/blog/ai/generate-content
Generate blog post content using AI based on topic and keywords.
AI Services Endpoints
/ai/summarize
Summarize long text using GPT-4o-mini.
/ai/improve-text
Improve text quality (grammar, clarity, professionalism).
/ai/suggest-goals
Get AI-suggested coaching goals based on context.
/presentation/scrape-website
AI-powered website scraping to extract coach bio, services, and testimonials.
Error Handling
The API uses standard HTTP response codes and returns JSON error objects:
HTTP Status Codes
200
OK - Request succeeded
201
Created - Resource created successfully
400
Bad Request - Invalid parameters
401
Unauthorized - Invalid or missing token
403
Forbidden - No permission
404
Not Found - Resource doesn't exist
429
Too Many Requests - Rate limit exceeded
500
Internal Server Error - Server error
Error Response Format
Code Examples
Complete examples showing how to authenticate and use the API in different programming languages.
Python Example (with requests)
PHP Example (with cURL)
PHP Example (with Guzzle)
JavaScript Example (Fetch API)
cURL Examples
SDKs & Tools
OpenAPI / Swagger
Download our OpenAPI specification to generate client SDKs in any language:
Download OpenAPI JSONPostman Collection
Import our OpenAPI spec into Postman for easy API testing and exploration.
Support
Need help with the API? Contact us at api@my-coach-finder.com