Triall OAuth API

The oauth API from Triall — 8 operation(s) for oauth.

GitHub OpenAPI

Operations 8

GET /.well-known/oauth-protected-resource Protected Resource Metadata #
GET /.well-known/oauth-authorization-server Authorization Server Metadata #
POST /oauth/register Oauth Register #
GET /oauth/authorize Oauth Authorize #
POST /oauth/login Oauth Login #
GET /oauth/social/{provider} Oauth Social Start #
GET /oauth/social/callback Oauth Social Callback #
POST /oauth/token Oauth Token #

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/triall-ai:triall-ai-oauth-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

triall-ai-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Triall OAuth API
  description: Iterative AI Reasoning System
  version: 0.1.0
tags:
- name: OAuth
paths:
  /.well-known/oauth-protected-resource:
    get:
      tags:
      - OAuth
      summary: Protected Resource Metadata
      description: 'RFC 9728: Protected Resource Metadata.'
      operationId: protected_resource_metadata__well_known_oauth_protected_resource_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /.well-known/oauth-authorization-server:
    get:
      tags:
      - OAuth
      summary: Authorization Server Metadata
      description: 'RFC 8414: Authorization Server Metadata.'
      operationId: authorization_server_metadata__well_known_oauth_authorization_server_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /oauth/register:
    post:
      tags:
      - OAuth
      summary: Oauth Register
      description: 'RFC 7591: Dynamic Client Registration.

        MCP clients (Claude.ai, ChatGPT, etc.) call this to get a client_id

        before starting the OAuth authorization flow.'
      operationId: oauth_register_oauth_register_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /oauth/authorize:
    get:
      tags:
      - OAuth
      summary: Oauth Authorize
      description: 'OAuth authorization endpoint. Shows a login form.

        After successful login, redirects to the callback with an auth code.'
      operationId: oauth_authorize_oauth_authorize_get
      parameters:
      - name: response_type
        in: query
        required: false
        schema:
          type: string
          default: code
          title: Response Type
      - name: client_id
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Client Id
      - name: redirect_uri
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Redirect Uri
      - name: state
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: State
      - name: code_challenge
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Code Challenge
      - name: code_challenge_method
        in: query
        required: false
        schema:
          type: string
          default: S256
          title: Code Challenge Method
      - name: scope
        in: query
        required: false
        schema:
          type: string
          default: council:run sessions:read
          title: Scope
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/login:
    post:
      tags:
      - OAuth
      summary: Oauth Login
      description: Handle login form submission. Verify credentials via Supabase Auth.
      operationId: oauth_login_oauth_login_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /oauth/social/{provider}:
    get:
      tags:
      - OAuth
      summary: Oauth Social Start
      description: 'Begin a social login. Redirects the browser to Supabase''s provider OAuth,

        carrying our PKCE challenge and a state token that ties the round-trip back to

        the in-flight MCP authorization request.'
      operationId: oauth_social_start_oauth_social__provider__get
      parameters:
      - name: provider
        in: path
        required: true
        schema:
          type: string
          title: Provider
      - name: form_token
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Form Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/social/callback:
    get:
      tags:
      - OAuth
      summary: Oauth Social Callback
      description: 'Supabase redirects here after the provider round-trip. Exchange the code

        for the Supabase user, then resume the MCP auth flow exactly as the password

        path does.'
      operationId: oauth_social_callback_oauth_social_callback_get
      parameters:
      - name: st
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: St
      - name: code
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Code
      - name: error
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Error
      - name: error_description
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Error Description
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/token:
    post:
      tags:
      - OAuth
      summary: Oauth Token
      description: Exchange authorization code for access token (API key).
      operationId: oauth_token_oauth_token_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer