---
title: "HTTP webhook"
description: "HTTP API payload fields — path, methods, auth, CORS, and event args."
canonical_url: "https://docs.vettero.com/build/event-handlers/http-webhook"
---
# HTTP webhook

> HTTP API payload fields — path, methods, auth, CORS, and event args.

<trigger-meta group="Built-in" icon="i-lucide-globe" type="http">



</trigger-meta>

Create HTTP APIs from **HTTP Servers**, not from **Build → Event handlers**. Each API belongs to a server slug and runs a free-form workflow.

The public URL is on the company subdomain: `https://<company>.vettero.com/events/http/{workspace id}/{server slug}/{api slug}`. Workspace id is the workspace **Id** (slug). Inactive servers and APIs reject inbound requests.

## Payload

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        path
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      API slug (letters, numbers, underscores, hyphens)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        methods
      </code>
    </td>
    
    <td>
      string<span>
        
      </span>
    </td>
    
    <td>
      Allowed methods (<code>
        GET
      </code>
      
      , <code>
        POST
      </code>
      
      , <code>
        PUT
      </code>
      
      , <code>
        PATCH
      </code>
      
      , <code>
        DELETE
      </code>
      
      ). Empty: all
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        validate
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Validate query and body against the schemas. Default: <code>
        true
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        querySchema
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Query schema
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        bodySchema
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Body schema
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        auth.type
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        none
      </code>
      
      , <code>
        basic
      </code>
      
      , <code>
        api_key
      </code>
      
      , or <code>
        bearer
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        auth.username
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Basic auth username
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        auth.password
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Basic auth password
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        auth.headerName
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      API key header name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        auth.apiKey
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      API key value
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        auth.token
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Bearer token
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        cors
      </code>
    </td>
    
    <td>
      string<span>
        
      </span>
    </td>
    
    <td>
      Allowed origins. Empty: all. Wildcards and <code>
        /regex/
      </code>
      
       supported
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        triggerAndReturn
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Wait for the flow (sync). <code>
        false
      </code>
      
       responds immediately with <code>
        accepted
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        validateResponse
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Validate the success <code>
        response
      </code>
      
       against the schema when waiting for the flow. Default: <code>
        false
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        responseSchema
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Response schema
    </td>
  </tr>
</tbody>
</table>

## Trigger data

Available as `args.*`. Query and body shapes follow the schemas you set.

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        method
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      HTTP method
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        headers
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Request headers
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        query
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Query parameters
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        body
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Request body
    </td>
  </tr>
</tbody>
</table>

## Use case

- Let Stripe, a CRM, or another app POST into Vettero when something happens outside the workspace.
- Turn **Wait for the flow** on when the caller needs a real response; leave it off when a quick “accepted” is enough.
- Lock the URL with API key, basic, or bearer auth so only known systems can call it.

<trigger-page-nav>



</trigger-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
