Retirement Lab Notifications API

The notifications API from Retirement Lab — 6 operation(s) for notifications.

GitHub OpenAPI

Operations 6

POST /api/notifications/devices Register Device #
DELETE /api/notifications/devices/{token} Unregister Device #
PUT /api/notifications/preferences/{topic} Update Notification Preference #
POST /api/notifications/send Send Notification #
POST /api/notifications/triggers/plan-revisit Trigger Plan Revisit #
POST /api/notifications/internal/triggers/plan-revisit/{user_id} Trigger Plan Revisit For User #

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/retirementlab-app:retirementlab-app-notifications-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

retirementlab-app-notifications-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Income Simulator Notifications API
  version: 0.1.0
tags:
- name: Notifications
paths:
  /api/notifications/devices:
    post:
      tags:
      - Notifications
      summary: Register Device
      operationId: register_device_api_notifications_devices_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PushDeviceRegisterRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushDeviceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/notifications/devices/{token}:
    delete:
      tags:
      - Notifications
      summary: Unregister Device
      operationId: unregister_device_api_notifications_devices__token__delete
      parameters:
      - required: true
        schema:
          type: string
          title: Token
        name: token
        in: path
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/notifications/preferences/{topic}:
    put:
      tags:
      - Notifications
      summary: Update Notification Preference
      operationId: update_notification_preference_api_notifications_preferences__topic__put
      parameters:
      - required: true
        schema:
          type: string
          title: Topic
        name: topic
        in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationPreferenceUpdateRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferenceUpdateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/notifications/send:
    post:
      tags:
      - Notifications
      summary: Send Notification
      operationId: send_notification_api_notifications_send_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PushSendRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushSendResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/notifications/triggers/plan-revisit:
    post:
      tags:
      - Notifications
      summary: Trigger Plan Revisit
      operationId: trigger_plan_revisit_api_notifications_triggers_plan_revisit_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushSendResponse'
      security:
      - HTTPBearer: []
  /api/notifications/internal/triggers/plan-revisit/{user_id}:
    post:
      tags:
      - Notifications
      summary: Trigger Plan Revisit For User
      description: 'Server-owned re-engagement trigger for an arbitrary user.


        Unlike ``/triggers/plan-revisit`` above (self-service, current user only),

        this lets backend/internal scheduling code re-engage any eligible user —

        opt-out and device-availability enforcement still happen inside

        ``send_notification_to_user``, so callers don''t need to duplicate that logic.'
      operationId: trigger_plan_revisit_for_user_api_notifications_internal_triggers_plan_revisit__user_id__post
      parameters:
      - required: true
        schema:
          type: integer
          title: User Id
        name: user_id
        in: path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushSendResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
components:
  schemas:
    NotificationPreferenceUpdateResponse:
      properties:
        topic:
          type: string
          title: Topic
        push_opted_in:
          type: boolean
          title: Push Opted In
        last_updated_at:
          type: string
          format: date-time
          title: Last Updated At
      type: object
      required:
      - topic
      - push_opted_in
      - last_updated_at
      title: NotificationPreferenceUpdateResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PushSendRequest:
      properties:
        topic:
          type: string
          enum:
          - plan_revisit
          - scenario_update
          title: Topic
        deep_link_path:
          type: string
          title: Deep Link Path
          default: /
        title:
          type: string
          maxLength: 80
          title: Title
        body:
          type: string
          maxLength: 180
          title: Body
        metadata:
          type: object
          title: Metadata
      type: object
      required:
      - topic
      title: PushSendRequest
    PushDeviceRegisterRequest:
      properties:
        token:
          type: string
          minLength: 1
          title: Token
        platform:
          type: string
          enum:
          - ios
          - android
          title: Platform
        app_version:
          type: string
          maxLength: 80
          title: App Version
        device_model:
          type: string
          maxLength: 120
          title: Device Model
      type: object
      required:
      - token
      - platform
      title: PushDeviceRegisterRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    NotificationPreferenceUpdateRequest:
      properties:
        push_opted_in:
          type: boolean
          title: Push Opted In
      type: object
      required:
      - push_opted_in
      title: NotificationPreferenceUpdateRequest
    PushSendResponse:
      properties:
        topic:
          type: string
          title: Topic
        attempted:
          type: integer
          title: Attempted
        sent:
          type: integer
          title: Sent
        failed:
          type: integer
          title: Failed
        skipped:
          type: boolean
          title: Skipped
          default: false
      type: object
      required:
      - topic
      - attempted
      - sent
      - failed
      title: PushSendResponse
    PushDeviceResponse:
      properties:
        id:
          type: integer
          title: Id
        platform:
          type: string
          enum:
          - ios
          - android
          title: Platform
        app_version:
          type: string
          title: App Version
        device_model:
          type: string
          title: Device Model
        last_registered_at:
          type: string
          format: date-time
          title: Last Registered At
      type: object
      required:
      - id
      - platform
      - last_registered_at
      title: PushDeviceResponse
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer