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

# Trigger an agent webhook

> Send a signed event to a webhook configured on a hosted Eigi Computer.

In **Automations → Main → Triggers**, create a webhook route and copy its URL and signing secret. Configure the external sender to POST the exact payload bytes to that URL. The token in the URL routes the event to the computer. The per-route secret authenticates it.

| Sender | Signature |
| - | - |
| GitHub | Set the webhook secret in GitHub. Its `X-Hub-Signature-256` header is `sha256=` followed by the hex HMAC-SHA256 of the request body. |
| Generic sender | Send Unix seconds in `X-Webhook-Timestamp`. Send a hex HMAC-SHA256 in `X-Webhook-Signature-V2`, computed over the timestamp, one period, and the original body bytes. |

A `202` means the event was accepted for processing. A `200` may report delivery, a duplicate, or an ignored event. Check the response status and the run in Automations. [Use automations on Eigi Computer](https://docs.eigi.ai/eigi-computer/automation.md).


## OpenAPI

````yaml api-reference/openapi.json POST /v1/eigi-agent/webhooks/{token}/{route_name}
openapi: 3.0.0
info:
  title: eigi.ai API
  description: REST API for managing AI voice agents and conversations
  version: 1.0.0
  contact:
    email: buddy@eigi.ai
    url: https://eigi.ai
servers:
  - url: https://api.eigi.ai
    description: Production server
security:
  - ApiKeyAuth: []
  - OAuthAccessToken: []
paths:
  /v1/eigi-agent/webhooks/{token}/{route_name}:
    post:
      tags:
        - Webhooks
      summary: Trigger an agent webhook
      description: Send a signed event to a webhook configured on a hosted Eigi Computer.
      operationId: agentWebhook
      parameters:
        - name: token
          in: path
          required: true
          description: Routing token in the URL copied from Studio.
          schema:
            type: string
        - name: route_name
          in: path
          required: true
          description: Configured route ID.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '202':
          description: Event accepted for processing.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Missing or invalid credentials.
      security:
        - GitHubSignature: []
        - WebhookSignature: []
          WebhookTimestamp: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Studio API key for server-side requests.
    OAuthAccessToken:
      type: http
      scheme: bearer
      description: OAuth access token issued to an authorized Eigi integration.
    GitHubSignature:
      type: apiKey
      in: header
      name: X-Hub-Signature-256
    WebhookSignature:
      type: apiKey
      in: header
      name: X-Webhook-Signature-V2
    WebhookTimestamp:
      type: apiKey
      in: header
      name: X-Webhook-Timestamp

````

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