Reference documentation for the Synapse SDK V1 API. V1 is deprecated and will be sunset on March 31, 2026. Please migrate to V2 for new features and long-term support.
| Change | V1 | V2 |
|---|---|---|
| Base URL | /v1/... | /v2/... |
| Emotion Model | emotion-v1 | emotion-v2 |
| Analysis Endpoint | /analyse | /analysis |
| Response Object | emotions.analyse | emotions.analysis |
| Batch Endpoint | /batch-analyse | /batch-analysis |
intensity - Emotion strength (0.0-1.0)intensityLevel - critical, high, moderate, subtle, minimalvalence - Emotional tone (-1.0 to +1.0)arousal - Energy level (0.0-1.0)complexity - simple, layered, paradoxical, transcendentwonderIndex - Curiosity level (0.0-1.0)discoveryLevel - routine, normal, significant, breakthrough, transcendentconversationMode - Detected mode and response strategytrajectory - Emotional trends and breakthroughsV1 (Deprecated):
curl -X POST https://api.kaikostudios.xyz/v1/chat/completions \
-H "x-api-key: $KAIKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4",
"emotion_model": "emotion-v1",
"context_id": "chat-123",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'V2 (Recommended):
curl -X POST https://api.kaikostudios.xyz/v2/chat/completions \
-H "x-api-key: $KAIKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4",
"emotion_model": "emotion-v2",
"context_id": "chat-123",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'V1 (Deprecated):
curl -X POST https://api.kaikostudios.xyz/v1/emotions/:context_id/analyse \
-H "x-api-key: $KAIKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "emotion-v1",
"messages": [{"content": {"text": "Hello!"}}]
}'V2 (Recommended):
curl -X POST https://api.kaikostudios.xyz/v2/emotions/:context_id/analysis \
-H "x-api-key: $KAIKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "emotion-v2",
"messages": [{"content": {"text": "Hello!"}}]
}'V1 Response:
{
"emotions": {
"user": {
"category": "joy",
"raw": {
"joy": 0.85,
"love": 0.25,
"sadness": 0.02,
"anger": 0.01,
"fear": 0.02,
"surprise": 0.15
}
}
}
}V2 Response (enhanced):
{
"emotions": {
"user": {
"category": "joy",
"intensity": 0.85,
"intensityLevel": "high",
"valence": 0.78,
"arousal": 0.72,
"complexity": "simple",
"wonderIndex": 0.45,
"discoveryLevel": "normal",
"raw": {
"joy": 0.85,
"love": 0.25,
"sadness": 0.02,
"anger": 0.01,
"fear": 0.02,
"surprise": 0.15
}
}
},
"conversationMode": {
"mode": "conversational",
"confidence": 0.75
}
}These endpoints remain functional until the March 31, 2026 sunset date.
| Method | V1 Endpoint | V2 Equivalent |
|---|---|---|
| POST | /v1/chat/completions | /v2/chat/completions |
| POST | /v1/emotions/analyse | /v2/emotions/analysis |
| POST | /v1/emotions/:id/analyse | /v2/emotions/:id/analysis |
| GET | /v1/emotions/:id | /v2/emotions/:id |
| GET | /v1/emotions/:id/message/:msgId | /v2/emotions/:id/message/:msgId |
| POST | /v1/emotions/batch-analyse | /v2/emotions/batch-analysis |
/v1/ to /v2/emotion_model from emotion-v1 to emotion-v2/analyse → /analysis