Retirement Lab Email Preferences API

The email-preferences API from Retirement Lab — 3 operation(s) for email-preferences.

GitHub OpenAPI

Operations 3

GET /api/email-preferences Get Email Preferences #
PUT /api/email-preferences/{topic} Update Email Preference #
POST /api/email-preferences/unsubscribe/{token} Unsubscribe Via Token #

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-email-preferences-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-email-preferences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Income Simulator Email Preferences API
  version: 0.1.0
tags:
- name: email-preferences
paths:
  /api/email-preferences:
    get:
      tags:
      - email-preferences
      summary: Get Email Preferences
      operationId: get_email_preferences_api_email_preferences_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailPreferencesResponse'
      security:
      - HTTPBearer: []
  /api/email-preferences/{topic}:
    put:
      tags:
      - email-preferences
      summary: Update Email Preference
      operationId: update_email_preference_api_email_preferences__topic__put
      parameters:
      - required: true
        schema:
          type: string
          title: Topic
        name: topic
        in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailPreferenceUpdateRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailPreferenceUpdateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/email-preferences/unsubscribe/{token}:
    post:
      tags:
      - email-preferences
      summary: Unsubscribe Via Token
      description: 'Public, no-login one-click unsubscribe for product-email links.


        Deliberately has no authentication dependency: the token itself (an

        unguessable 32-byte value, never logged or exposed in plaintext) is the

        only credential, matching how session and service-key tokens are

        verified elsewhere in this module.'
      operationId: unsubscribe_via_token_api_email_preferences_unsubscribe__token__post
      parameters:
      - required: true
        schema:
          type: string
          title: Token
        name: token
        in: path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnsubscribeResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EmailPreferenceUpdateRequest:
      properties:
        opted_in:
          type: boolean
          title: Opted In
        source:
          type: string
          maxLength: 80
          title: Source
          default: account_settings
      type: object
      required:
      - opted_in
      title: EmailPreferenceUpdateRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EmailPreferenceTopicResponse:
      properties:
        topic:
          type: string
          title: Topic
        label:
          type: string
          title: Label
        description:
          type: string
          title: Description
        email_supported:
          type: boolean
          title: Email Supported
          default: true
        opted_in:
          type: boolean
          title: Opted In
        can_change:
          type: boolean
          title: Can Change
        last_updated_at:
          type: string
          format: date-time
          title: Last Updated At
        push_opted_in:
          type: boolean
          title: Push Opted In
          default: false
        push_can_change:
          type: boolean
          title: Push Can Change
          default: false
        push_last_updated_at:
          type: string
          format: date-time
          title: Push Last Updated At
      type: object
      required:
      - topic
      - label
      - description
      - opted_in
      - can_change
      title: EmailPreferenceTopicResponse
    EmailPreferencesResponse:
      properties:
        email:
          type: string
          title: Email
        email_present:
          type: boolean
          title: Email Present
        service_email_note:
          type: string
          title: Service Email Note
        no_email_note:
          type: string
          title: No Email Note
        preferences:
          items:
            $ref: '#/components/schemas/EmailPreferenceTopicResponse'
          type: array
          title: Preferences
      type: object
      required:
      - email_present
      - service_email_note
      - no_email_note
      - preferences
      title: EmailPreferencesResponse
    EmailPreferenceUpdateResponse:
      properties:
        topic:
          type: string
          title: Topic
        opted_in:
          type: boolean
          title: Opted In
        last_updated_at:
          type: string
          format: date-time
          title: Last Updated At
      type: object
      required:
      - topic
      - opted_in
      - last_updated_at
      title: EmailPreferenceUpdateResponse
    UnsubscribeResult:
      properties:
        valid:
          type: boolean
          title: Valid
        topic:
          type: string
          title: Topic
        confirmation_text:
          type: string
          title: Confirmation Text
      type: object
      required:
      - valid
      title: UnsubscribeResult
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer