sealgate-ai OAUTH Consent API
The oauth-consent API from sealgate-ai — 4 operation(s) for oauth-consent.
The oauth-consent API from sealgate-ai — 4 operation(s) for oauth-consent.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/sealgate-ai:sealgate-ai-oauth-consent-api"
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.
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: 3.2.0
info:
title: SealGate OAUTH Consent API
description: Open-source MCP security, aggregation, and monitoring. Self-hosted MCP proxy.
version: 0.19.0
tags:
- name: oauth-consent
paths:
/api/v1/oauth/authorizations/{authorization_id}:
get:
tags:
- oauth-consent
summary: Get Authorization
description: Describe a pending authorization so the user can decide on it.
operationId: get_authorization_api_v1_oauth_authorizations__authorization_id__get
security:
- HTTPBearer: []
parameters:
- name: authorization_id
in: path
required: true
schema:
type: string
title: Authorization Id
- name: domain
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Org to view (Super-Owner only, read-only)
title: Domain
description: Org to view (Super-Owner only, read-only)
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ConsentRequestResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/oauth/authorizations/{authorization_id}/consent:
post:
tags:
- oauth-consent
summary: Decide Authorization
description: 'Record the user''s decision and return where to send the browser next.
A denial still redirects to the client, per RFC 6749 §4.1.2.1: the client
needs to hear ``access_denied`` rather than hang waiting for a callback.'
operationId: decide_authorization_api_v1_oauth_authorizations__authorization_id__consent_post
security:
- HTTPBearer: []
parameters:
- name: authorization_id
in: path
required: true
schema:
type: string
title: Authorization Id
- name: domain
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Org to view (Super-Owner only, read-only)
title: Domain
description: Org to view (Super-Owner only, read-only)
- name: Idempotency-Key
in: header
required: false
description: Optional client-generated key that makes this write operation safe to retry. Reusing the same key returns the original response instead of performing the operation a second time. Keys are scoped to the caller and expire after 24 hours.
schema:
type: string
maxLength: 255
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConsentDecisionRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ConsentDecisionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/oauth/grants:
get:
tags:
- oauth-consent
summary: List Grants
description: The user's live OAuth connections, for the connected-agents view.
operationId: list_grants_api_v1_oauth_grants_get
security:
- HTTPBearer: []
parameters:
- name: domain
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Org to view (Super-Owner only, read-only)
title: Domain
description: Org to view (Super-Owner only, read-only)
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/GrantResponse'
title: Response List Grants Api V1 Oauth Grants Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/oauth/grants/{grant_id}:
delete:
tags:
- oauth-consent
summary: Revoke Grant
description: Disconnect one agent. Scoped to the caller's own grants.
operationId: revoke_grant_api_v1_oauth_grants__grant_id__delete
security:
- HTTPBearer: []
parameters:
- name: grant_id
in: path
required: true
schema:
type: string
title: Grant Id
- name: domain
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Org to view (Super-Owner only, read-only)
title: Domain
description: Org to view (Super-Owner only, read-only)
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
GrantResponse:
properties:
id:
type: string
title: Id
client_id:
type: string
title: Client Id
client_label:
anyOf:
- type: string
- type: 'null'
title: Client Label
scopes:
items:
type: string
type: array
title: Scopes
created_at:
anyOf:
- type: string
- type: 'null'
title: Created At
last_used_at:
anyOf:
- type: string
- type: 'null'
title: Last Used At
type: object
required:
- id
- client_id
- scopes
title: GrantResponse
ConsentRequestResponse:
properties:
authorization_id:
type: string
title: Authorization Id
grant_id:
type: string
title: Grant Id
client_id:
type: string
title: Client Id
client_label:
anyOf:
- type: string
- type: 'null'
title: Client Label
redirect_uri:
type: string
title: Redirect Uri
redirect_host:
type: string
title: Redirect Host
is_loopback_redirect:
type: boolean
title: Is Loopback Redirect
redirect_scheme:
type: string
title: Redirect Scheme
is_native_app_redirect:
type: boolean
title: Is Native App Redirect
scopes:
items:
type: string
type: array
title: Scopes
org_id:
anyOf:
- type: string
- type: 'null'
title: Org Id
type: object
required:
- authorization_id
- grant_id
- client_id
- redirect_uri
- redirect_host
- is_loopback_redirect
- redirect_scheme
- is_native_app_redirect
- scopes
title: ConsentRequestResponse
description: What the consent screen renders before the user decides.
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
ConsentDecisionRequest:
properties:
approve:
type: boolean
title: Approve
type: object
required:
- approve
title: ConsentDecisionRequest
ConsentDecisionResponse:
properties:
redirect_url:
type: string
title: Redirect Url
type: object
required:
- redirect_url
title: ConsentDecisionResponse
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.