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 flatpackpal_live_… and only works for FlatPackPal.
2. Call the endpoint
POST https://flatpackpal.sensifai.com/api/v1/run
Authorization: Bearer YOUR_KEY (or X-API-Key: YOUR_KEY)
Content-Type: application/json
{
"mode": "decode",
"note": "Step 7 shows two drawer runners with small arrows and three screw holes. Which way does the nylon wheel face?"
}3. Read the result
{
"id": "run_7f3c2a91",
"result": {
"mode": "decode",
"headline": "Mount drawer runners with the nylon wheel toward the finished front edge",
"summary": "Attach both slide rails flat before standing the cabinet upright, keeping the wheel at the front opening.",
"confidence": 86,
"confidenceReason": "Clear orientation cues from the note; upload a photo of the manual page for exact screw hole numbers.",
"flipWarning": {
"active": true,
"title": "Watch Out: Easy to Flip",
"detail": "Keep the nylon wheel at the finished front edge and the rear stop-tab toward the unfinished back groove.",
"checkCue": "Check that the back-panel groove is at the opposite end from the runner wheel."
},
"steps": [
{
"stepNumber": 1,
"action": "Lay the side panel flat with pre-drilled shelf holes facing up",
"detail": "Finished edge toward you, back-panel groove away.",
"tool": "None"
},
{
"stepNumber": 2,
"action": "Secure the left runner wheel-end forward with flat-head screws",
"detail": "Verify the rail sits flush and level before tightening.",
"tool": "Phillips #2"
}
],
"hardwareNeeded": [
{
"name": "Flat-head runner screw",
"code": "Runner screw",
"quantity": 4,
"note": "Two per rail; keeps track clear for the drawer.",
"status": "required"
}
],
"visibilityNotes": [
"No photo attached; send 1 or 2 photos for exact part codes and screw hole indices."
],
"tipOverSafety": {
"applicable": true,
"reminder": "Anchor multi-drawer chests and dressers to a wall stud using the included anti-tip bracket."
}
},
"aiGenerated": true,
"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, INVALID_MODE, INVALID_IMAGE, IMAGE_TOO_LARGE, INPUT_REQUIRED, INPUT_TOO_SHORT, INPUT_TOO_LONG | 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 10 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://flatpackpal.sensifai.com/api/v1/openapi
Privacy
Inputs and results are not stored. Responses never include the key owner’s identity. If your input contains personal data, you are responsible for having a legal basis to send it.