Insforge Permissions API

Manage helper endpoints for realtime RLS examples.

Operations 1

GET /api/realtime/permissions Get Realtime Permissions

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/insforge-permissions-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 email required.

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

OpenAPI Specification

insforge-permissions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Insforge AI Admin Permissions API
  version: 1.0.0
  description: Model Gateway helper APIs for OpenRouter key provisioning, model discovery, and deprecated compatibility proxy routes
servers:
- url: https://api.insforge.dev
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Permissions
  description: Manage helper endpoints for realtime RLS examples.
paths:
  /api/realtime/permissions:
    get:
      summary: Get Realtime Permissions
      description: Retrieve RLS policies for subscribe (channels) and publish (messages) operations
      tags:
      - Permissions
      security:
      - bearerAuth: []
      - apiKey: []
      responses:
        '200':
          description: Realtime RLS permissions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RealtimePermissions'
              example:
                subscribe:
                  policies:
                  - policyName: allow_authenticated_subscribe
                    tableName: channels
                    command: SELECT
                    roles:
                    - authenticated
                    using: enabled = true
                    withCheck: null
                publish:
                  policies:
                  - policyName: allow_authenticated_publish
                    tableName: messages
                    command: INSERT
                    roles:
                    - authenticated
                    using: null
                    withCheck: 'true'
components:
  schemas:
    RlsPolicy:
      type: object
      required:
      - policyName
      - tableName
      - command
      - roles
      properties:
        policyName:
          type: string
          description: Name of the RLS policy
          example: allow_authenticated_subscribe
        tableName:
          type: string
          description: Table the policy applies to
          example: channels
        command:
          type: string
          description: SQL command the policy applies to (SELECT, INSERT, UPDATE, DELETE)
          example: SELECT
        roles:
          type: array
          items:
            type: string
          description: Database roles the policy applies to
          example:
          - authenticated
        using:
          type:
          - string
          - 'null'
          description: USING clause for row-level filtering
          example: enabled = true
        withCheck:
          type:
          - string
          - 'null'
          description: WITH CHECK clause for row-level validation
          example: null
    RealtimePermissions:
      type: object
      required:
      - subscribe
      - publish
      properties:
        subscribe:
          type: object
          required:
          - policies
          properties:
            policies:
              type: array
              description: RLS policies for channel subscriptions
              items:
                $ref: '#/components/schemas/RlsPolicy'
        publish:
          type: object
          required:
          - policies
          properties:
            policies:
              type: array
              description: RLS policies for message publishing
              items:
                $ref: '#/components/schemas/RlsPolicy'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT