API Overview
Kindflow provides a comprehensive REST API for programmatic access to conversations, messages, and organization data.
Base URL
https://api.kindflow.aiAuthentication
All API requests require authentication using an API key passed in the x-api-key header.
Generating an API Key
- Sign in to your Kindflow dashboard
- Navigate to Settings → Team
- Scroll to the API Keys section
- Click Create API Key
- (Optional) Add a description for reference
- Copy and save the generated key securely
Important: The API key is only shown once during creation. Store it securely as you won't be able to view it again.
Using Your API Key
Include your API key in the request header:
bash
x-api-key: your_api_key_hereResponse Format
All API responses follow a consistent JSON format:
Success Response:
json
{
"id": "uuid",
"field": "value",
...
}Error Response:
json
{
"error": "Error message",
"statusCode": 400
}HTTP Status Codes
200- OK: Request succeeded201- Created: Resource successfully created400- Bad Request: Invalid request parameters401- Unauthorized: Invalid or missing API key403- Forbidden: Insufficient permissions404- Not Found: Resource does not exist500- Internal Server Error: Server error occurred
Rate Limits
API requests are subject to rate limits based on your subscription plan. Contact support for specific limits.
Available APIs
- Conversations API - Manage conversations and messages
- Organizations API - Access organization data
Best Practices
- Store API Keys Securely: Never expose API keys in client-side code or public repositories
- Use HTTPS: Always use HTTPS in production
- Handle Errors: Implement proper error handling for all API responses
- Implement Retries: Use exponential backoff for transient errors
- Monitor Usage: Track your API usage to avoid hitting rate limits