Skip to main content
An endpoint is the HTTPS URL Base44 sends your events to. You can register one in your workspace settings, or with a workspace API key when a script sets up your workspace. This page covers the API. For the settings page, see Sending workspace events with webhooks.
Outbound webhooks are available on the Business and Enterprise plans.

Authenticating

Endpoint requests use a workspace API key with the outbound_webhooks:write scope, shown as Manage outbound webhooks when you create the key. Send it in the Authorization header. The key decides the workspace, so no workspace ID appears in the URL.
To create a key, see Managing workspace secrets. Only workspace owners and admins can create one.
Treat the key like a password. Anyone who holds it can send your workspace’s events to a URL of their choice.

Registering an endpoint

Registering creates the endpoint and activates it in the same call. Base44 sends a signed webhook.test.v1 event to your URL, and the endpoint becomes Active only if your receiver answers with a 2xx within 5 seconds and echoes the challenge.
The URL must use https, can’t include a username or password, and can’t point at a private network. Base44 never follows redirects, so register the exact URL that answers. The response is 201 whether or not activation succeeded, because the endpoint was created either way. Check activated:
When activated is false, fix your receiver and run the test again. Don’t register the endpoint a second time.

Echoing the challenge

The echo proves you control the URL. Without it, anyone could point Base44’s traffic at a host that never asked for it. The test event’s data.challenge holds a one-time value. Return it in the response body in either of these forms:
Or the value alone, as the whole body. Anything else fails, including a partial match. A simple receiver checks the event type before its normal handling:
Verify the signature on the test event too. It’s signed exactly like a real delivery, so a receiver that passes the test has proven it can verify production traffic.

Testing an endpoint again

Run the activation test again after you fix your receiver, or after you change the endpoint’s URL.
The response has the same shape as registration.

Managing endpoints

These requests use the same header as registration. Each returns the endpoint. For every request and response field, see the API reference.
What changes an endpoint’s state:
  • Changing target_url returns the endpoint to Pending. Run the test again to activate the new URL.
  • Changing the selected events or the description keeps it Active.
  • Events that happen while an endpoint is paused or pending aren’t sent to it, even after it’s active again.
  • Resuming an endpoint that Base44 auto-paused runs the activation test first. See Delivery and retries.

Errors and rate limits

Errors use one shape, with a stable code to match on:
Each workspace can make at least 300 endpoint reads, 60 endpoint changes and 10 activation tests per minute.