AnomalyArmor Subscriptions API

The subscriptions API from AnomalyArmor — 9 operation(s) for subscriptions.

Operations 9

POST /api/v1/subscriptions/checkout-sessions Create Checkout Session #
POST /api/v1/subscriptions/portal-sessions Create Customer Portal Session #
GET /api/v1/subscriptions/current Get Current Subscription #
GET /api/v1/subscriptions/usage Get Usage And Limits #
GET /api/v1/subscriptions/tiers Get Subscription Tiers #
POST /api/v1/subscriptions/cancellations Create Subscription Cancellation #
POST /api/v1/subscriptions/reactivations Create Subscription Reactivation #
GET /api/v1/subscriptions/features Get Subscription Features #
POST /api/v1/subscriptions/downgrade-validations Validate Downgrade #

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/anomalyarmor-ai:anomalyarmor-ai-subscriptions-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 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. See our Privacy Policy and Terms.

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

OpenAPI Specification

anomalyarmor-ai-subscriptions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Anomalyarmor Ai Subscriptions API
  version: 1.0.0
  contact:
    name: AnomalyArmor Support
    url: https://anomalyarmor.ai/support
  license:
    name: Proprietary
  description: 'Operations tagged subscriptions across 3 of this provider''s published API definitions: anomalyarmor.ai-openapi.json, app.anomalyarmor.ai-openapi.json, docs.anomalyarmor.ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:8000
  description: Development server
- url: https://api.anomalyarmor.ai
  description: Production server
tags:
- name: Subscriptions
paths:
  /api/v1/subscriptions/checkout-sessions:
    post:
      tags:
      - Subscriptions
      summary: Create Checkout Session
      description: 'Create a Stripe checkout session for subscription purchase.


        Args:

        request: Checkout session request data

        ctx: Application context with user, session, and company_id


        Returns:

        Checkout session URL and ID'
      operationId: create_checkout_session_api_v1_subscriptions_checkout_sessions_post
      parameters:
      - name: Authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCheckoutRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: http://localhost:8000
      description: Development server
    - url: https://api.anomalyarmor.ai
      description: Production server
  /api/v1/subscriptions/portal-sessions:
    post:
      tags:
      - Subscriptions
      summary: Create Customer Portal Session
      description: 'Create a Stripe customer portal session for subscription management.


        Args:

        request: Portal session request data

        ctx: Application context with user, session, and company_id


        Returns:

        Customer portal URL'
      operationId: create_customer_portal_session_api_v1_subscriptions_portal_sessions_post
      parameters:
      - name: Authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PortalRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: http://localhost:8000
      description: Development server
    - url: https://api.anomalyarmor.ai
      description: Production server
  /api/v1/subscriptions/current:
    get:
      tags:
      - Subscriptions
      summary: Get Current Subscription
      description: 'Get current subscription information for the user''s company.


        Args:

        ctx: Application context with user, session, and company_id


        Returns:

        Current subscription details'
      operationId: get_current_subscription_api_v1_subscriptions_current_get
      parameters:
      - name: Authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: http://localhost:8000
      description: Development server
    - url: https://api.anomalyarmor.ai
      description: Production server
  /api/v1/subscriptions/usage:
    get:
      tags:
      - Subscriptions
      summary: Get Usage And Limits
      description: 'Get current usage and limits for the user''s company.


        Args:

        ctx: Application context with user, session, and company_id


        Returns:

        Usage limits and current usage data including subscription tier,

        team members, api calls, and assets with current/limit values.'
      operationId: get_usage_and_limits_api_v1_subscriptions_usage_get
      parameters:
      - name: Authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: http://localhost:8000
      description: Development server
    - url: https://api.anomalyarmor.ai
      description: Production server
  /api/v1/subscriptions/tiers:
    get:
      tags:
      - Subscriptions
      summary: Get Subscription Tiers
      description: 'Get available subscription tiers and their features.


        This is a public endpoint - no authentication required.

        Users need to view tiers and pricing during signup flow.


        Returns:

        List of subscription tiers with pricing and features'
      operationId: get_subscription_tiers_api_v1_subscriptions_tiers_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse'
    servers:
    - url: http://localhost:8000
      description: Development server
    - url: https://api.anomalyarmor.ai
      description: Production server
  /api/v1/subscriptions/cancellations:
    post:
      tags:
      - Subscriptions
      summary: Create Subscription Cancellation
      description: 'Cancel the current subscription at the end of the billing period.


        Args:

        ctx: Application context with user, session, and company_id


        Returns:

        Cancellation confirmation'
      operationId: create_subscription_cancellation_api_v1_subscriptions_cancellations_post
      parameters:
      - name: Authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: http://localhost:8000
      description: Development server
    - url: https://api.anomalyarmor.ai
      description: Production server
  /api/v1/subscriptions/reactivations:
    post:
      tags:
      - Subscriptions
      summary: Create Subscription Reactivation
      description: 'Reactivate a cancelled subscription before the period ends.


        Args:

        ctx: Application context with user, session, and company_id


        Returns:

        Reactivation confirmation'
      operationId: create_subscription_reactivation_api_v1_subscriptions_reactivations_post
      parameters:
      - name: Authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: http://localhost:8000
      description: Development server
    - url: https://api.anomalyarmor.ai
      description: Production server
  /api/v1/subscriptions/features:
    get:
      tags:
      - Subscriptions
      summary: Get Subscription Features
      description: 'Get available features for the user''s current subscription tier.


        Args:

        ctx: Application context with user, session, and company_id


        Returns:

        Available features and their limits'
      operationId: get_subscription_features_api_v1_subscriptions_features_get
      parameters:
      - name: Authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: http://localhost:8000
      description: Development server
    - url: https://api.anomalyarmor.ai
      description: Production server
  /api/v1/subscriptions/downgrade-validations:
    post:
      tags:
      - Subscriptions
      summary: Validate Downgrade
      description: 'Validate if the company can downgrade to a target tier.


        TECH-576: Checks if current usage exceeds the target plan''s limits.

        Returns validation result with blockers if downgrade is not possible.


        Args:

        request: Contains the target_tier to validate against

        ctx: Application context with user, session, and company_id


        Returns:

        Validation result with can_downgrade flag and any blockers'
      operationId: validate_downgrade_api_v1_subscriptions_downgrade_validations_post
      parameters:
      - name: Authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DowngradeValidationRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: http://localhost:8000
      description: Development server
    - url: https://api.anomalyarmor.ai
      description: Production server
