Authentication

Learn how to authenticate your API requests

Overview

All Workflow APIs require API Key authentication using Bearer token in the Authorization header.

cURL
curl https://api.miromind.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

How to Get Started

1
Login to Console
Visit the console and sign in with GitHub or Google OAuth.
2
Create API Key
Navigate to "API Keys" page and click "Create New Key". Copy and save it immediately.

sk_live_1234567890abcdef...

3
Use API Key in Requests
Add the API key to your HTTP requests in the Authorization header:
const response = await fetch('https://api.miromind.ai/v1/chat/completions', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${process.env.MIROMIND_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    messages: [{
      role: 'user',
      content: 'Hello!'
    }]
  })
});
Security Best Practices
  • 1Never expose your API key in client-side code or public repositories
  • 2Rotate your API keys regularly
  • 3Use environment variables to store API keys
  • 4Monitor your API usage in the console
Next Steps

Now that you have an API key, you can start making requests to the Chat Completions API.

View Chat Completions API Reference
MiroMindAI Platform - Build Together. Evolve Forever.