Hookbase Transforms API

The Transforms API from Hookbase — 6 operation(s) for transforms.

Operations 8

POST /api/transforms Create transform #
GET /api/transforms List transforms #
GET /api/transforms/{transformId} Get transform by id #
PATCH /api/transforms/{transformId} Update transform #
POST /api/transforms/test Test transform #
POST /api/transforms/generate Generate transform with AI (Starter+) #
GET /api/transforms/{transformId}/export Export transform #
POST /api/transforms/import Import transform #

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-transforms-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-transforms-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hookbase Transforms 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: Transforms
paths:
  /api/transforms:
    post:
      tags:
      - Transforms
      summary: Create transform
      operationId: transforms_create_transform
      responses:
        '200':
          description: Successful response
      description: Create a reusable payload transform (JSONata, XSLT, Liquid, or JavaScript).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Required. Transform name.
                code:
                  type: string
                  description: Required. Transform code (language per transformType).
                transformType:
                  type: string
                  description: Optional. jsonata | xslt | liquid | javascript (default jsonata).
                inputFormat:
                  type: string
                  description: Optional. json | xml | text (default json).
                outputFormat:
                  type: string
                  description: Optional. json | xml | text (default json).
                description:
                  type: string
                  description: Optional. Freeform description.
                slug:
                  type: string
                  description: Optional. URL-safe id (auto-generated if omitted).
              required:
              - name
              - code
            example:
              name: Flatten GitHub PR
              code: '{ "id": number, "title": title }'
              transformType: jsonata
              inputFormat: json
              outputFormat: json
              description: Flattens PR payloads
              slug: flatten-github-pr
    get:
      tags:
      - Transforms
      summary: List transforms
      operationId: transforms_list_transforms
      parameters:
      - name: page
        in: query
        required: false
        schema:
          type: string
        example: '1'
      - name: pageSize
        in: query
        required: false
        schema:
          type: string
        example: '20'
      responses:
        '200':
          description: Successful response
      description: List transforms for the org (paginated).
  /api/transforms/{transformId}:
    get:
      tags:
      - Transforms
      summary: Get transform by id
      operationId: transforms_get_transform_by_id
      parameters:
      - name: transformId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
      description: Fetch a single transform by id or slug.
    patch:
      tags:
      - Transforms
      summary: Update transform
      operationId: transforms_update_transform
      parameters:
      - name: transformId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
      description: Update a transform. All fields optional; if `code` changes it is re-validated.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Optional. Transform name.
                code:
                  type: string
                  description: Optional. Transform code.
                transformType:
                  type: string
                  description: Optional. jsonata | xslt | liquid | javascript.
                inputFormat:
                  type: string
                  description: Optional. json | xml | text.
                outputFormat:
                  type: string
                  description: Optional. json | xml | text.
                description:
                  type: string
                  description: Optional. Freeform description (null to clear).
                isActive:
                  type: boolean
                  description: Optional. Enable/disable the transform.
            example:
              name: Flatten GitHub PR
              code: '{ "id": number }'
              transformType: jsonata
              inputFormat: json
              outputFormat: json
              description: Updated description
              isActive: true
  /api/transforms/test:
    post:
      tags:
      - Transforms
      summary: Test transform
      operationId: transforms_test_transform
      responses:
        '200':
          description: Successful response
      description: Run transform code against a sample payload and return the output (nothing is saved).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                code:
                  type: string
                  description: Required. Transform code to run.
                payload:
                  type: object
                  description: Required. Sample input payload.
                transformType:
                  type: string
                  description: Optional. jsonata | xslt | liquid | javascript (default jsonata).
                inputFormat:
                  type: string
                  description: Optional. json | xml | text (default json).
                outputFormat:
                  type: string
                  description: Optional. json | xml | text (default json).
              required:
              - code
              - payload
            example:
              code: '{ "id": number, "title": title }'
              payload:
                number: 1
                title: Fix bug
              transformType: jsonata
              inputFormat: json
              outputFormat: json
  /api/transforms/generate:
    post:
      tags:
      - Transforms
      summary: Generate transform with AI (Starter+)
      operationId: transforms_generate_transform_with_ai_starter
      responses:
        '200':
          description: Successful response
      description: Generate transform code from a natural-language description (Starter plan and above).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                description:
                  type: string
                  description: Required. What the transform should do.
                transformType:
                  type: string
                  description: Optional. Target language (default jsonata).
                sampleInput:
                  type: object
                  description: Optional. Example input to guide generation.
                sampleOutput:
                  type: object
                  description: Optional. Desired output to guide generation.
              required:
              - description
            example:
              description: Extract id and title from the PR payload
              transformType: jsonata
              sampleInput:
                number: 1
                title: Fix bug
              sampleOutput:
                id: 1
                title: Fix bug
  /api/transforms/{transformId}/export:
    get:
      tags:
      - Transforms
      summary: Export transform
      operationId: transforms_export_transform
      parameters:
      - name: transformId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
      description: Export a single transform as a portable JSON document.
  /api/transforms/import:
    post:
      tags:
      - Transforms
      summary: Import transform
      operationId: transforms_import_transform
      responses:
        '200':
          description: Successful response
      description: Import a transform from the export format.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                transform:
                  type: object
                  description: Required. Transform config { name, code, transformType?, inputFormat?, outputFormat?, description?, slug? }.
                overwrite:
                  type: boolean
                  description: Optional. Overwrite an existing transform with the same slug.
              required:
              - transform
            example:
              transform:
                name: Flatten GitHub PR
                code: '{ "id": number }'
                transformType: jsonata
              overwrite: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Hookbase API key with the whr_ prefix.