The Butterfly AI API is organized around REST principles and uses JSON for all responses.

Authentication

Each request must be authenticated by including a short-lived Bearer token provided via HTTP header:

  Authorization: Bearer YOUR_API_KEY
  

As of now, this token can only be obtained by calling the login endpoint with the email and password received when signing up to the platform (same credentials used in the Dashboard). See Authentication for full details.

Base URL

https://butterfly-ai-api.mathficast.com

API reference and recipes

💡 Note: This is the alpha documentation. Endpoints may evolve with breaking changes. Always check for updates before production use.