Onfleet Webhooks API

Register HTTPS callbacks against 27 trigger types covering task lifecycle, worker duty/CRUD, route plan state changes, SMS recipient events, and async job completions (auto-dispatch, task batch create, route optimization). Payloads are signed with HMAC-SHA256 using the secret obtained from /webhooks/secret.

GitHub OpenAPI

Operations 5

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 /webhooks List webhooks · List Webhooks #
Ask an LLM
“Which webhooks are currently configured for my Onfleet account?”
“Can I see all the webhook URLs and triggers set up?”
Tell an agent
List all my webhooks.
Show every webhook URL and trigger configured.
POST /webhooks Create a webhook · Create Webhook #
Ask an LLM
“How do I get Onfleet to send delivery status updates to my server?”
“Can I set a webhook that only fires when a task ETA crosses a threshold?”
Tell an agent
Create a webhook at {url} that fires on {trigger}.
Set up a {trigger} webhook at {url} with threshold {threshold}.
PUT /webhooks/{webhookId} Update a webhook · Update Webhook #
Ask an LLM
“Can I change the URL a webhook posts to?”
“How do I raise the threshold on an existing webhook?”
Tell an agent
Change webhook {webhookId} to post to {url}.
Set the threshold of webhook {webhookId} to {threshold}.
DELETE /webhooks/{webhookId} Delete a webhook · Delete Webhook #
Ask an LLM
“How do I stop a webhook from firing?”
“Can I remove a webhook by its ID?”
Tell an agent destructive · confirm first
Delete webhook {webhookId}.
Remove the webhook with ID {webhookId}.
GET /webhooks/secret Get the webhook signing secret · Get Webhook Signing Secret #
Ask an LLM
“Where do I find the secret used to verify webhook signatures?”
“What signing secret should my server use to validate webhooks?”
Tell an agent
Get my webhook signing secret.
Show the secret for verifying webhook signatures.

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/onfleet:onfleet-webhooks-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

onfleet-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Onfleet Destinations Webhooks API
  description: 'The Destinations API manages physical addresses associated with tasks.

    Destinations include parsed address fields and a GeoJSON location, and can

    be reused across tasks. Onfleet geocodes addresses on creation; you can

    also supply an `unparsed` address.'
  version: '2.7'
  contact:
    name: Onfleet Support
    email: support@onfleet.com
  license:
    name: Onfleet Terms of Service
    url: https://onfleet.com/legal
servers:
- url: https://onfleet.com/api/v2
  description: Production
security:
- basicAuth: []
tags:
- name: Webhooks
paths:
  /webhooks:
    get:
      tags:
      - Webhooks
      summary: List Webhooks
      operationId: listWebhooks
      responses:
        '200':
          description: Webhooks
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Webhook'
    post:
      tags:
      - Webhooks
      summary: Create Webhook
      operationId: createWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookCreate'
      responses:
        '200':
          description: Webhook created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webhook'
  /webhooks/{webhookId}:
    parameters:
    - name: webhookId
      in: path
      required: true
      schema:
        type: string
    put:
      tags:
      - Webhooks
      summary: Update Webhook
      operationId: updateWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  format: uri
                name:
                  type: string
                threshold:
                  type: integer
      responses:
        '200':
          description: Updated webhook
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webhook'
    delete:
      tags:
      - Webhooks
      summary: Delete Webhook
      operationId: deleteWebhook
      responses:
        '200':
          description: Webhook deleted
  /webhooks/secret:
    get:
      tags:
      - Webhooks
      summary: Get Webhook Signing Secret
      operationId: getWebhookSecret
      responses:
        '200':
          description: Signing secret
          content:
            application/json:
              schema:
                type: object
                properties:
                  secret:
                    type: string
components:
  schemas:
    Webhook:
      type: object
      properties:
        id:
          type: string
        organization:
          type: string
        url:
          type: string
          format: uri
        name:
          type: string
        count:
          type: integer
        trigger:
          type: integer
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          - 5
          - 6
          - 7
          - 8
          - 9
          - 10
          - 12
          - 13
          - 14
          - 15
          - 16
          - 17
          - 18
          - 19
          - 20
          - 22
          - 23
          - 24
          - 25
          - 26
          - 27
          - 28
          - 29
          - 30
        threshold:
          type:
          - integer
          - 'null'
    WebhookCreate:
      type: object
      required:
      - url
      - trigger
      properties:
        url:
          type: string
          format: uri
        name:
          type: string
        trigger:
          type: integer
        threshold:
          type: integer
          description: Required for triggers that compare against a threshold (taskEta
          taskArrival: null
          taskDelayed).: null
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic