Yondry Users API

The users API from Yondry, for users.

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 9

GET /api/v1/users/me Get Me #
PATCH /api/v1/users/me Update Me #
POST /api/v1/users/me/complete-onboarding Complete Onboarding #
PATCH /api/v1/users/me/location Silent background location update (fire-and-forget) #
PATCH /api/v1/users/me/transport Update Transport #
PUT /api/v1/users/me/push-token Register or refresh the Expo push token for this device #
GET /api/v1/users/me/sync-status Get Sync Status #
GET /api/v1/users/me/export Export all personal data (UK GDPR Art. 15/20) #
PUT /api/v1/users/me/children Replace Children #

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-users-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-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Yondry Users API
  version: 0.1.0
tags:
- name: Users
paths:
  /api/v1/users/me:
    get:
      tags:
      - Users
      summary: Get Me
      description: Return the authenticated user's full profile.
      operationId: get_me_api_v1_users_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
      - HTTPBearer: []
    patch:
      tags:
      - Users
      summary: Update Me
      description: 'Partial update of home/radius settings.


        Only supplied fields are changed; omitted fields remain unchanged.

        Accepts both new field names (home_lng, home_address, default_radius_km,

        radius_unit) and legacy names (home_lon, home_label, travel_radius_km)

        for backward compatibility.


        Validates:

        - radius 2–300 km (or the legacy > 0–300 range for travel_radius_km)

        - radius_unit must be ''km'' or ''miles'''
      operationId: update_me_api_v1_users_me_patch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserUpdateSettings'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/users/me/complete-onboarding:
    post:
      tags:
      - Users
      summary: Complete Onboarding
      description: 'Atomically record all onboarding data and mark onboarding as complete.


        Idempotent: safe to call again if onboarding is already done (e.g. user

        goes back and re-submits the onboarding flow). Returns 200 in both cases.'
      operationId: complete_onboarding_api_v1_users_me_complete_onboarding_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserUpdateOnboarding'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/users/me/location:
    patch:
      tags:
      - Users
      summary: Silent background location update (fire-and-forget)
      description: 'Record the user''s current device location for planning purposes.


        Returns 204 No Content — the mobile client does not need to await a body.

        The last_location fields are used by resolve_planning_location as a

        secondary planning origin when the user is far from home.


        Requires DEVICE_LOCATION consent (EXPLICIT tier). Returns 403 if not

        granted — the mobile client should guide the user to the privacy settings.'
      operationId: update_location_api_v1_users_me_location_patch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserUpdateLocation'
        required: true
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/users/me/transport:
    patch:
      tags:
      - Users
      summary: Update Transport
      description: 'Update the user''s transport mode preferences.


        Validates that all supplied modes are in {driving, walking, cycling, transit}

        and that the list is non-empty. Sets primary_transport_mode to modes[0].


        If update_radius=True, also resets default_radius_km to the default radius

        for the primary mode (e.g. walking → 5 km, driving → 50 km).'
      operationId: update_transport_api_v1_users_me_transport_patch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TransportModeUpdate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/users/me/push-token:
    put:
      tags:
      - Users
      summary: Register or refresh the Expo push token for this device
      description: 'Store or replace the Expo push token for the authenticated user''s device.


        Called on app launch whenever push permission is granted. Returns 204.'
      operationId: update_push_token_api_v1_users_me_push_token_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PushTokenUpdate'
        required: true
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/users/me/sync-status:
    get:
      tags:
      - Users
      summary: Get Sync Status
      description: 'Lightweight staleness check for mobile foreground refresh.


        Returns the MAX(updated_at) for each entity type the client caches.

        Mobile compares these against its local "last fetched" timestamps and

        only re-fetches the endpoints that have changed since the last sync.


        All queries are single-aggregate SELECTs — no joins, no heavy scanning.'
      operationId: get_sync_status_api_v1_users_me_sync_status_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SyncStatusResponse'
      security:
      - HTTPBearer: []
  /api/v1/users/me/export:
    get:
      tags:
      - Users
      summary: Export all personal data (UK GDPR Art. 15/20)
      description: 'Return a complete, machine-readable export of all personal data held for

        the authenticated user (UK GDPR Art. 15 / Art. 20).'
      operationId: export_my_data_api_v1_users_me_export_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserDataExport'
      security:
      - HTTPBearer: []
  /api/v1/users/me/children:
    put:
      tags:
      - Users
      summary: Replace Children
      description: Replace the user's full child list (idempotent re-submit on each onboarding save).
      operationId: replace_children_api_v1_users_me_children_put
      requestBody:
        content:
          application/json:
            schema:
              items:
                $ref: '#/components/schemas/ChildIn'
              type: array
              title: Body
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
components:
  schemas:
    ChildOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        age_range:
          type: string
          title: Age Range
        label:
          anyOf:
          - type: string
          - type: 'null'
          title: Label
      type: object
      required:
      - id
      - age_range
      - label
      title: ChildOut
    UserUpdateOnboarding:
      properties:
        home_lat:
          type: number
          maximum: 90.0
          minimum: -90.0
          title: Home Lat
        home_lng:
          type: number
          maximum: 180.0
          minimum: -180.0
          title: Home Lng
        home_address:
          type: string
          maxLength: 255
          title: Home Address
        home_place_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Home Place Id
        default_radius_km:
          type: number
          maximum: 300.0
          minimum: 2.0
          title: Default Radius Km
        radius_unit:
          type: string
          enum:
          - km
          - miles
          title: Radius Unit
          default: km
        transport_modes:
          items:
            type: string
          type: array
          title: Transport Modes
        primary_transport_mode:
          anyOf:
          - type: string
          - type: 'null'
          title: Primary Transport Mode
      type: object
      required:
      - home_lat
      - home_lng
      - home_address
      - default_radius_km
      title: UserUpdateOnboarding
      description: 'POST /users/me/complete-onboarding — all location/radius fields required,

        sets onboarding_completed = True in one atomic call.'
    TransportModeUpdate:
      properties:
        transport_modes:
          items:
            type: string
          type: array
          title: Transport Modes
        update_radius:
          type: boolean
          title: Update Radius
          default: false
      type: object
      required:
      - transport_modes
      title: TransportModeUpdate
      description: "PATCH /users/me/transport — update transport mode preferences.\n\ntransport_modes:  list of enabled modes (validated by TransportService)\nupdate_radius:    if True, also reset default_radius_km to the mode default\n                  for the primary (first) mode"
    UserDataExport:
      properties:
        exported_at:
          type: string
          format: date-time
          title: Exported At
        profile:
          $ref: '#/components/schemas/UserOut'
        places:
          items:
            $ref: '#/components/schemas/PlaceOut'
          type: array
          title: Places
        visits:
          items:
            $ref: '#/components/schemas/VisitOut'
          type: array
          title: Visits
        feedback:
          items:
            $ref: '#/components/schemas/FeedbackOut'
          type: array
          title: Feedback
        social_saves:
          items:
            $ref: '#/components/schemas/SocialSaveOut'
          type: array
          title: Social Saves
      type: object
      required:
      - exported_at
      - profile
      - places
      - visits
      - feedback
      - social_saves
      title: UserDataExport
      description: 'Full data export — satisfies UK GDPR Art. 15 (SAR) and Art. 20 (portability).

        Returned by GET /users/me/export.'
    FeedbackOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        place_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Place Id
        rating:
          type: string
          title: Rating
        notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Notes
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - place_id
      - rating
      - notes
      - created_at
      title: FeedbackOut
    UserUpdateSettings:
      properties:
        home_lat:
          anyOf:
          - type: number
            maximum: 90.0
            minimum: -90.0
          - type: 'null'
          title: Home Lat
        home_lng:
          anyOf:
          - type: number
            maximum: 180.0
            minimum: -180.0
          - type: 'null'
          title: Home Lng
        home_address:
          anyOf:
          - type: string
            maxLength: 255
          - type: 'null'
          title: Home Address
        home_place_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Home Place Id
        default_radius_km:
          anyOf:
          - type: number
            maximum: 300.0
            minimum: 2.0
          - type: 'null'
          title: Default Radius Km
        radius_unit:
          anyOf:
          - type: string
            enum:
            - km
            - miles
          - type: 'null'
          title: Radius Unit
        home_lon:
          anyOf:
          - type: number
            maximum: 180.0
            minimum: -180.0
          - type: 'null'
          title: Home Lon
        home_label:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Home Label
        travel_radius_km:
          anyOf:
          - type: number
            maximum: 300.0
            exclusiveMinimum: 0.0
          - type: 'null'
          title: Travel Radius Km
        onboarding_completed:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Onboarding Completed
        transport_modes:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Transport Modes
        primary_transport_mode:
          anyOf:
          - type: string
          - type: 'null'
          title: Primary Transport Mode
      type: object
      title: UserUpdateSettings
      description: 'PATCH /users/me — partial update of home/radius settings.


        Accepts both new field names (home_lng, home_address, default_radius_km,

        radius_unit) and legacy names (home_lon, home_label, travel_radius_km)

        so existing mobile clients that haven''t updated yet continue to work.

        The service layer coalesces duplicate fields.'
    VisitOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        place_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Place Id
        visited_at:
          type: string
          format: date-time
          title: Visited At
        source:
          type: string
          title: Source
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - place_id
      - visited_at
      - source
      - created_at
      title: VisitOut
      description: Minimal visit shape (backward-compatible).
    UserResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        email:
          type: string
          format: email
          title: Email
        is_active:
          type: boolean
          title: Is Active
        is_verified:
          type: boolean
          title: Is Verified
        display_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Display Name
        avatar_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Avatar Url
        auth_provider:
          type: string
          title: Auth Provider
          default: email
        onboarding_completed:
          type: boolean
          title: Onboarding Completed
          default: false
        home_lat:
          anyOf:
          - type: number
          - type: 'null'
          title: Home Lat
        home_lng:
          anyOf:
          - type: number
          - type: 'null'
          title: Home Lng
        home_address:
          anyOf:
          - type: string
          - type: 'null'
          title: Home Address
        home_place_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Home Place Id
        default_radius_km:
          type: number
          title: Default Radius Km
          default: 50.0
        radius_unit:
          type: string
          title: Radius Unit
          default: km
        home_lon:
          anyOf:
          - type: number
          - type: 'null'
          title: Home Lon
        home_label:
          anyOf:
          - type: string
          - type: 'null'
          title: Home Label
        travel_radius_km:
          anyOf:
          - type: number
          - type: 'null'
          title: Travel Radius Km
        transport_modes:
          items:
            type: string
          type: array
          title: Transport Modes
        primary_transport_mode:
          type: string
          title: Primary Transport Mode
          default: driving
        location_history_opt_in:
          type: boolean
          title: Location History Opt In
          default: false
        children:
          items:
            $ref: '#/components/schemas/ChildOut'
          type: array
          title: Children
          default: []
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - email
      - is_active
      - is_verified
      - created_at
      title: UserResponse
      description: 'Full user profile response.


        Exposes both the new field names introduced in the home-settings feature

        (home_lng, home_address, default_radius_km, radius_unit) AND the legacy

        names (home_lon, home_label, travel_radius_km) so existing clients and

        tests are not broken.'
    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
    ChildIn:
      properties:
        age_range:
          type: string
          enum:
          - 0-2
          - 3-5
          - 6-11
          - 12-17
          title: Age Range
        label:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Label
      type: object
      required:
      - age_range
      title: ChildIn
    SyncStatusResponse:
      properties:
        places_last_modified:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Places Last Modified
        collections_last_modified:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Collections Last Modified
        profile_last_modified:
          type: string
          format: date-time
          title: Profile Last Modified
      type: object
      required:
      - profile_last_modified
      title: SyncStatusResponse
      description: 'GET /users/me/sync-status — lightweight staleness check.


        Mobile calls this on foreground resume to decide which cached responses

        need refreshing.  All queries are simple MAX(updated_at) aggregates — no

        heavy joins.


        ``collections_last_modified`` is None until the collections feature ships

        a backend implementation.'
    PushTokenUpdate:
      properties:
        token:
          type: string
          maxLength: 255
          minLength: 1
          title: Token
      type: object
      required:
      - token
      title: PushTokenUpdate
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UserOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        email:
          type: string
          format: email
          title: Email
        is_active:
          type: boolean
          title: Is Active
        is_verified:
          type: boolean
          title: Is Verified
        home_lat:
          anyOf:
          - type: number
          - type: 'null'
          title: Home Lat
        home_lon:
          anyOf:
          - type: number
          - type: 'null'
          title: Home Lon
        home_label:
          anyOf:
          - type: string
          - type: 'null'
          title: Home Label
        travel_radius_km:
          anyOf:
          - type: number
          - type: 'null'
          title: Travel Radius Km
        location_history_opt_in:
          type: boolean
          title: Location History Opt In
        children:
          items:
            $ref: '#/components/schemas/ChildOut'
          type: array
          title: Children
          default: []
        created_at:
          type: string
          format: date-time
          title: Created At
        display_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Display Name
        avatar_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Avatar Url
        auth_provider:
          type: string
          title: Auth Provider
          default: email
        onboarding_completed:
          type: boolean
          title: Onboarding Completed
          default: false
      type: object
      required:
      - id
      - email
      - is_active
      - is_verified
      - home_lat
      - home_lon
      - home_label
      - travel_radius_km
      - location_history_opt_in
      - created_at
      title: UserOut
    PlaceOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        address:
          anyOf:
          - type: string
          - type: 'null'
          title: Address
        lat:
          anyOf:
          - type: number
          - type: 'null'
          title: Lat
        lon:
          anyOf:
          - type: number
          - type: 'null'
          title: Lon
        category:
          anyOf:
          - type: string
          - type: 'null'
          title: Category
        indoor_outdoor:
          anyOf:
          - type: string
          - type: 'null'
          title: Indoor Outdoor
        budget_level:
          anyOf:
          - type: string
          - type: 'null'
          title: Budget Level
        kid_min_age:
          anyOf:
          - type: integer
          - type: 'null'
          title: Kid Min Age
        kid_max_age:
          anyOf:
          - type: integer
          - type: 'null'
          title: Kid Max Age
        always_open:
          type: boolean
          title: Always Open
        opening_time:
          anyOf:
          - type: string
          - type: 'null'
          title: Opening Time
        closing_time:
          anyOf:
          - type: string
          - type: 'null'
          title: Closing Time
        tags:
          items:
            type: string
          type: array
          title: Tags
        source:
          type: string
          title: Source
        notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Notes
        is_deleted:
          type: boolean
          title: Is Deleted
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
      - id
      - name
      - address
      - lat
      - lon
      - category
      - indoor_outdoor
      - budget_level
      - kid_min_age
      - kid_max_age
      - always_open
      - opening_time
      - closing_time
      - tags
      - source
      - notes
      - is_deleted
      - created_at
      - updated_at
      title: PlaceOut
      description: 'Legacy response schema retained for places_import.py and existing tests.


        New endpoints return PlaceResponse.  This type is intentionally narrow so

        it deserialises cleanly from both old and new Place ORM rows.'
    SocialSaveOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        source_url:
          type: string
          title: Source Url
        thumbnail_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Thumbnail Url
        caption_excerpt:
          anyOf:
          - type: string
          - type: 'null'
          title: Caption Excerpt
        extracted_place_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Extracted Place Name
        extracted_address:
          anyOf:
          - type: string
          - type: 'null'
          title: Extracted Address
        place_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Place Id
        extraction_layer:
          anyOf:
          - type: string
          - type: 'null'
          title: Extraction Layer
        extraction_attempts:
          anyOf:
          - items: {}
            type: array
          - type: 'null'
          title: Extraction Attempts
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - source_url
      - thumbnail_url
      - caption_excerpt
      - extracted_place_name
      - extracted_address
      - place_id
      - created_at
      title: SocialSaveOut
      description: Read-only view of a SocialSave row — used in the data-export endpoint.
    UserUpdateLocation:
      properties:
        last_location_lat:
          type: number
          maximum: 90.0
          minimum: -90.0
          title: Last Location Lat
        last_location_lng:
          type: number
          maximum: 180.0
          minimum: -180.0
          title: Last Location Lng
      type: object
      required:
      - last_location_lat
      - last_location_lng
      title: UserUpdateLocation
      description: 'PATCH /users/me/location — silent background location update.

        Returns 204 No Content (fire-and-forget from mobile).'
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer