Quickstart Guide
Get up and running with Sophosic Platform API in 5 minutes.
1. Create Account
Sign up for a free account at sophosic.ai/register .
2. Generate API Key
- Log in to your Dashboard
- Navigate to Settings → API Keys
- Click Generate New Key
- Copy and store your API key securely
🔒 Important: Never commit API keys to version control or share them publicly.
3. Make Your First Request
Using cURL
curl https://api.sophosic.ai/api/chat/v5 \
-X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{"role": "user", "content": "What can you help me with?"}
]
}'const response = await fetch('https://api.sophosic.ai/api/chat/v5', {
method: 'POST',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
messages: [{ role: 'user', content: 'What can you help me with?' }],
}),
});
const data = await response.json();
console.log(data);import requests
response = requests.post(
'https://api.sophosic.ai/api/chat/v5',
headers={'Authorization': f'Bearer {api_key}'},
json={
'messages': [
{'role': 'user', 'content': 'What can you help me with?'}
]
}
)
print(response.json())curl https://api.sophosic.ai/api/chat/v5 \
-X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type": application/json" \
-d '{
"messages": [
{"role": "user", "content": "Explain quantum computing"}
],
"stream": true
}'Next Steps
- Authentication Guide - Learn about API authentication
- Streaming Guide - Implement real-time streaming
- Agent System - Leverage intelligent memory
- Code Examples - More working examples
Common Issues
401 Unauthorized
Check that your API key is valid and properly formatted:
Authorization: Bearer sk_live_...429 Rate Limit
You’ve exceeded your rate limit. Upgrade to Pro tier or wait for reset.
Connection Timeout
Ensure you’re using the correct base URL: https://api.sophosic.ai
Need Help?
- Discord: discord.gg/sophosic
- Email: support@sophosic.ai
- GitHub: Issues
Last updated on