Skip to content

First call (curl)

You can generate one in the SotsAI Admin page.

Base URL

https://sil-api.sotsai.co

All endpoints are prefixed with /v1.

SotsAI authenticates using an API key header:

Header: "X-Sotsai-Api-Key: <your_key>"
Terminal window
curl -X POST "https://sil-api.sotsai.co/v1/advice" \
-H "Content-Type: application/json" \
-H "X-Sotsai-Api-Key: <YOUR_API_KEY>" \
-d '{
"context_summary": "The user needs to give corrective feedback to a direct report who keeps missing deadlines. The user wants to be firm without demotivating the direct report.",
"relationship_type": "direct_report",
"user_profile": {
"tool": "disc",
"raw_scores": {
"natural": { "D": 78, "I": 64, "S": 22, "C": 36 },
"adapted": { "D": 70, "I": 58, "S": 30, "C": 42 }
}
},
"interlocutor_profile": {
"tool": "disc",
"raw_scores": {
"natural": { "D": 18, "I": 32, "S": 70, "C": 76 },
"adapted": { "D": 22, "I": 28, "S": 74, "C": 80 }
}
}
}'

Examples in Python and JavaScript are available in the Integration Guides.