# Percia API

**Canonical:** https://apis.io/apis/percia-ai/percia-api/  
**Provider:** Percia — https://apis.io/providers/percia-ai/  
**Base URL:** https://playground.percia.ai/api  
**Documentation:** https://playground.percia.ai/docs/

Percia API is one of 2 APIs that [Percia](https://apis.io/providers/percia-ai/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. Tagged areas include Computer Vision, Webhook, and Camera. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, and 6 JSON Schemas.

JSON HTTP API to create and manage camera watches, agents, sites, cameras, alert destinations, REST hooks, events with keyframe evidence, usage and billing. Auth by Bearer API key (pk_live_) with scopes, or OAuth 2.1 with PKCE.

## Operations (60 of 145)

| Method | Path | Summary |
|---|---|---|
| GET | `/health` | Liveness check |
| GET | `/config` | Public client configuration |
| GET | `/status` | Public status of each alert destination |
| GET | `/openapi.json` | This document |
| GET | `/auth/{path}` | Better Auth endpoints (sign-in, session, ...) |
| POST | `/auth/{path}` | Better Auth endpoints (sign-up, sign-in, sign-out, ...) |
| GET | `/me` | Current user and subscription |
| GET | `/me/sign-in-methods` | How this account signs in: the linked providers (Google, GitHub, Apple) with when they were linked, and whether it has an email and password. Session only; n... |
| POST | `/me/delete` | Delete your account and all its data (session, or an OAuth token with account:delete; never an API key). Body {confirm: <account email>}. The sign-in must be... |
| POST | `/keys` | Create an API key (session only). The full key is returned once. |
| GET | `/keys` | List your API keys (prefix, scopes, created, last used, revoked). Never the key itself. |
| DELETE | `/keys/{id}` | Revoke an API key immediately |
| GET | `/connected-apps` | List OAuth apps (MCP clients) you approved: name, permissions, last used (session only) |
| DELETE | `/connected-apps/{clientId}` | Revoke an OAuth app immediately (session only) |
| POST | `/stripe/webhook` | Stripe webhook receiver (signed by Stripe) |
| POST | `/billing/checkout` | Start a Stripe checkout (403 selling_disabled while paid plans are not on sale; 409 already_subscribed when the account already has a subscription: use the p... |
| PATCH | `/billing/cap` | Set your monthly spend cap in cents ($5 to $10,000; default $200). When this month's camera time reaches it, watches pause (only while billing is enforced). ... |
| POST | `/billing/redeem` | Redeem a credit code for camera-minutes (credits are minutes of watching, used before the free minutes and before the card). A code is shown to its owner onc... |
| GET | `/billing/credits` | Your credit grants (minutes, remaining, source, expiry) and your last 20 redemptions. Never returns a code. |
| POST | `/billing/pay-invoice` | Retry paying the open failed invoice with the stored payment method (session only; allowed while blocked). To change the card use the portal. |
| POST | `/billing/portal` | Open the Stripe customer portal (also the way to update a failed payment method) |
| POST | `/billing/card/replace` | Replace your card: a Stripe setup Checkout that adds a new card and charges nothing (a card must stay on file: it can be replaced, never removed). 404 when n... |
| POST | `/billing/card/finish` | After a replace: the newest card becomes the default and older cards are detached; the last card is never detached. Safe to repeat. |
| POST | `/cameras` | Create a camera. For a camera on a private network (ONVIF, RTSP, Frigate, Home Assistant, NVR) the person installs the Percia bridge (https://github.com/velv... |
| GET | `/cameras` | List your cameras, newest first |
| POST | `/cameras/link` | Make a camera from a public video link (rtsp, rtsps, http or https). Percia pulls it on its media host while a watch on it is active, so the camera then work... |
| POST | `/cameras/{id}/pair` | Issue a new pairing link; any unused earlier link stops working (no request body; phone cameras) |
| POST | `/cameras/bulk` | Register up to 10 push cameras at once (an NVR connector). Each needs name and externalId and is idempotent by externalId (existing ones come back with token... |
| GET | `/cameras/{id}/status` | Poll one camera: state waiting (never published), online, offline or revoked, lastSeenAt, secondsSinceSeen and a hint with the likely reason and next step. O... |
| POST | `/cameras/{id}/token` | Rotate the publish token of a push camera (no request body); the old one stops working at once. Returns the new token once. Phone cameras: 409 wrong_kind (pa... |
| DELETE | `/cameras/{id}/token` | Revoke the publish token of a push camera: publishing stops at once, the camera stays. Rotate to publish again. |
| POST | `/cameras/pair/check` | Check that a pairing token belongs to one of your cameras and has not expired. show_link does this for you |
| DELETE | `/cameras/{id}` | Remove a camera; its token stops working at once |
| POST | `/uploads` | Start uploading a video file (mp4, mov, webm, mkv) as a watch source. Declare name and size; refused here (400 unsupported_type, 413 too_large, 429 upload_li... |
| GET | `/uploads` | List your video files, newest first |
| POST | `/uploads/from-url` | Make a video file from a public https URL (for MCP agents, which cannot send bytes). Percia fetches it itself, one request: public https only (no IP addresse... |
| POST | `/uploads/link` | Make a short-lived upload page for a video file on the person's own device (for MCP agents, which cannot send bytes). No body. Returns `uploadUrl` (valid 30 ... |
| PUT | `/uploads/{id}/parts/{n}` | Send part n (1-based) as the raw request body (application/octet-stream). Every part but the last is exactly `partSize` bytes. Returns the etag to give to /c... |
| POST | `/uploads/{id}/complete` | Finish the upload with the part etags. The file is read back and checked: container, codec (H.264, H.265, VP8, VP9, AV1) and length (over the limit = too_lon... |
| GET | `/uploads/{id}` | One video file |
| DELETE | `/uploads/{id}` | Delete a video file (or stop an upload). The file also goes with the last watch that uses it, with the account, and after its retention period. |
| GET | `/uploads/{id}/play` | A short-lived (15 minutes) signed address for playing the file in a video element. A credential: do not store or share it. |
| GET | `/files/{id}` | The signed, ranged read of a video file (query exp and sig). Used by the pool and the player; the signature is the credential. Never cached. |
| POST | `/devices` | Register this phone for push alerts (Percia Camera app). Upserts by Expo push token: a token registered by someone else moves to you. Alerts carry only the w... |
| GET | `/devices` | List your registered phones (the push token is never returned) |
| DELETE | `/devices/{token}` | Stop push alerts to one phone (your own Expo push token, URL-encoded). Needs only devices:write |
| POST | `/cam/claim` | Pair a phone: exchange the single-use pairing token for the camera token (returned once). Public, rate limited per IP. |
| GET | `/cam/whip` | Where this camera publishes right now. Authorization: Bearer <camera token>. Returns {whipUrl}: the camera's home relay host while it is up, else another up ... |
| POST | `/cam/heartbeat` | Camera is alive (no request body). Authorization: Bearer <camera token>: a phone's token or a push camera's publish token. Send it every 20 s while publishin... |
| POST | `/watches/owned` | Create a watch as the signed-in user (email or webhook; no Turnstile). sourceUrl may be percia-cam://<cameraId> for one of your own phone or bridge cameras; ... |
| POST | `/watches/draft` | Start a watch the clarifying way (Percia). Send the plain ask and the camera (`cameraId` of one of your cameras, or a public `sourceUrl`). Percia's intellige... |
| GET | `/watches/draft/{id}` | Read a clarify draft (your own): its status, question, options, conditions and the conversation so far. |
| POST | `/watches/draft/{id}/answer` | Answer the draft's question: `text` is the number of one of the options ("2") or the person's own words. Only a draft that is still clarifying takes an answe... |
| GET | `/watches/{id}` | Get one of the signed-in user's watches |
| PATCH | `/watches/{id}` | Update a watch. `status: "active"` with `testRun: true` starts a 30-minute live test run (events are marked test events); `status: "active"` alone goes live,... |
| DELETE | `/watches/{id}` | Delete a watch |
| POST | `/watches/{id}/secret/rotate` | Rotate the webhook signing secret (the old one stops working at once) |
| POST | `/watches/{id}/test-delivery` | Send a signed goal.test event to the watch's webhook and report the response |
| GET | `/watches/mine` | List the signed-in user's watches |
| GET | `/watches/{id}/events` | Page through a watch's events, newest first |

…and 85 more operations. They are listed in full on the page.

## Machine-readable artifacts (11)

- **OpenAPI** — https://artifacts.apis.io/percia-ai/openapi/percia-ai-openapi.yml
- **OpenAPI** — https://playground.percia.ai/api/openapi.json
- **Documentation** — https://playground.percia.ai/docs/
- **GettingStarted** — https://playground.percia.ai/docs/quickstart.md
- **JSONSchema** — https://artifacts.apis.io/percia-ai/json-schema/percia-ai-watch-schema.json
- **JSONSchema** — https://artifacts.apis.io/percia-ai/json-schema/percia-ai-agent-schema.json
- **JSONSchema** — https://artifacts.apis.io/percia-ai/json-schema/percia-ai-agent-config-schema.json
- **JSONSchema** — https://artifacts.apis.io/percia-ai/json-schema/percia-ai-connection-schema.json
- **JSONSchema** — https://artifacts.apis.io/percia-ai/json-schema/percia-ai-camera-schema.json
- **JSONSchema** — https://artifacts.apis.io/percia-ai/json-schema/percia-ai-hook-created-schema.json
- **APIsJSON** — https://artifacts.apis.io/percia-ai/apis.yml

## Other Percia APIs (1)

- [Percia MCP Server](https://apis.io/apis/percia-ai/percia-mcp/)

## Tags

Computer Vision, Webhook, Camera

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/percia-ai` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/percia-ai/percia-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/percia-ai/.
