API documentation
Run the same analysis as the workspace from your own software. Every successful call costs €0.05 and is charged to the Sensifai wallet of the person who created the key. Unsuccessful calls are free.
1. Create a key
Sign in, open the workspace and go to API keys. Give the key a name and, if you like, a monthly cap. The key is shown once. It looks like deskergo_live_… and only works for DeskErgo.
2. Call the endpoint
POST https://deskergo.sensifai.com/api/v1/run
Authorization: Bearer YOUR_KEY (or X-API-Key: YOUR_KEY)
Content-Type: application/json
{
"mode": "desk_only",
"heightCm": 176,
"discomfortAreas": [
"Neck / Upper Back",
"Eye Strain"
],
"notes": "Laptop flat on table facing window.",
"images": [
"data:image/jpeg;base64,<base64_photo>"
],
"consent": true
}3. Read the result
{
"id": "run_7f3c2a91",
"result": {
"overallScore": 54,
"scoreSummary": "Screen sits too low and faces window daylight, driving neck flexion and glare.",
"modeUsed": "desk_only",
"zones": [
{
"id": "monitor",
"name": "Monitor Height & Distance",
"score": 36,
"status": "high_risk",
"calloutTag": "Eye level -14 cm",
"finding": "Laptop rests flat on the desk surface.",
"whyItMatters": "Downward gaze strains the upper neck.",
"visibility": "clear"
}
],
"quickFixes": [
{
"id": "fix-books",
"title": "Raise laptop with two hardcover books",
"detail": "Stack two sturdy books under the laptop base for reading or external keyboard use.",
"targetZone": "Monitor Height & Distance",
"estimatedMinutes": 2
}
],
"optionalUpgrades": [
{
"item": "Laptop stand and external keyboard",
"reason": "Separates screen height from typing height.",
"priority": "helpful"
}
],
"limitations": [
"Under-desk foot clearance is not visible in this angle."
],
"disclaimer": "General workplace ergonomics guidance, not medical diagnosis or physical therapy."
},
"charge": {
"amountEur": 0.05,
"currency": "EUR"
}
}Every response has an X-Request-Id header. Quote it when you contact support. Rate limit: 60 calls per minute per key, reported in X-RateLimit-Limit and X-RateLimit-Remaining.
Errors
Errors use one shape: {"error": {"code", "message", "requestId"}}.
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_JSON, IMAGE_REQUIRED, INVALID_IMAGE, HEIGHT_REQUIRED, CONSENT_REQUIRED | Fix the request. Not charged. |
| 401 | INVALID_API_KEY | Missing, malformed, revoked, or a key from another app. |
| 402 | PAYMENT_REQUIRED, KEY_SPEND_CAP_REACHED | Add funds or raise the key's cap. Not charged. |
| 413 | PAYLOAD_TOO_LARGE | Body over 8 MB or photo over 4 MB. |
| 429 | RATE_LIMITED, TOO_MANY_PARALLEL_RUNS | Wait for the Retry-After seconds. |
| 502 | BILLING_UNAVAILABLE | The charge failed, so no result was returned. Not charged. |
| 503 | AI_UNAVAILABLE, WALLET_UNAVAILABLE | Temporary. Retry with backoff. Not charged. |
OpenAPI
Machine-readable description: https://deskergo.sensifai.com/api/v1/openapi
Privacy
Inputs and results are not stored. Responses never include the key owner’s identity. Because workstation photos and discomfort notes may involve health or personal posture data, pass "consent": true only after obtaining the data subject’s explicit consent.