Pomerado Usage Alerts API

The usage_alerts API from Pomerado — 2 operation(s) for usage_alerts.

GitHub OpenAPI

Operations 4

GET /v1/usage/alerts List your team's usage alerts #
POST /v1/usage/alerts Add a usage alert #
PATCH /v1/usage/alerts/{alert_id} Change a usage alert #
DELETE /v1/usage/alerts/{alert_id} Delete a usage alert #

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/pomerado-ai:pomerado-ai-usage-alerts-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

pomerado-ai-usage-alerts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pomerado Usage Alerts API
  version: '1'
  description: Run and build website tools, follow their jobs, and manage logins, API keys and webhooks. Authenticate with a Pomerado API key (pom_…), an MCP OAuth token or a Dashboard session as a Bearer token.
servers:
- url: https://api.pomerado.ai
tags:
- name: usage_alerts
  x-group: Usage alerts
paths:
  /v1/usage/alerts:
    get:
      operationId: usage_alerts.list
      tags:
      - usage_alerts
      summary: List your team's usage alerts
      description: 'Lists your Business team''s usage alerts, oldest first: what sets each off, whom it emails, whether it is on and when it last sent.


        - Each alert emails at most once a UTC day, or once a billing period for overage and budget_percent, within about a minute of crossing, or, when none of its recipients could be reached then, within 30 minutes of one''s address being verified. A trigger or threshold it hasn''t fired at in that day or period arms it again.

        - Alerts in dollars (overage, budget_percent) email only Owners and Admins, whoever else they name.

        - Members and Tool users see the alerts on calls and the cap; those in dollars (overage, budget_percent) are for Owners and Admins only, and for an API key only with team:manage.'
      parameters:
      - name: cursor
        in: query
        required: false
        description: The next_cursor of the previous page
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: Items per page, 1 to 100 (default 20)
        schema:
          type: string
      responses:
        '200':
          description: One page of alerts
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - next_cursor
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/UsageAlert'
                  next_cursor:
                    anyOf:
                    - type: string
                    - type: 'null'
                additionalProperties: false
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: business_account_required, forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: read
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      x-pomerado-permission: usage:read
    post:
      operationId: usage_alerts.create
      tags:
      - usage_alerts
      summary: Add a usage alert
      description: 'Adds a usage alert, which is to email its recipients when your team''s usage crosses its trigger, at most once a UTC day, or once a billing period for overage and budget_percent. It is recorded in your team''s audit log. Each goes to the address the recipient signs in with.


        - Owners and Admins only. An API key needs team:manage.

        - trigger: calls (in a UTC day), included_calls_percent (of the day''s included calls), overage (cents of overage in the billing period), budget_percent (of the overage budget) or cap_reached. Percentages are 1 to 1000.

        - recipients: roles, everyone in them when it sends, and member_ids, verified members of your team (members who have joined it). At least one. Alerts in dollars (overage, budget_percent) email only the Owners and Admins among them.

        - A team keeps up to 50 alerts.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - trigger
              - recipients
              properties:
                trigger:
                  $ref: '#/components/schemas/UsageAlertTrigger'
                recipients:
                  type: object
                  required: []
                  properties:
                    roles:
                      type: array
                      items:
                        type: string
                        enum:
                        - owner
                        - admin
                        - member
                        - tool_user
                      description: Everyone in these roles when it sends
                      maxItems: 4
                    member_ids:
                      type: array
                      items:
                        $ref: '#/components/schemas/user_id'
                      description: 'Verified members of your team, each by user ID: members who have joined it'
                      maxItems: 100
                  additionalProperties: false
                  description: At least one role or member
                'on':
                  type: boolean
                  description: Default true
              additionalProperties: false
      responses:
        '201':
          description: The alert
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageAlert'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: business_account_required, role_permission_missing, forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: request_too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: write
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      x-pomerado-permission: team:manage
      x-pomerado-key-permission: team:manage
  /v1/usage/alerts/{alert_id}:
    patch:
      operationId: usage_alerts.update
      tags:
      - usage_alerts
      summary: Change a usage alert
      description: 'Changes a usage alert''s trigger or recipients, or turns it on or off. An absent field stays, even when another change lands at the same time; recipients replaces both its lists, and only recipients you send are checked. The change is recorded in your team''s audit log.


        - Owners and Admins only. An API key needs team:manage.'
      parameters:
      - name: alert_id
        in: path
        required: true
        description: 'a usage alert ID: ual_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - ual_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UsageAlertChange'
      responses:
        '200':
          description: The alert
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageAlert'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: business_account_required, role_permission_missing, forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: request_too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: write
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      x-pomerado-permission: team:manage
      x-pomerado-key-permission: team:manage
    delete:
      operationId: usage_alerts.delete
      tags:
      - usage_alerts
      summary: Delete a usage alert
      description: 'Deletes a usage alert and the record of what it sent. The deletion is recorded in your team''s audit log.


        - Owners and Admins only. An API key needs team:manage.'
      parameters:
      - name: alert_id
        in: path
        required: true
        description: 'a usage alert ID: ual_ and 32 lowercase hex digits'
        schema:
          type: string
          examples:
          - ual_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190
      responses:
        '204':
          description: Deleted
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: business_account_required, role_permission_missing, forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearer: []
      x-pomerado-effect: destructive
      x-pomerado-callers:
      - session
      - oauth
      - api_key
      x-pomerado-permission: team:manage
      x-pomerado-key-permission: team:manage
components:
  schemas:
    UsageAlert:
      type: object
      required:
      - id
      - trigger
      - window
      - 'on'
      - recipients
      - on_changed_at
      - last_sent_at
      properties:
        id:
          type: string
        trigger:
          $ref: '#/components/schemas/UsageAlertTrigger'
        window:
          type: string
          enum:
          - day
          - billing_period
          description: 'It is emailed at most once in each: a UTC day, or a billing period'
        'on':
          type: boolean
        recipients:
          type: object
          required:
          - roles
          - members
          properties:
            roles:
              type: array
              items:
                type: string
                enum:
                - owner
                - admin
                - member
                - tool_user
              description: Everyone in these roles when it sends
            members:
              type: array
              items:
                $ref: '#/components/schemas/SpendControlPerson'
          additionalProperties: false
        on_changed_at:
          type: string
          description: When it was created, or last turned on or off
        last_sent_at:
          anyOf:
          - type: string
            description: ISO 8601 UTC
          - type: 'null'
      additionalProperties: false
    UsageAlertChange:
      type: object
      required: []
      properties:
        trigger:
          $ref: '#/components/schemas/UsageAlertTrigger'
        recipients:
          type: object
          required: []
          properties:
            roles:
              type: array
              items:
                type: string
                enum:
                - owner
                - admin
                - member
                - tool_user
              description: Everyone in these roles when it sends
              maxItems: 4
            member_ids:
              type: array
              items:
                $ref: '#/components/schemas/user_id'
              description: 'Verified members of your team, each by user ID: members who have joined it'
              maxItems: 100
          additionalProperties: false
          description: Replaces both lists; an absent list is emptied
        'on':
          type: boolean
      additionalProperties: false
    UsageAlertTrigger:
      anyOf:
      - type: object
        required:
        - kind
        - calls
        properties:
          kind:
            type: string
            enum:
            - calls
          calls:
            type: integer
            description: Tool calls in a UTC day
            minimum: 1
            maximum: 1000000000
        additionalProperties: false
      - type: object
        required:
        - kind
        - percent
        properties:
          kind:
            type: string
            enum:
            - included_calls_percent
          percent:
            type: integer
            description: Of the UTC day's included calls, 1 to 1000
            minimum: 1
            maximum: 1000
        additionalProperties: false
      - type: object
        required:
        - kind
        - overage_cents
        properties:
          kind:
            type: string
            enum:
            - overage
          overage_cents:
            type: integer
            description: Overage in the billing period, in US cents
            minimum: 1
            maximum: 100000000000
        additionalProperties: false
      - type: object
        required:
        - kind
        - percent
        properties:
          kind:
            type: string
            enum:
            - budget_percent
          percent:
            type: integer
            description: Of the overage budget in the billing period, 1 to 1000
            minimum: 1
            maximum: 1000
        additionalProperties: false
      - type: object
        required:
        - kind
        properties:
          kind:
            type: string
            enum:
            - cap_reached
        additionalProperties: false
      description: 'What sets it off: calls or included_calls_percent each UTC day, overage or budget_percent (dollars, Owners and Admins only) each billing period, or cap_reached when the daily cap refuses runs'
    SpendControlPerson:
      type: object
      required:
      - member_id
      - name
      - email
      properties:
        member_id:
          type: string
          description: The member's user ID
        name:
          anyOf:
          - type: string
          - type: 'null'
        email:
          anyOf:
          - type: string
          - type: 'null'
      additionalProperties: false
      description: A member. name and email are null once your team no longer knows them, and to an API key without team:manage for anyone but its own member
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - retryable
          - docs_url
          properties:
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            docs_url:
              type: string
            details:
              type: object
              required: []
              properties: {}
              additionalProperties:
                $id: /schemas/unknown
          additionalProperties: false
      additionalProperties: false
    user_id:
      type: string
      description: 'a team member ID: the user_id GET /v1/team/members gives: user_ and up to 100 letters or digits'
      examples:
      - user_01K6QZ8V3N4M5P6R7S8T9W0XYZ
  securitySchemes:
    bearer:
      type: http
      scheme: bearer