Skip to content

Edge API overview

Base URL: https://api.uservane.com

Full shapes: OpenAPI reference and the machine-readable /openapi.yaml.

MethodPathPurpose
POST/v1/sdk/bootstrapSurveys, suppression, unbound show-tokens
POST/v1/sdk/responsesToken-verified response ingest
POST/v1/dismissalsToken-verified dismiss + suppression

Pass the publishable key as body key and/or query key.

Auth: Authorization: Bearer <uv_sk_...> or X-UserVane-Key: <uv_sk_...>.

MethodPathPurpose
POST/v1/sdk/tokensSession-bound show-token mint (server-only)
GET/v1/sdk/pending-scoresLinked scores awaiting Langfuse push (PII)
POST/v1/sdk/pending-scores/ackAdapter delivery ack
GET/v1/privacy/exportDSAR / admin export
DELETE/v1/privacy/eraseDSAR erase / survey or account purge
  • Caps and quiet period are enforced at token issue only.
  • A valid unused show-token is always accepted at submit.
  • Invalid / expired / reused tokens → 4xx (not 5xx for those cases).
  • Pending-scores is tenant-scoped: the secret key only reads that project’s rows.
  • Publishable key as Bearer on a secret route → 401.

Internal aliases exist (GET /v1/definitions, POST /v1/responses) with the same shapes as bootstrap/submit. Prefer the /v1/sdk/* paths in new integrations.