ASAP OAUTH Grants API

Inbound OAuth connections (connected apps) for the active org.

Operations 2

GET /v1/oauth/grants GET /v1/oauth/grants #
DELETE /v1/oauth/grants/{id} DELETE /v1/oauth/grants/{id} #

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/asap-cool:asap-cool-oauth-grants-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

asap-cool-oauth-grants-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ASAP Platform OAUTH Grants API
  description: 'Public HTTP API for ASAP Platform (api.asap.cool).


    All `/v1` responses are wrapped in a standard envelope. Success responses are `{ "data": , "meta": { "request_id", "next_cursor"?, "has_more"? } }` — the schema documented for each operation describes the inner `data` value. Errors are `{ "error": { "code", "message", "field"?, "request_id" } }`. Every response also carries an `X-Request-Id` header matching `meta.request_id` / `error.request_id`.'
  license:
    name: BUSL-1.1
  version: 0.0.0
servers:
- url: https://api.asap.cool
  description: Production
tags:
- name: oauth-grants
  description: Inbound OAuth connections (connected apps) for the active org.
paths:
  /v1/oauth/grants:
    get:
      tags:
      - oauth-grants
      summary: GET /v1/oauth/grants
      operationId: listOauthGrants
      responses:
        '200':
          description: Active OAuth connections for the active org.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GrantView'
        '401':
          description: Caller is not a session user.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
  /v1/oauth/grants/{id}:
    delete:
      tags:
      - oauth-grants
      summary: DELETE /v1/oauth/grants/{id}
      operationId: revokeOauthGrant
      parameters:
      - name: id
        in: path
        description: OAuth grant identifier.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: Connection revoked (or already revoked, idempotent).
        '401':
          description: Caller is not a session user, or grant belongs to another org.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    GrantScopeView:
      type: object
      description: One granted scope with its human-readable French label.
      required:
      - scope
      - label
      properties:
        label:
          type: string
          description: French label shown in the connections list.
        scope:
          type: string
          description: Wire-format scope token (e.g. `contacts:read`).
    ErrorBody:
      type: object
      description: 'Generic error body returned by API handlers when they fail. `code` is a

        stable machine-readable token; `message` is human-friendly and meant for

        surfacing to end users.'
      required:
      - code
      - message
      properties:
        code:
          type: string
          description: Stable machine token (e.g. `invalid_credentials`).
        field:
          type:
          - string
          - 'null'
          description: Offending request field for validation errors, when known.
        message:
          type: string
          description: Human-readable message.
    GrantView:
      type: object
      description: One row in the `GET /v1/oauth/grants` response.
      required:
      - id
      - scopes
      - created_at
      properties:
        client_name:
          type:
          - string
          - 'null'
          description: Display name of the connected client, when known.
        created_at:
          type: string
          description: RFC3339 creation timestamp.
        id:
          type: string
          format: uuid
          description: Grant id.
        last_used_at:
          type:
          - string
          - 'null'
          description: RFC3339 last-used timestamp, if ever.
        provider_id:
          type:
          - string
          - 'null'
          description: Approved hosted provider identifier; never inferred from a display name.
        resource:
          type:
          - string
          - 'null'
          description: RFC 8707 audience the grant is bound to, when present.
        scopes:
          type: array
          items:
            $ref: '#/components/schemas/GrantScopeView'
          description: Scopes the client was granted, with labels.
  securitySchemes:
    api_key:
      type: http
      scheme: bearer
    session:
      type: apiKey
      in: cookie
      name: asap_session