Hookbase Portal Tokens API

The Portal Tokens API from Hookbase — 3 operation(s) for portal tokens.

Operations 4

POST /api/portal/webhook-applications/{webhookApplicationId}/tokens Create Portal Token #
GET /api/portal/webhook-applications/{webhookApplicationId}/tokens List Portal Tokens #
DELETE /api/portal/tokens/{portalTokenId} Revoke Portal 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/hookbase:hookbase-portal-tokens-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

hookbase-portal-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hookbase Portal Tokens API
  version: 1.0.0
  description: Official OpenAPI 3.0 specification for the Hookbase webhook relay platform. Generated from the maintained Postman collection. Authenticate with an API key (whr_ prefix) as a Bearer token.
  contact:
    name: Hookbase
    url: https://www.hookbase.app
servers:
- url: https://api.hookbase.app
  description: Production
security:
- bearerAuth: []
tags:
- name: Portal Tokens
paths:
  /api/portal/webhook-applications/{webhookApplicationId}/tokens:
    post:
      tags:
      - Portal Tokens
      summary: Create Portal Token
      operationId: portal_tokens_create_portal_token
      parameters:
      - name: webhookApplicationId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
      description: Mint a portal token that lets an application's users access the embeddable portal.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Optional. Token label (max 100).
                scopes:
                  type: array
                  items:
                    type: string
                  description: 'Optional. Scopes: read, write (default both).'
                expiresInDays:
                  type: integer
                  description: Optional. Lifetime in days (1–365, default 30).
                allowedIps:
                  type: array
                  items:
                    type: string
                  description: Optional. Restrict use to these IPs/CIDRs.
            example:
              name: Acme portal token
              scopes:
              - read
              - write
              expiresInDays: 30
              allowedIps:
              - 203.0.113.0/24
    get:
      tags:
      - Portal Tokens
      summary: List Portal Tokens
      operationId: portal_tokens_list_portal_tokens
      parameters:
      - name: webhookApplicationId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
      description: List active portal tokens for an application.
  /api/portal/webhook-applications/{webhookApplicationId}/magic-link:
    post:
      tags:
      - Portal Tokens
      summary: Create Portal Magic Link
      operationId: portal_tokens_create_portal_magic_link
      parameters:
      - name: webhookApplicationId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
      description: Create a short-lived magic link that opens the portal without a stored token.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                expiresInMinutes:
                  type: integer
                  description: Optional. Link lifetime in minutes (1–1440, default 60).
                scopes:
                  type: array
                  items:
                    type: string
                  description: 'Optional. Scopes: read, write (default both).'
            example:
              expiresInMinutes: 60
              scopes:
              - read
              - write
  /api/portal/tokens/{portalTokenId}:
    delete:
      tags:
      - Portal Tokens
      summary: Revoke Portal Token
      operationId: portal_tokens_revoke_portal_token
      parameters:
      - name: portalTokenId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
      description: Revoke a portal token by id.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Hookbase API key with the whr_ prefix.