Armor Preferences API

The Preferences resource describes a list of user-level preferences.

Operations 3

GET /preferences/{type} Get User Preferences #
PUT /preferences/{type} Create or Update User Preferences #
POST /preferences/actions/list-for-org List Preferences for Organization #

Documentation

Specifications

Other Resources

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/armor-preferences-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

armor-preferences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Notifications Preferences API
  description: 'This API provides an interface for configuring and interacting with Armor''s notifications platform.


    Base URL: `https://notifications.api.secure-prod.services/`

    '
  version: 1.0.0
servers:
- url: https://notifications.api.secure-dev.services
  description: Development
- url: https://notifications.api.secure-stage.services
  description: Staging
- url: https://notifications.api.secure-prod.services
  description: Production
security:
- OAuth2: []
tags:
- name: Preferences
  description: 'The Preferences resource describes a list of user-level preferences.

    '
paths:
  /preferences/{type}:
    get:
      tags:
      - Preferences
      summary: Get User Preferences
      description: Get the user preferences of the given type for the currently logged-in user.
      operationId: getUserPreferences
      parameters:
      - name: type
        in: path
        required: true
        description: Filter by notification type.
        schema:
          type: string
          enum:
          - tours
          - offenses
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Preference'
    put:
      tags:
      - Preferences
      summary: Create or Update User Preferences
      description: Create or update a notification preference of the given type for the currently logged-in user.
      operationId: createOrUpdateUserPreferences
      parameters:
      - name: type
        in: path
        required: true
        description: The notification type.
        schema:
          type: string
          enum:
          - tours
          - offenses
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Preference'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Preference'
  /preferences/actions/list-for-org:
    post:
      tags:
      - Preferences
      summary: List Preferences for Organization
      description: Return a list of all users and their preferences for a given organization ID.
      operationId: listPreferencesForOrg
      x-internal: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreferenceListRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Preference'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    Message:
      type: object
      properties:
        message:
          type: string
          description: Error or informational message
    Preference:
      type: object
      required:
      - orgId
      - userId
      - type
      - preference
      properties:
        orgId:
          type: integer
          description: The unique identifier of organization.
        userId:
          type: integer
          description: The unique identifier of user who has preference configured.
        type:
          type: string
          description: The type of preference.
          enum:
          - tours
          - offenses
        preference:
          type: object
          description: An object map of preferences - the object properties depend on the preference type.
    PreferenceListRequest:
      type: object
      required:
      - orgId
      - type
      properties:
        orgId:
          type: integer
          description: The unique identifier of organization.
        type:
          type: string
          description: The type of preference.
          enum:
          - tours
          - offenses
  responses:
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
  securitySchemes:
    OAuth2:
      type: oauth2
      description: OAuth 2.0 authentication with scopes
      flows:
        clientCredentials:
          tokenUrl: https://api.armor.com/auth/authorize
          scopes: {}