Skip to main content
POST
/
webhooks
Create webhook
curl --request POST \
  --url https://app.oneform.one/api/v1/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "form_id": "form_123",
  "url": "https://example.com/webhook",
  "name": "My Webhook",
  "signing_secret": "secret_key",
  "subscriber": "<string>"
}
'
{
  "id": "webhook_123",
  "name": "My Webhook",
  "form_id": "form_123",
  "url": "https://example.com/webhook",
  "signing_secret": "secret_key",
  "enabled": true,
  "subscriber": "n8n",
  "created_at": "2024-01-01T12:00:00Z",
  "updated_at": "2024-01-02T12:00:00Z"
}

Authorizations

Authorization
string
header
required

Enter your API key

Body

application/json
form_id
string
required

Form ID

Example:

"form_123"

url
string
required
Example:

"https://example.com/webhook"

name
string | null
Example:

"My Webhook"

signing_secret
string | null
Example:

"secret_key"

subscriber
string | null

Subscriber type

Response

webhook created

id
string
Example:

"webhook_123"

name
string
Example:

"My Webhook"

form_id
string
Example:

"form_123"

url
string
Example:

"https://example.com/webhook"

signing_secret
string | null
Example:

"secret_key"

enabled
boolean
Example:

true

subscriber
string | null
Example:

"n8n"

created_at
string<date-time>
Example:

"2024-01-01T12:00:00Z"

updated_at
string<date-time>
Example:

"2024-01-02T12:00:00Z"