> ## Documentation Index
> Fetch the complete documentation index at: https://octanist.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Ping Webhook Endpoint

> Send a webhook.ping event to an endpoint now with POST /api/webhooks/{id}/ping, to test the URL and the signature check.

Sends a signed `webhook.ping` event to the endpoint right away and returns how it went. Use it to check your URL and signature verification before real events arrive. Pings are not retried and show up in the delivery log.

The ping's body:

```json theme={null}
{
  "id": "evt_0c3d2e1f4a5b6c7d8e9f0a1b2c3d4e5f",
  "type": "webhook.ping",
  "createdAt": "2026-11-30T10:00:00.000Z",
  "organizationId": "org_abc123",
  "source": { "type": "ping" },
  "data": {
    "message": "Ping from Octanist. Lead events carry data.lead and, for changes, data.changes."
  }
}
```

Needs an API key with full access. The endpoint must be on.

## Example Request

```bash theme={null}
curl -X POST \
  -H "X-API-KEY: your_api_key" \
  "https://octanist.com/api/webhooks/9b2f1c4e-6a1d-4f7e-9a51-2c8f0f3d1a77/ping"
```

## Example Response

```json theme={null}
{
  "success": true,
  "data": {
    "id": "5d0e3b1a-8c2f-4e6d-9a7b-1c0d2e3f4a5b",
    "eventId": "evt_0c3d2e1f4a5b6c7d8e9f0a1b2c3d4e5f",
    "eventType": "webhook.ping",
    "leadId": null,
    "status": "succeeded",
    "attempts": 1,
    "nextAttemptAt": null,
    "lastAttemptAt": "2026-11-30T10:00:00.000Z",
    "responseStatus": 200,
    "error": null,
    "durationMs": 184,
    "createdAt": "2026-11-30T10:00:00.000Z"
  },
  "meta": {
    "requestId": "req_a1b2c3d4e5f6",
    "timestamp": "2026-11-30T10:00:00.000Z"
  }
}
```

A ping that failed still returns `200`, with `"status": "failed"` and the reason in `responseStatus` and `error`.


## OpenAPI

````yaml POST /api/webhooks/{id}/ping
openapi: 3.0.1
info:
  title: Octanist API
  description: >-
    The Octanist API allows you to create, update and read leads, run reports,
    read workspace settings, retrieve statistics, and access ad spend data.
  version: 2.5.0
  contact:
    name: Octanist Support
    url: https://octanist.com/docs
servers:
  - url: https://octanist.com
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /api/webhooks/{id}/ping:
    parameters:
      - name: id
        in: path
        required: true
        description: Webhook endpoint ID
        schema:
          type: string
    post:
      tags:
        - Webhooks
      summary: Ping Webhook Endpoint
      description: >-
        Send a `webhook.ping` event to the endpoint now and return the outcome.
        Pings are not retried.
      responses:
        '200':
          description: The ping's delivery
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/WebhookDelivery'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '400':
          description: The endpoint is turned off
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: A read-only API key, or the organization is a read-only demo
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Endpoint not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    WebhookDelivery:
      type: object
      properties:
        id:
          type: string
        eventId:
          type: string
          description: The event's `id`, also sent as the `webhook-id` header
          example: evt_4f1c2b9e7d6a4c3b8e2f1a0d9c8b7a6e
        eventType:
          type: string
          example: lead.status_changed
        leadId:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - pending
            - sending
            - succeeded
            - failed
        attempts:
          type: integer
          example: 1
        nextAttemptAt:
          type: string
          format: date-time
          nullable: true
          description: When the next retry is due, for a pending delivery
        lastAttemptAt:
          type: string
          format: date-time
          nullable: true
        responseStatus:
          type: integer
          nullable: true
          example: 200
        error:
          type: string
          nullable: true
          example: null
        durationMs:
          type: integer
          nullable: true
          example: 184
        createdAt:
          type: string
          format: date-time
    Meta:
      type: object
      properties:
        requestId:
          type: string
          example: req_a1b2c3d4e5f6
        timestamp:
          type: string
          format: date-time
          example: '2026-03-10T12:00:00.000Z'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code
              example: VALIDATION_ERROR
            message:
              type: string
              description: Human readable error message
              example: Human readable error message
            details:
              type: object
              description: Optional additional error details
        meta:
          $ref: '#/components/schemas/Meta'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API key for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.