UserVane Privacy API

DSAR export and erase (secret key)

GitHub OpenAPI

Operations 2

GET /v1/privacy/export Export responses (DSAR / admin) #
DELETE /v1/privacy/erase Erase responses (DSAR / purge) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/uservane-com:uservane-com-privacy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

uservane-com-privacy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: UserVane Edge Privacy API
  version: '0.1'
  description: 'Wire contract for the UserVane edge API (`api.uservane.com`).


    Auth is load-bearing:

    - **Publishable key** (`uv_pk_...`): browser / client SDK paths. Pass as

    body `key`, query `key`, or (where noted) header. Never sufficient for

    token mint, pending-scores, or privacy.

    - **Secret key** (`uv_sk_...`): server-only. `Authorization: Bearer `

    or `X-UserVane-Key: `. Used for session-bound token mint, Langfuse

    pending-scores queue, and privacy export/erase.


    Spec derived from `apps/uservane-api/src/schemas.ts` and route handlers in

    `apps/uservane-api/src/app.ts`. Do not invent paths.'
  contact:
    name: UserVane
    url: https://uservane.com
servers:
- url: https://api.uservane.com
  description: Production
tags:
- name: Privacy
  description: DSAR export and erase (secret key)
paths:
  /v1/privacy/export:
    get:
      tags:
      - Privacy
      operationId: privacyExport
      summary: Export responses (DSAR / admin)
      description: 'Secret-key export of response rows. Optional filters by `respondentId`,

        `email` (imported rows; hashed server-side to `imp_`), and `surveySlug`.'
      security:
      - SecretKeyBearer: []
      - SecretKeyHeader: []
      parameters:
      - name: respondentId
        in: query
        schema:
          type: string
        description: Live SDK userId or known imp_ hash
      - name: email
        in: query
        schema:
          type: string
        description: Natural identity for imported Delighted rows
      - name: surveySlug
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Export payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrivacyExportResponse'
        '400':
          description: Invalid selectors
        '401':
          description: Secret key required or invalid
        '404':
          description: Survey not found (when surveySlug set)
  /v1/privacy/erase:
    delete:
      tags:
      - Privacy
      operationId: privacyErase
      summary: Erase responses (DSAR / purge)
      description: 'Secret-key erasure. Modes:

        - respondent: `respondentId` and/or `email` (deletes responses and

        dismissals; retains hashed suppression so never-re-prompt survives)

        - survey: `surveySlug` alone (per-survey purge)

        - account: `account=true` (full project purge)'
      security:
      - SecretKeyBearer: []
      - SecretKeyHeader: []
      parameters:
      - name: respondentId
        in: query
        schema:
          type: string
      - name: email
        in: query
        schema:
          type: string
      - name: surveySlug
        in: query
        schema:
          type: string
      - name: account
        in: query
        schema:
          type: string
          enum:
          - 'true'
          - '1'
        description: Full account purge when set
      responses:
        '200':
          description: Erase result (mode-dependent body)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrivacyEraseResponse'
        '400':
          description: Invalid selectors
        '401':
          description: Secret key required or invalid
        '404':
          description: Survey not found
components:
  schemas:
    PrivacyExportResponse:
      type: object
      required:
      - projectId
      - exportedAt
      - count
      - responses
      properties:
        projectId:
          type: string
        exportedAt:
          type: string
          format: date-time
        count:
          type: integer
        responses:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              surveyId:
                type: string
              surveyVersion:
                type: integer
              respondentId:
                type: string
              rating:
                type:
                - number
                - 'null'
              text:
                type:
                - string
                - 'null'
              followUpRequested:
                type: boolean
              at:
                type: string
              source:
                type: string
                enum:
                - measured
                - imported
              traits:
                type:
                - object
                - 'null'
                additionalProperties: true
    PrivacyEraseResponse:
      type: object
      required:
      - ok
      - mode
      properties:
        ok:
          type: boolean
          enum:
          - true
        mode:
          type: string
          enum:
          - respondent
          - survey
          - account
        respondentIds:
          type: array
          items:
            type: string
        responsesDeleted:
          type: integer
        dismissalsDeleted:
          type: integer
        suppressionRetained:
          type: integer
        surveySlug:
          type: string
        note:
          type: string
  securitySchemes:
    SecretKeyBearer:
      type: http
      scheme: bearer
      description: Project secret key (`uv_sk_...`). Server-only.
    SecretKeyHeader:
      type: apiKey
      in: header
      name: X-UserVane-Key
      description: Alternate secret key header. Server-only.