TheirStack Email Preferences API

The Email Preferences API from TheirStack — 2 operation(s) for email preferences.

GitHub OpenAPI

Operations 4

GET /v0/email-preferences Get Email Preferences #
PUT /v0/email-preferences Update Email Preferences #
GET /v0/email-preferences/unsubscribe/{preference_key} Unsubscribe From Email #
POST /v0/email-preferences/unsubscribe/{preference_key} One-Click Unsubscribe (Rfc 8058) #

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/theirstack-com:theirstack-com-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

theirstack-com-email-preferences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TheirStack API Reference Email Preferences API
  description: '# Introduction


    Welcome to the TheirStack API - the largest database of jobs and technographics. You can use this API to access all our API endpoints, such as the Jobs endpoint to get real-time and historical jobs from more than 100 countries, the Companies endpoint to get a list of companies by the technology they use or by the roles they are hiring for, or

    the Technographics endpoint to get a list of technologies used by a company. The API is organized around REST. All requests should be made over SSL. All request and response bodies, including errors, are encoded in JSON. A Swagger UI of these docs is also available at /openapi. ---


    # Authentication


    Authentication is done via the API key which you can find in your account settings. When making a call, you''ll have to specify this API key with the Authorization header. Here''s an example:


    ```sh

    Authorization: Bearer

    ```


    ---


    # Pagination


    Responses that return a list of items are paginated. We offer two different pagination strategies:


    - **Page-based**: This method allows you to navigate through paginated data by specifying the `page` and `limit` parameters. The `page` parameter indicates the page number you wish to retrieve, while the `limit` parameter specifies the maximum number of items to return per page. For POST requests, include these parameters in the request body. For GET requests, use them as query parameters. - **Offset-based**: This method allows you to navigate through paginated data by specifying the `offset` and `limit` parameters. The `offset` parameter indicates the starting point within the collection of results, while the `limit` parameter specifies the maximum number of items to return. For POST requests, include these parameters in the request body. For GET requests, use them as query parameters. Some of these endpoints also support the `include_total_results` body or query parameter. If you set it to `false`, the responses will be faster, and the field `total_results` of the response will be `null`. ---


    # Rate Limit


    All API endpoints are rate limited to ensure reliability and fair usage. When a limit is exceeded, the API returns **HTTP 429 Too Many Requests**. Limits are applied **per user** (or per API key) with sliding windows; multiple windows may apply simultaneously. ## Tiered endpoints and limits


    Endpoints covered by tier-based limits:


    * POST `/v1/jobs/search` (Jobs Search)

    * POST `/v1/companies/search` (Companies Search)

    * POST `/v1/companies/technologies` (Technographics)


    Shared limits across all three endpoints:


    | Tier | API limits |

    | ---- | ------------------------------------- |

    | Free | 4/second, 10/minute, 50/hour, 400/day |

    | Paid | 4/second |


    - **Paid tier** applies to users who have made at least one payment. - **Free tier** applies to all other users (users who have never paid or users without any payments done). Multiple limits are applied simultaneously. A request is rejected if it exceeds **any** active window. ## Rate limit headers


    The API returns rate limit information in every response. We follow the **IETF HTTPAPI draft** for RateLimit headers: RateLimit header fields for HTTP. When multiple rate limits apply, header items are comma-separated and ordered consistently across headers. ### IETF compliant headers


    - `RateLimit`: Current quota status per policy. Format: `""; r=; t=; pk=`. - `RateLimit-Policy`: Applied policy definition. Format: `""; q=; w=`. ### Other headers


    These are included for client convenience:


    - `RateLimit-Limit`: Total allowed requests for each window

    - `RateLimit-Remaining`: Requests remaining in each window

    - `RateLimit-Reset`: Seconds until the current window resets


    The order of values in legacy headers **matches the order of `RateLimit` items**.'
  version: 1.0.0
servers:
- url: https://api.theirstack.com
  description: Production
tags:
- name: Email Preferences
paths:
  /v0/email-preferences:
    get:
      tags:
      - Email Preferences
      summary: Get Email Preferences
      description: 'Get which optional emails the current user receives, grouped by category (usage, alerts, onboarding): `form_data` holds each preference as `true` or `false`, and `schema` describes each one. Emails with no preference here, such as invitations, failed payments and support ticket updates, are always sent.'
      operationId: get_email_preferences_v0
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailPreferencesResponseV0'
      security:
      - Bearer: []
    put:
      tags:
      - Email Preferences
      summary: Update Email Preferences
      description: Turn the current user's optional emails on or off. Send only the preferences to change, grouped by category, as `true` (send) or `false` (don't send); the rest keep their value. Returns every preference after the change.
      operationId: put_email_preferences_v0
      requestBody:
        content:
          application/json:
            schema:
              properties:
                usage:
                  properties:
                    credit_usage_alerts:
                      type: boolean
                      description: Receive emails as your credit usage approaches or reaches the limit (70%, 90%, depleted)
                  additionalProperties: false
                  type: object
                alerts:
                  properties:
                    export_reengage:
                      type: boolean
                      description: Receive emails when your searches/exports have new matching records
                    export_notifications:
                      type: boolean
                      description: Receive an email with the download link when an export finishes
                  additionalProperties: false
                  type: object
                onboarding:
                  properties:
                    onboarding_emails:
                      type: boolean
                      description: Welcome emails and product tips during your first days using TheirStack
                  additionalProperties: false
                  type: object
              additionalProperties: false
              type: object
              title: Body
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailPreferencesResponseV0'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - Bearer: []
  /v0/email-preferences/unsubscribe/{preference_key}:
    get:
      tags:
      - Email Preferences
      summary: Unsubscribe From Email
      description: The page an email's unsubscribe link opens. It asks the person to confirm before turning off that kind of email, because mail security scanners open every link in a message. The signed `token` in the link is the authorization.
      operationId: unsubscribe_email_v0
      parameters:
      - name: preference_key
        in: path
        required: true
        schema:
          type: string
          title: Preference Key
      - name: token
        in: query
        required: true
        schema:
          type: string
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Email Preferences
      summary: One-Click Unsubscribe (Rfc 8058)
      description: Turn off one kind of email for the person the signed `token` belongs to. Answers both the one-click unsubscribe mail clients send (RFC 8058) and the button on the confirmation page.
      operationId: unsubscribe_email_one_click_v0
      parameters:
      - name: preference_key
        in: path
        required: true
        schema:
          type: string
          title: Preference Key
      - name: token
        in: query
        required: true
        schema:
          type: string
          title: Token
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_unsubscribe_email_one_click_v0'
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
    EmailPreferencesResponseV0:
      properties:
        schema:
          additionalProperties: true
          type: object
          title: Schema
        form_data:
          additionalProperties:
            additionalProperties:
              type: boolean
            type: object
          type: object
          title: Form Data
      type: object
      required:
      - schema
      - form_data
      title: EmailPreferencesResponseV0
    Body_unsubscribe_email_one_click_v0:
      properties:
        List-Unsubscribe:
          type: string
          title: List-Unsubscribe
          default: One-Click
      type: object
      title: Body_unsubscribe_email_one_click_v0
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer