API documentation
Run the same hardware port, cable, and power-adapter inspection 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 portmatch_live_… and only works for PortMatch.
2. Call the endpoint
POST https://portmatch.sensifai.com/api/v1/run
Authorization: Bearer YOUR_KEY (or X-API-Key: YOUR_KEY)
Content-Type: application/json
{
"mode": "connect",
"images": [
"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD..."
],
"goal": "Connect laptop to 4K monitor and soundbar"
}3. Read the result
{
"id": "run_7f3c2a91",
"result": {
"mode": "connect",
"headline": "Connect the soundbar HDMI eARC port directly to HDMI 2 (eARC) on the TV.",
"verdict": {
"status": "compatible",
"label": "MATCH FOUND",
"reason": "Both devices have dedicated HDMI eARC ports for audio return and remote sync."
},
"confidence": 94,
"shoppingTag": "Ultra High Speed HDMI 2.1 Cable (48 Gbps, eARC)",
"ports": [
{
"position": "Port 2",
"standard": "HDMI 2 (eARC)",
"role": "Two-way audio + video",
"description": "Enhanced Audio Return Channel port that sends all TV sound to the soundbar."
}
],
"connectionPlan": {
"deviceAPort": "TV: HDMI 2 (eARC)",
"deviceBPort": "Soundbar: HDMI OUT (TV eARC)",
"steps": [
"Connect Ultra High Speed HDMI from TV HDMI 2 (eARC) to Soundbar HDMI OUT."
],
"gotchas": [
"Do not use HDMI 1 on the TV for the soundbar."
]
},
"powerCheck": null,
"warnings": [],
"nextAction": "Connect TV HDMI 2 (eARC) to Soundbar HDMI OUT (eARC)."
},
"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, IMAGE_REQUIRED, TOO_MANY_IMAGES, INVALID_IMAGE, UNSUPPORTED_IMAGE_FORMAT, IMAGE_TOO_LARGE, INPUT_TOO_LONG | Fix the request payload or image encoding. 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 12 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://portmatch.sensifai.com/api/v1/openapi
Privacy
Uploaded images have EXIF location metadata stripped in memory, are never stored, and results are discarded after delivery. 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.