notanATS OAuth — admin review API

The OAuth — admin review API from notanATS — 4 operation(s) for oauth — admin review.

GitHub OpenAPI

Operations 5

GET /api/v1/oauth-connection-requests List connection requests (admins: the org queue; managers: only their own) #
POST /api/v1/oauth-connection-requests/{id}/review Approve or deny a pending connection request (org admins) #
GET /api/v1/oauth-approved-domains List the organization’s approved email domains (admins) #
POST /api/v1/oauth-approved-domains Add an approved email domain (admins) #
DELETE /api/v1/oauth-approved-domains/{id} Remove an approved email domain (admins) #

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/notanats-com:notanats-com-oauth-admin-review-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

notanats-com-oauth-admin-review-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: notanATS Agent API + OAuth OAuth — admin review API
  version: 1.0.0
  description: 'Generated from the implemented route contracts (src/lib/agent-contract/openapi.ts) — do not edit the published file by hand; run `npm run contract:generate`. Covers the delegated-agent REST API (Bearer static nagt_ keys only — OAuth access tokens (noat_) authenticate the MCP transport only and do NOT authenticate REST; see the known gap in docs/agent/README.md), the legacy /api/v1 data reads (nagt_ or nats_), and the OAuth 2.1 endpoints. The MCP server at /mcp is JSON-RPC, not REST, and is contracted separately in /agent/mcp-contract.json. Quickstart: docs/agent/quickstart.md.'
servers:
- url: https://notanats.com
tags:
- name: OAuth — admin review
paths:
  /api/v1/oauth-connection-requests:
    get:
      operationId: listOAuthConnectionRequests
      tags:
      - OAuth — admin review
      summary: 'List connection requests (admins: the org queue; managers: only their own)'
      description: Session-authenticated. Each item carries the requesting manager, organization, client, domain-match result, domain-exception flag, requested delegated authority, and status (pending | approved | denied | consumed | expired). Pending requests live 7 days; approvals live 30 days.
      security:
      - managerSession: []
      responses:
        '200':
          description: '{ requests: [...] }'
          content:
            application/json:
              schema:
                type: object
        '401':
          description: 'Session-surface error shape { error: "Unauthorized" } — no manager session.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
  /api/v1/oauth-connection-requests/{id}/review:
    post:
      operationId: reviewOAuthConnectionRequest
      tags:
      - OAuth — admin review
      summary: Approve or deny a pending connection request (org admins)
      description: 'Session-authenticated, admins only. Approving a request whose requester email domain does not match an organization-approved domain requires an explicit domain exception in the review (domain_exception: true) — domain matching never creates membership or authority by itself. Denial is final for that request; the manager may request again after 24 hours.'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                decision:
                  type: string
                  enum:
                  - approve
                  - deny
                  - approved
                  - denied
                domain_exception:
                  type: boolean
      security:
      - managerSession: []
      responses:
        '200':
          description: Review recorded.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: 'Session-surface error shape { error: "<string>" } — invalid request id or decision.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '401':
          description: 'Session-surface error shape { error: "Unauthorized" } — no manager session.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '403':
          description: 'Session-surface error shape { error: "Admin access required" }.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '404':
          description: 'Session-surface error shape { error: "<string>" } — request not found (service result passthrough).'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '409':
          description: 'Session-surface error shape { error: "<string>" } — request no longer pending (service result passthrough).'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
  /api/v1/oauth-approved-domains:
    get:
      operationId: listOAuthApprovedDomains
      tags:
      - OAuth — admin review
      summary: List the organization’s approved email domains (admins)
      security:
      - managerSession: []
      responses:
        '200':
          description: The approved domains.
          content:
            application/json:
              schema:
                type: object
        '401':
          description: 'Session-surface error shape { error: "Unauthorized" } — no manager session.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '403':
          description: 'Session-surface error shape { error: "Admin access required" }.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
    post:
      operationId: addOAuthApprovedDomain
      tags:
      - OAuth — admin review
      summary: Add an approved email domain (admins)
      description: 'Body: { domain }. Affects the domain_match fact on future connection requests only.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                domain:
                  type: string
              required:
              - domain
      security:
      - managerSession: []
      responses:
        '201':
          description: Domain added.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: 'Session-surface error shape { error: "<string>" } — invalid domain.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '401':
          description: 'Session-surface error shape { error: "Unauthorized" } — no manager session.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '403':
          description: 'Session-surface error shape { error: "Admin access required" }.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '409':
          description: 'Session-surface error shape { error: "<string>" } — domain already approved.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
  /api/v1/oauth-approved-domains/{id}:
    delete:
      operationId: removeOAuthApprovedDomain
      tags:
      - OAuth — admin review
      summary: Remove an approved email domain (admins)
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      security:
      - managerSession: []
      responses:
        '200':
          description: Domain removed.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: 'Session-surface error shape { error: "Invalid domain id" }.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '401':
          description: 'Session-surface error shape { error: "Unauthorized" } — no manager session.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '403':
          description: 'Session-surface error shape { error: "Admin access required" }.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '404':
          description: 'Session-surface error shape { error: "Approved domain not found" }.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
components:
  securitySchemes:
    agentBearer:
      type: http
      scheme: bearer
      description: 'A static delegated agent key (prefix nagt_) minted by an organization admin for a named delegated manager. This is the ONLY credential class the REST agent API authenticates: the REST guard resolves nagt_ (and, on the legacy /api/v1 data routes, nats_) keys only. An OAuth access token (noat_) does NOT authenticate REST — it resolves only in the MCP seam at /mcp.'
    v1Bearer:
      type: http
      scheme: bearer
      description: 'For the legacy /api/v1 data routes only: a delegated agent key (nagt_) or a legacy organization key (nats_). Agent keys are narrowed to their delegated manager’s visibility; legacy org keys keep organization scope.'
    managerSession:
      type: apiKey
      in: cookie
      name: sb-*-auth-token
      description: The signed-in manager/admin webapp session, carried by the app’s Supabase SSR session cookies (the sb-<project>-auth-token cookie and any chunked companions, set at sign-in; the exact cookie name is derived from the Supabase project, so the name shown is a pattern, not a literal). These surfaces are not callable with an agent credential.