sealgate-ai Auth Functions API

The auth-functions API from sealgate-ai — 9 operation(s) for auth-functions.

Operations 9

GET /functions/v1/get-api-key Get Api Key #
POST /functions/v1/invite-user Invite User #
GET /functions/v1/memberships List Memberships #
POST /functions/v1/memberships/{org_id}/accept Accept Invite #
PUT /functions/v1/memberships/{org_id}/main Make Main Org #
POST /functions/v1/memberships/{org_id}/decline Decline Invite #
DELETE /functions/v1/memberships/{org_id} Leave Org #
POST /functions/v1/memberships/join Join Org #
POST /functions/v1/orgs Create Org #

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/sealgate-ai:sealgate-ai-auth-functions-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

sealgate-ai-auth-functions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SealGate Auth Functions API
  description: Open-source MCP security, aggregation, and monitoring. Self-hosted MCP proxy.
  version: 0.19.0
tags:
- name: auth-functions
paths:
  /functions/v1/get-api-key:
    get:
      tags:
      - auth-functions
      summary: Get Api Key
      description: 'Bridge a GoTrue session to a SealGate gateway API key (creates one on first login).


        An account holds one key per org it belongs to. ``?org_id=`` (or the

        ``X-SealGate-Org`` header) asks for the key of that membership, applying

        that org''s sign-in rule; without it, the key of the account''s main org

        is returned, so a new tab or a fresh sign-in opens in the main org. The membership endpoints are in ``memberships.py``.'
      operationId: get_api_key_functions_v1_get_api_key_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /functions/v1/invite-user:
    post:
      tags:
      - auth-functions
      summary: Invite User
      description: 'Admin/owner-only: invite a user via GoTrue (sends email) and pre-create their key.'
      operationId: invite_user_functions_v1_invite_user_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /functions/v1/memberships:
    get:
      tags:
      - auth-functions
      summary: List Memberships
      description: Every org of the calling account, with its org role and state.
      operationId: list_memberships_functions_v1_memberships_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /functions/v1/memberships/{org_id}/accept:
    post:
      tags:
      - auth-functions
      summary: Accept Invite
      description: Accept an open invite; returns the new membership's key like ``get-api-key``.
      operationId: accept_invite_functions_v1_memberships__org_id__accept_post
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
          title: Org Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /functions/v1/memberships/{org_id}/main:
    put:
      tags:
      - auth-functions
      summary: Make Main Org
      description: 'Make this org the account''s main org: new tabs and sign-ins open in it.'
      operationId: make_main_org_functions_v1_memberships__org_id__main_put
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
          title: Org Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /functions/v1/memberships/{org_id}/decline:
    post:
      tags:
      - auth-functions
      summary: Decline Invite
      description: Decline an open invite (deletes the ``invited`` membership).
      operationId: decline_invite_functions_v1_memberships__org_id__decline_post
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
          title: Org Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /functions/v1/memberships/{org_id}:
    delete:
      tags:
      - auth-functions
      summary: Leave Org
      description: 'Leave an org: removes the membership and its data there; the account stays.


        The Owner cannot leave until they transfer ownership - an org with members

        and no Owner has nobody who can delete it or hand it on.'
      operationId: leave_org_functions_v1_memberships__org_id__delete
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
          title: Org Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /functions/v1/memberships/join:
    post:
      tags:
      - auth-functions
      summary: Join Org
      description: Ask to join another org by its ID; pending until one of its admins approves.
      operationId: join_org_functions_v1_memberships_join_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /functions/v1/orgs:
    post:
      tags:
      - auth-functions
      summary: Create Org
      description: Create another org for the calling account, who becomes its Owner.
      operationId: create_org_functions_v1_orgs_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    ClientBearer:
      type: http
      description: Opaque ewc_ client installation credential
      scheme: bearer
    ServiceToken:
      type: http
      description: 'A SealGate service token: `sgt_acct_...` (account token) or `sgt_org_...` (org token). Mint an account token in the dashboard.'
      scheme: bearer
    MCPGatewayOAuth:
      type: oauth2
      description: OAuth 2.1 authorization-code flow (PKCE required) against the SealGate MCP gateway's authorization server. Request only the scopes an agent needs; unrequested scopes are not granted.
      flows:
        authorizationCode:
          authorizationUrl: /oauth/authorize
          tokenUrl: /oauth/token
          refreshUrl: /oauth/token
          scopes:
            mcp: Connect to the MCP gateway and call the tools exposed by your enabled servers. Every call is still evaluated by the policy engine.
            offline_access: Issue a refresh token so the client can renew access without a new browser sign-in.