Hookdeck Transformations API

Manage transformations — sandboxed JavaScript executed against events to mutate headers, body, path, or query string before delivery. Also includes a sandboxed run endpoint for testing transformation code against sample event payloads.

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /transformations List event transformations · Retrieve transformations #
Ask an LLM
“Which transformations are available for my webhooks?”
“Can I find a transformation by name?”
Tell an agent
List all transformations.
Find the transformation named {name}.
POST /transformations Create a transformation · Create a transformation #
Ask an LLM
“Can I create a new transformation without overwriting an existing one?”
“What do I need to create a transformation?”
Tell an agent
Create a new transformation {name} with code {code}.
Create transformation {name} using {code} and environment {env}.
PUT /transformations Create or update a transformation · Create/Update a transformation #
Ask an LLM
“How do I create a transformation that runs JavaScript on my webhook payloads?”
“Can I overwrite an existing transformation by its name?”
Tell an agent
Create transformation {name} with code {code}.
Update transformation {name} to run {code} in environment {env}.
GET /transformations/count Count transformations · Get transformations count #
Ask an LLM
“How many transformations do I have?”
“What is the total number of transformations?”
Tell an agent
Count my transformations.
Tell me how many transformations exist.
GET /transformations/{id} Get a transformation · Retrieve a transformation #
Ask an LLM
“What code does a specific transformation run?”
“Can I fetch one transformation by id?”
Tell an agent
Get transformation {id}.
Show the code of transformation {id}.
DELETE /transformations/{id} Delete a transformation · Delete a transformation #
Ask an LLM
“How do I permanently delete a transformation?”
“Is deleting a transformation reversible?”
Tell an agent destructive · confirm first
Delete transformation {id}.
Permanently remove transformation {id}.
PUT /transformations/{id} Update a transformation · Update a transformation #
Ask an LLM
“Can I change the JavaScript code of an existing transformation?”
“How do I update the environment variables on a transformation?”
Tell an agent
Update transformation {id} to run {code}.
Set the environment of transformation {id} to {env}.
PUT /transformations/run Test a transformation against a sample payload · Test a transformation #
Ask an LLM
“Can I run a transformation against a sample request without saving it?”
“What does a transformation return when I test it with a sample event?”
Tell an agent
Test transformation {transformation_id} with request {request}.
Run transformation {transformation_id} against sample event {event_id} and return the result.
GET /transformations/{id}/executions List a transformation's executions · Get transformation executions #
Ask an LLM
“Which executions have run for a transformation?”
“Can I filter a transformation's executions by webhook or log level?”
Tell an agent
List executions of transformation {id}.
Show {log_level} executions for transformation {id}.
GET /transformations/{id}/executions/{execution_id} Get one transformation execution · Get a transformation execution #
Ask an LLM
“What was the result of a specific transformation execution?”
“Can I fetch a single transformation execution by id?”
Tell an agent
Get execution {execution_id} of transformation {id}.
Show the output of transformation {id} execution {execution_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/hookdeck:hookdeck-transformations-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

hookdeck-transformations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hookdeck Bookmarks Attempts Transformations API
  version: 1.0.0
  description: Save bookmarked events for quick replay and convenient one-click testing during development.
  contact:
    name: Hookdeck Support
    url: https://hookdeck.com/contact-us
    email: info@hookdeck.com
servers:
- url: https://api.hookdeck.com/2025-07-01
  description: Production API
security:
- bearerAuth: []
- basicAuth: []
tags:
- name: Transformations
  description: A transformation represents JavaScript code that will be executed on a connection's requests. Transformations are applied to connections using Rules.
paths:
  /transformations:
    get:
      operationId: getTransformations
      summary: Retrieve transformations
      description: This endpoint lists transformations, or a subset of transformations.
      tags:
      - Transformations
      responses:
        '200':
          description: List of transformations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransformationPaginatedResult'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
      parameters:
      - in: query
        name: id
        schema:
          anyOf:
          - type: string
            maxLength: 255
          - type: array
            items:
              type: string
              maxLength: 255
          description: Filter by transformation IDs
      - in: query
        name: name
        schema:
          anyOf:
          - type:
            - string
            - 'null'
            pattern: ^[A-z0-9-_]+$
            maxLength: 155
          - $ref: '#/components/schemas/Operators'
          description: Filter by transformation name
      - in: query
        name: order_by
        schema:
          type: string
          maxLength: 255
          enum:
          - name
          - created_at
          - updated_at
          description: Sort key
      - in: query
        name: dir
        schema:
          type: string
          enum:
          - asc
          - desc
          description: Sort direction
      - in: query
        name: limit
        schema:
          type: integer
          minimum: 0
          maximum: 255
          description: Result set size
      - in: query
        name: next
        schema:
          type: string
          maxLength: 255
          description: The ID to provide in the query to get the next set of results
      - in: query
        name: prev
        schema:
          type: string
          maxLength: 255
          description: The ID to provide in the query to get the previous set of results
    post:
      operationId: createTransformation
      summary: Create a transformation
      description: This endpoint creates a transformation.
      tags:
      - Transformations
      responses:
        '200':
          description: A single transformation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transformation'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  pattern: ^[A-z0-9-_]+$
                  maxLength: 155
                  description: A unique, human-friendly name for the transformation
                code:
                  type: string
                  description: JavaScript code to be executed as string
                env:
                  type: object
                  properties: {}
                  additionalProperties:
                    type: string
                  description: Key-value environment variables to be passed to the transformation
              required:
              - name
              - code
              additionalProperties: false
    put:
      operationId: upsertTransformation
      summary: Create/Update a transformation
      description: This endpoint creates a transformation, or updates an existing transformation by name.
      tags:
      - Transformations
      responses:
        '200':
          description: A single transformation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transformation'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  pattern: ^[A-z0-9-_]+$
                  maxLength: 155
                  description: A unique, human-friendly name for the transformation
                code:
                  type: string
                  description: JavaScript code to be executed as string
                env:
                  type: object
                  properties: {}
                  additionalProperties:
                    type: string
                  description: Key-value environment variables to be passed to the transformation
              required:
              - name
              - code
              additionalProperties: false
  /transformations/count:
    get:
      operationId: getTransformationsCount
      summary: Get transformations count
      description: ''
      tags:
      - Transformations
      responses:
        '200':
          description: Count of transformations
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: number
                    format: float
                    description: Number of transformations
                required:
                - count
                additionalProperties: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
      parameters: []
  /transformations/{id}:
    get:
      operationId: getTransformation
      summary: Retrieve a transformation
      description: This endpoint retrieves a specific transformation.
      tags:
      - Transformations
      responses:
        '200':
          description: A single transformation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transformation'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
      parameters:
      - in: path
        name: id
        schema:
          type: string
          description: Transformation ID
        required: true
    delete:
      operationId: deleteTransformation
      summary: Delete a transformation
      description: This endpoint permanently deletes a transformation. This action cannot be undone.
      tags:
      - Transformations
      responses:
        '200':
          description: An object with deleted transformation id
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: ID of the Transformation
                required:
                - id
                additionalProperties: false
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
      parameters:
      - in: path
        name: id
        schema:
          type: string
          description: Transformation ID
        required: true
    put:
      operationId: updateTransformation
      summary: Update a transformation
      description: This endpoint updates a transformation.
      tags:
      - Transformations
      responses:
        '200':
          description: A single transformation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transformation'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
      parameters:
      - in: path
        name: id
        schema:
          type: string
          description: Transformation ID
        required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  pattern: ^[A-z0-9-_]+$
                  maxLength: 155
                  description: A unique, human-friendly name for the transformation
                code:
                  type: string
                  description: JavaScript code to be executed
                env:
                  type: object
                  properties: {}
                  additionalProperties:
                    type: string
                  description: Key-value environment variables to be passed to the transformation
              additionalProperties: false
  /transformations/run:
    put:
      operationId: testTransformation
      summary: Test a transformation
      description: This endpoint executes a transformation against a sample request payload and returns the transformed result without persisting anything.
      tags:
      - Transformations
      responses:
        '200':
          description: Transformation run output
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransformationExecutorOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                env:
                  type: object
                  properties: {}
                  additionalProperties:
                    type: string
                  description: Key-value environment variables to be passed to the transformation
                webhook_id:
                  type: string
                  description: ID of the connection (webhook) to use for the execution `context`
                code:
                  type: string
                  description: JavaScript code to be executed
                transformation_id:
                  type: string
                  description: Transformation ID
                request:
                  type: object
                  properties:
                    headers:
                      type: object
                      properties: {}
                      additionalProperties:
                        type: string
                      description: Headers of the request
                      x-docs-force-simple-type: true
                      x-docs-type: JSON
                    body:
                      anyOf:
                      - type: object
                        properties: {}
                        additionalProperties: false
                        x-docs-force-simple-type: true
                        x-docs-type: JSON
                      - type: string
                      description: Body of the request
                      x-docs-force-simple-type: true
                    path:
                      type:
                      - string
                      - 'null'
                      description: Path of the request
                    query:
                      type:
                      - string
                      - 'null'
                      description: String representation of the query params of the request
                    parsed_query:
                      type: object
                      properties: {}
                      additionalProperties: false
                      description: JSON representation of the query params
                      x-docs-force-simple-type: true
                      x-docs-type: JSON
                  required:
                  - headers
                  additionalProperties: false
                  description: Request input to use for the transformation execution
                event_id:
                  type: string
                  x-docs-hide: true
              additionalProperties: false
  /transformations/{id}/executions:
    get:
      operationId: getTransformationExecutions
      summary: Get transformation executions
      description: ''
      tags:
      - Transformations
      responses:
        '200':
          description: List of transformation executions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransformationExecutionPaginatedResult'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
      parameters:
      - in: query
        name: log_level
        schema:
          anyOf:
          - type:
            - string
            - 'null'
            enum:
            - debug
            - info
            - warn
            - error
            - fatal
          - type: array
            items:
              type:
              - string
              - 'null'
              enum:
              - debug
              - info
              - warn
              - error
              - fatal
          description: Log level of the execution
      - in: query
        name: webhook_id
        schema:
          anyOf:
          - type: string
            maxLength: 255
          - type: array
            items:
              type: string
              maxLength: 255
          description: ID of the connection the execution was run for
      - in: query
        name: issue_id
        schema:
          anyOf:
          - type: string
            maxLength: 255
          - type: array
            items:
              type: string
              maxLength: 255
          description: ID of the associated issue
      - in: query
        name: created_at
        schema:
          anyOf:
          - type: string
            format: date-time
          - $ref: '#/components/schemas/Operators'
          description: ISO date of the transformation's execution
      - in: query
        name: order_by
        schema:
          anyOf:
          - type: string
            maxLength: 255
            enum:
            - created_at
          - type: array
            items:
              type: string
              maxLength: 255
              enum:
              - created_at
            minItems: 2
            maxItems: 2
          description: Sort key(s)
      - in: query
        name: dir
        schema:
          anyOf:
          - type: string
            enum:
            - asc
            - desc
          - type: array
            items:
              type: string
              enum:
              - asc
              - desc
            minItems: 2
            maxItems: 2
          description: Sort direction(s)
      - in: query
        name: limit
        schema:
          type: integer
          minimum: 0
          maximum: 255
          description: Result set size
      - in: query
        name: next
        schema:
          type: string
          maxLength: 255
          description: The ID to provide in the query to get the next set of results
      - in: query
        name: prev
        schema:
          type: string
          maxLength: 255
          description: The ID to provide in the query to get the previous set of results
      - in: path
        name: id
        schema:
          type: string
          description: Transformation ID
        required: true
  /transformations/{id}/executions/{execution_id}:
    get:
      operationId: getTransformationExecution
      summary: Get a transformation execution
      description: ''
      tags:
      - Transformations
      responses:
        '200':
          description: A single transformation execution
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransformationExecution'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
      parameters:
      - in: path
        name: id
        schema:
          type: string
          description: Transformation ID
        required: true
      - in: path
        name: execution_id
        schema:
          type: string
          description: Execution ID
        required: true
components:
  schemas:
    TransformationExecution:
      type: object
      properties:
        id:
          type: string
        transformed_event_data_id:
          type:
          - string
          - 'null'
        original_event_data_id:
          type: string
        transformation_id:
          type: string
        team_id:
          type: string
          description: ID of the project
        webhook_id:
          type: string
          description: ID of the associated connection (webhook)
        log_level:
          $ref: '#/components/schemas/TransformationExecutionLogLevel'
        logs:
          type: array
          items:
            $ref: '#/components/schemas/ConsoleLine'
        updated_at:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
        original_event_data:
          $ref: '#/components/schemas/ShortEventData'
        transformed_event_data:
          $ref: '#/components/schemas/ShortEventData'
        issue_id:
          type:
          - string
          - 'null'
      required:
      - id
      - original_event_data_id
      - transformation_id
      - team_id
      - webhook_id
      - log_level
      - logs
      - updated_at
      - created_at
      additionalProperties: false
    ConsoleLine:
      type: object
      properties:
        type:
          type: string
          enum:
          - error
          - log
          - warn
          - info
          - debug
        message:
          type: string
      required:
      - type
      - message
      additionalProperties: false
    TransformationExecutorOutput:
      type: object
      properties:
        request_id:
          type:
          - string
          - 'null'
        transformation_id:
          type:
          - string
          - 'null'
        execution_id:
          type:
          - string
          - 'null'
        log_level:
          $ref: '#/components/schemas/TransformationExecutionLogLevel'
        request:
          type:
          - object
          - 'null'
          properties:
            headers:
              anyOf:
              - type: string
              - type: object
                properties: {}
                additionalProperties: {}
            path:
              type: string
            query:
              anyOf:
              - type:
                - object
                - 'null'
                properties: {}
                additionalProperties: false
              - type: string
            parsed_query:
              anyOf:
              - type:
                - string
                - 'null'
              - type: object
                properties: {}
                additionalProperties: false
            body:
              anyOf:
              - type:
                - string
                - 'null'
              - type: object
                properties: {}
                additionalProperties: false
          required:
          - path
          additionalProperties: false
        console:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ConsoleLine'
      required:
      - log_level
      additionalProperties: false
    APIErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
        status:
          type: number
          format: float
          description: Status code
        message:
          type: string
          description: Error description
        data:
          type:
          - object
          - 'null'
          properties: {}
      required:
      - code
      - status
      - message
      additionalProperties: false
      description: Error response model
    TransformationExecutionPaginatedResult:
      type: object
      properties:
        pagination:
          $ref: '#/components/schemas/SeekPagination'
        count:
          type: integer
        models:
          type: array
          items:
            $ref: '#/components/schemas/TransformationExecution'
      additionalProperties: false
    SeekPagination:
      type: object
      properties:
        order_by:
          anyOf:
          - type: string
          - type: array
            items:
              type: string
        dir:
          anyOf:
          - $ref: '#/components/schemas/OrderByDirection'
          - type: array
            items:
              $ref: '#/components/schemas/OrderByDirection'
        limit:
          type: integer
        prev:
          type: string
        next:
          type: string
      additionalProperties: false
    Operators:
      type: object
      properties:
        gt:
          type:
          - string
          - 'null'
          format: date-time
        gte:
          type:
          - string
          - 'null'
          format: date-time
        le:
          type:
          - string
          - 'null'
          format: date-time
        lte:
          type:
          - string
          - 'null'
          format: date-time
        any:
          type: boolean
        all:
          type: boolean
      additionalProperties: false
    ShortEventData:
      type:
      - object
      - 'null'
      properties:
        path:
          type: string
          description: Request path
        query:
          type:
          - string
          - 'null'
          description: Raw query param string
        parsed_query:
          anyOf:
          - type:
            - string
            - 'null'
          - type: object
            properties: {}
          description: JSON representation of query params
        headers:
          anyOf:
          - type: string
          - type: object
            properties: {}
            additionalProperties:
              type:
              - string
              - 'null'
          description: JSON representation of the headers
        body:
          anyOf:
          - type: string
          - type: object
            properties: {}
          - type: array
            items: {}
          description: JSON or string representation of the body
        is_large_payload:
          type:
          - boolean
          - 'null'
          description: Whether the payload is considered large payload and not searchable
      required:
      - path
      - query
      - parsed_query
      - headers
      - body
      additionalProperties: false
      description: Request data
    TransformationExecutionLogLevel:
      type: string
      enum:
      - debug
      - info
      - warn
      - error
      - fatal
      description: The minimum log level to open the issue on
    Transformation:
      type: object
      properties:
        id:
          type: string
          description: ID of the transformation
        team_id:
          type: string
          description: ID of the project
        name:
          type: string
          description: A unique, human-friendly name for the transformation
        code:
          type: string
          description: JavaScript code to be executed
        encrypted_env:
          type:
          - string
          - 'null'
          x-docs-hide: true
        iv:
          type:
          - string
          - 'null'
          x-docs-hide: true
        env:
          type:
          - object
          - 'null'
          properties: {}
          additionalProperties:
            type: string
          description: Key-value environment variables to be passed to the transformation
          x-docs-force-simple-type: true
        updated_at:
          type: string
          format: date-time
          description: Date the transformation was last updated
        created_at:
          type: string
          format: date-time
          description: Date the transformation was created
      required:
      - id
      - team_id
      - name
      - code
      - updated_at
      - created_at
      additionalProperties: false
    TransformationPaginatedResult:
      type: object
      properties:
        pagination:
          $ref: '#/components/schemas/SeekPagination'
        count:
          type: integer
        models:
          type: array
          items:
            $ref: '#/components/schemas/Transformation'
      additionalProperties: false
    OrderByDirection:
      anyOf:
      - enum:
        - asc
      - enum:
        - desc
      - enum:
        - ASC
      - enum:
        - DESC
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    basicAuth:
      type: http
      scheme: basic