🔌 Integrations
Ready-to-use code snippets for connecting to the AI Workspace API.
Generate an API key in Settings → API Keys first.
n8n
cURL
JavaScript
Python
Zapier
n8n HTTP Request Node
📋 Copy
{
"method": "POST",
"url": "{{YOUR_SERVER_URL}}/api/v1/chat/completions",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer YOUR_API_KEY"
}
]
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{"name": "model", "value": "deepseek-chat"},
{"name": "messages", "value": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
]},
{"name": "temperature", "value": 0.7}
]
},
"options": {}
}
Replace YOUR_SERVER_URL and YOUR_API_KEY with your values.
cURL Command
📋 Copy
curl {{YOUR_SERVER_URL}}/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "deepseek-chat",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
],
"temperature": 0.7
}'
Replace YOUR_SERVER_URL and YOUR_API_KEY with your values.
JavaScript (Fetch API)
📋 Copy
const response = await fetch('{{YOUR_SERVER_URL}}/api/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
model: 'deepseek-chat',
messages: [
{ role: 'system', content: 'You are a helpful assistant.' },
{ role: 'user', content: 'Hello!' }
],
temperature: 0.7,
stream: false
})
});
const data = await response.json();
console.log(data.choices[0].message.content);
Replace YOUR_SERVER_URL and YOUR_API_KEY with your values.
Python (requests)
📋 Copy
import requests
response = requests.post(
'{{YOUR_SERVER_URL}}/api/v1/chat/completions',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={
'model': 'deepseek-chat',
'messages': [
{'role': 'system', 'content': 'You are a helpful assistant.'},
{'role': 'user', 'content': 'Hello!'}
],
'temperature': 0.7,
'stream': False
}
)
data = response.json()
print(data['choices'][0]['message']['content'])
Replace YOUR_SERVER_URL and YOUR_API_KEY with your values.
Zapier Webhook Step
📋 Copy
App: Webhooks by Zapier
Action: POST
URL:
{{YOUR_SERVER_URL}}/api/v1/chat/completions
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
Data (JSON):
{
"model": "deepseek-chat",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
],
"temperature": 0.7,
"stream": false
}
Replace YOUR_SERVER_URL and YOUR_API_KEY with your values.
🧠 Proactive Services
🔍 Run Opportunity Scan
📋 Last Scan Results
Close