components:
  schemas:
    DowngradeValidationRequest:
      properties:
        target_tier:
          type: string
          title: Target Tier
          description: Target subscription tier to downgrade to
      type: object
      required:
      - target_tier
      title: DowngradeValidationRequest
      description: Request model for validating plan downgrade.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CreateCheckoutRequest:
      properties:
        tier:
          type: string
          title: Tier
          description: Subscription tier
        billing_period:
          type: string
          title: Billing Period
          description: 'Billing period: ''monthly'' or ''annual'''
          default: monthly
        success_url:
          type: string
          title: Success Url
          description: URL to redirect after successful payment
        cancel_url:
          type: string
          title: Cancel Url
          description: URL to redirect after cancelled payment
      type: object
      required:
      - tier
      - success_url
      - cancel_url
      title: CreateCheckoutRequest
      description: Request model for creating Stripe checkout session.
    StandardResponse:
      properties:
        success:
          type: boolean
          title: Success
        data:
          anyOf:
          - {}
          - type: 'null'
          title: Data
        message:
          anyOf:
          - type: string
          - type: 'null'
          title: Message
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
        meta:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Meta
      type: object
      required:
      - success
      title: StandardResponse
      description: Standard API response wrapper.
    PortalRequest:
      properties:
        return_url:
          type: string
          title: Return Url
          description: URL to return to from portal
      type: object
      required:
      - return_url
      title: PortalRequest
      description: Request model for creating customer portal session.
    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
x-refined-from:
- anomalyarmor.ai-openapi.json
- app.anomalyarmor.ai-openapi.json
- docs.anomalyarmor.ai-openapi.json