Yondry Privacy API

The privacy API from Yondry, for privacy.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 7

DELETE /api/v1/users/me Full account erasure (UK GDPR Art. 17) #
GET /api/v1/privacy/dashboard Get Dashboard #
GET /api/v1/privacy/consents List Consents #
POST /api/v1/privacy/consents/{source_type}/grant Grant Consent #
POST /api/v1/privacy/consents/{source_type}/revoke Revoke Consent #
DELETE /api/v1/privacy/data/{source_type} Delete Source Data #
DELETE /api/v1/privacy/data/all Delete All Data #

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/yondry-app:yondry-app-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

yondry-app-privacy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Yondry Privacy API
  version: 0.1.0
tags:
- name: privacy
paths:
  /api/v1/users/me:
    delete:
      tags:
      - privacy
      summary: Full account erasure (UK GDPR Art. 17)
      description: 'Permanently erase all personal data and anonymise the user record.


        Immediate effects:

        - All Place, Visit, and GeneratedPlan data deleted (preserve_edited=False).

        - All refresh tokens revoked — existing sessions stop immediately.

        - Sensitive fields nulled: home_lat/lon, location, name, avatar.

        - Email scrambled to ''deleted-{uuid}@deleted.invalid''.

        - is_deleted=True, is_active=False.


        The User row itself is retained for audit purposes.

        Access tokens (stateless JWTs) become invalid because get_current_user

        rejects is_deleted=True accounts.'
      operationId: delete_account_api_v1_users_me_delete
      responses:
        '204':
          description: Successful Response
      security:
      - HTTPBearer: []
  /api/v1/privacy/dashboard:
    get:
      tags:
      - privacy
      summary: Get Dashboard
      description: 'Return a full privacy dashboard for the authenticated user.


        Includes consent status for every data source plus aggregate counts

        for places, visits, and plans.'
      operationId: get_dashboard_api_v1_privacy_dashboard_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataDashboardResponse'
      security:
      - HTTPBearer: []
  /api/v1/privacy/consents:
    get:
      tags:
      - privacy
      summary: List Consents
      description: Return consent status for all data sources.
      operationId: list_consents_api_v1_privacy_consents_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ConsentResponse'
                type: array
                title: Response List Consents Api V1 Privacy Consents Get
      security:
      - HTTPBearer: []
  /api/v1/privacy/consents/{source_type}/grant:
    post:
      tags:
      - privacy
      summary: Grant Consent
      description: 'Enable a data source for this user.


        Records the current privacy policy version alongside the consent timestamp.

        Returns 400 if the source is ALWAYS_ON (cannot be toggled).'
      operationId: grant_consent_api_v1_privacy_consents__source_type__grant_post
      security:
      - HTTPBearer: []
      parameters:
      - name: source_type
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/DataSourceType'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/privacy/consents/{source_type}/revoke:
    post:
      tags:
      - privacy
      summary: Revoke Consent
      description: 'Disable a data source for this user.


        Stops future data collection but does NOT delete existing records.

        Use DELETE /privacy/data/{source_type} to delete stored data.

        Returns 400 if the source is ALWAYS_ON.'
      operationId: revoke_consent_api_v1_privacy_consents__source_type__revoke_post
      security:
      - HTTPBearer: []
      parameters:
      - name: source_type
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/DataSourceType'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/privacy/data/{source_type}:
    delete:
      tags:
      - privacy
      summary: Delete Source Data
      description: 'Delete all stored records from a single data source.


        When preserve_edited=True (default), Place records that the user has

        personalised (added a rating, notes, or tags) are kept intact.

        Set preserve_edited=False to delete everything regardless.


        Does NOT revoke consent — use POST /privacy/consents/{source_type}/revoke

        to stop future collection.'
      operationId: delete_source_data_api_v1_privacy_data__source_type__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: source_type
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/DataSourceType'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_delete_source_data_api_v1_privacy_data__source_type__delete'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletionResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/privacy/data/all:
    delete:
      tags:
      - privacy
      summary: Delete All Data
      description: 'Delete ALL user data across every source.


        The User account itself is not deleted; use DELETE /users/me for full

        account erasure. preserve_edited is always False for this operation.'
      operationId: delete_all_data_api_v1_privacy_data_all_delete
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteAllResult'
      security:
      - HTTPBearer: []
components:
  schemas:
    DataSourceType:
      type: string
      enum:
      - google_maps_takeout
      - share_extension
      - social_save
      - link_unfurl
      - image_ocr
      - device_location
      - visit_history
      - plan_history
      title: DataSourceType
    DataDashboardResponse:
      properties:
        consents:
          items:
            $ref: '#/components/schemas/ConsentResponse'
          type: array
          title: Consents
        total_places:
          type: integer
          title: Total Places
        total_visits:
          type: integer
          title: Total Visits
        total_plans:
          type: integer
          title: Total Plans
        account_created_at:
          type: string
          format: date-time
          title: Account Created At
        privacy_policy_version:
          type: string
          title: Privacy Policy Version
      type: object
      required:
      - consents
      - total_places
      - total_visits
      - total_plans
      - account_created_at
      - privacy_policy_version
      title: DataDashboardResponse
    DeletionResult:
      properties:
        source_type:
          $ref: '#/components/schemas/DataSourceType'
        deleted_count:
          type: integer
          title: Deleted Count
        preserved_count:
          type: integer
          title: Preserved Count
        preserved_place_ids:
          items:
            type: string
            format: uuid
          type: array
          title: Preserved Place Ids
        message:
          type: string
          title: Message
      type: object
      required:
      - source_type
      - deleted_count
      - preserved_count
      - preserved_place_ids
      - message
      title: DeletionResult
    ConsentResponse:
      properties:
        source_type:
          $ref: '#/components/schemas/DataSourceType'
        is_enabled:
          type: boolean
          title: Is Enabled
        consent_tier:
          $ref: '#/components/schemas/ConsentTier'
        consented_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Consented At
        revoked_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Revoked At
        consent_version:
          anyOf:
          - type: string
          - type: 'null'
          title: Consent Version
        record_count:
          type: integer
          title: Record Count
        oldest_record_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Oldest Record At
        newest_record_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Newest Record At
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
        retention_days:
          anyOf:
          - type: integer
          - type: 'null'
          title: Retention Days
      type: object
      required:
      - source_type
      - is_enabled
      - consent_tier
      - consented_at
      - revoked_at
      - consent_version
      - record_count
      - oldest_record_at
      - newest_record_at
      - last_used_at
      - retention_days
      title: ConsentResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ConsentTier:
      type: string
      enum:
      - implicit
      - explicit
      - always_on
      title: ConsentTier
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Body_delete_source_data_api_v1_privacy_data__source_type__delete:
      properties:
        preserve_edited:
          type: boolean
          title: Preserve Edited
          default: true
      type: object
      title: Body_delete_source_data_api_v1_privacy_data__source_type__delete
    DeleteAllResult:
      properties:
        results:
          items:
            $ref: '#/components/schemas/DeletionResult'
          type: array
          title: Results
        total_deleted:
          type: integer
          title: Total Deleted
        message:
          type: string
          title: Message
      type: object
      required:
      - results
      - total_deleted
      - message
      title: DeleteAllResult
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer