Lassare Admin API

The Admin API from Lassare — 3 operation(s) for admin.

GitHub OpenAPI

Operations 3

GET /v1/admin/stats Get Gateway operational statistics #
POST /v1/admin/requests/{request_id}/retry Retry notification delivery for a blocked/failed request #
POST /v1/admin/requests/{request_id}/cancel Cancel a pending request #

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/lassare-com:lassare-com-admin-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

lassare-com-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lassare Gateway Admin API
  description: Human-in-the-Loop (HITL) middleware for AI agents
  version: 1.0.0
tags:
- name: Admin
paths:
  /v1/admin/stats:
    get:
      tags:
      - Admin
      summary: Get Gateway operational statistics
      description: 'Returns operational metrics for Portal admin dashboard.


        **Authentication**: Requires admin role via Cognito JWT or X-Admin-Key header.


        **Metrics returned**:

        - `failed_webhooks`: Number of messages in webhook DLQ

        - `circuit_breaker_open_count`: Number of webhooks with OPEN circuit breaker

        - `recent_delivery_failures`: Count of failed deliveries in last 24 hours


        **Use case**: Portal admin dashboard displays webhook health metrics

        without directly accessing Gateway''s SQS queues (architectural boundary).'
      operationId: get_gateway_stats_v1_admin_stats_get
      responses:
        '200':
          description: Successfully retrieved stats
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayStats'
        '401':
          description: Missing or invalid authentication
        '403':
          description: Admin access required
        '500':
          description: Internal server error
  /v1/admin/requests/{request_id}/retry:
    post:
      tags:
      - Admin
      summary: Retry notification delivery for a blocked/failed request
      description: 'T413 (Phase 22, FR-035): Retry notification delivery for requests that were blocked

        or failed due to circuit breaker or delivery failures.


        **Prerequisites**:

        - Request must be in ''pending'' status with delivery_blocked=True OR status=''failed''

        - Circuit breaker must now be CLOSED (if it was previously open)


        **Actions**:

        - Clears delivery_blocked flag

        - Re-queues notification to SQS for delivery

        - Records retry in audit log


        **Authentication**: Requires admin role via Cognito JWT or X-Admin-Key header.'
      operationId: retry_request_v1_admin_requests__request_id__retry_post
      parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: string
          title: Request Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RetryRequest'
      responses:
        '200':
          description: Successfully queued retry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RetryResponse'
        '400':
          description: Request not eligible for retry
        '401':
          description: Missing or invalid authentication
        '403':
          description: Admin access required
        '404':
          description: Request not found
        '500':
          description: Internal server error
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/requests/{request_id}/cancel:
    post:
      tags:
      - Admin
      summary: Cancel a pending request
      description: 'T414 (Phase 22, FR-031): Cancel a pending request.


        **Prerequisites**:

        - Request must be in ''pending'' status


        **Actions**:

        - Sets status to ''cancelled''

        - Records cancelled_by and cancelled_at

        - Triggers agent callback (if configured)

        - Records cancellation in audit log


        **Authentication**: Requires admin role via Cognito JWT or X-Admin-Key header.'
      operationId: cancel_request_v1_admin_requests__request_id__cancel_post
      parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: string
          title: Request Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CancelRequest'
      responses:
        '200':
          description: Successfully cancelled request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelResponse'
        '400':
          description: Request cannot be cancelled
        '401':
          description: Missing or invalid authentication
        '403':
          description: Admin access required
        '404':
          description: Request not found
        '500':
          description: Internal server error
        '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
    GatewayStats:
      properties:
        failed_webhooks:
          type: integer
          title: Failed Webhooks
          description: Number of messages in webhook DLQ
        circuit_breaker_open_count:
          type: integer
          title: Circuit Breaker Open Count
          description: Number of webhooks with OPEN circuit breaker
        recent_delivery_failures:
          type: integer
          title: Recent Delivery Failures
          description: Count of failed deliveries in last 24 hours
        timestamp:
          type: string
          title: Timestamp
          description: ISO 8601 timestamp when stats were collected
      type: object
      required:
      - failed_webhooks
      - circuit_breaker_open_count
      - recent_delivery_failures
      - timestamp
      title: GatewayStats
      description: Response model for Gateway operational statistics.
    CancelResponse:
      properties:
        request_id:
          type: string
          title: Request Id
          description: Request ID
        status:
          type: string
          title: Status
          description: Request status after cancel (cancelled)
        message:
          type: string
          title: Message
          description: Result message
        decided_at:
          type: string
          title: Decided At
          description: ISO 8601 timestamp of cancellation
        decided_by:
          type: string
          title: Decided By
          description: Admin who cancelled the request (admin:email)
      type: object
      required:
      - request_id
      - status
      - message
      - decided_at
      - decided_by
      title: CancelResponse
      description: Response model for cancel operation.
    RetryRequest:
      properties:
        company_id:
          type: string
          title: Company Id
          description: Company ID (required for multi-tenant isolation)
      type: object
      required:
      - company_id
      title: RetryRequest
      description: Request body for retry operation.
    CancelRequest:
      properties:
        company_id:
          type: string
          title: Company Id
          description: Company ID (required for multi-tenant isolation)
        reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Reason
          description: Optional cancellation reason
      type: object
      required:
      - company_id
      title: CancelRequest
      description: Request body for cancel operation.
    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
    RetryResponse:
      properties:
        request_id:
          type: string
          title: Request Id
          description: Request ID
        status:
          type: string
          title: Status
          description: Current request status after retry
        message:
          type: string
          title: Message
          description: Result message
        retried_at:
          type: string
          title: Retried At
          description: ISO 8601 timestamp of retry attempt
      type: object
      required:
      - request_id
      - status
      - message
      - retried_at
      title: RetryResponse
      description: Response model for retry operation.