Skip to Content
Quickstart

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

  1. Log in to your Dashboard 
  2. Navigate to SettingsAPI Keys
  3. Click Generate New Key
  4. 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?"} ] }'

Using TypeScript

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);

Using Python

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())

4. Enable Streaming

For real-time streaming responses:

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

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?

Last updated on
Quickstart | Sophosic™ Platform