Skip to main content
A webhook endpoint is an HTTPS address of yours that Pointed posts events to. These routes manage endpoints. For the events themselves, the body format, signature verification and retries, see Webhooks. Rules that apply to every route on this page:
  • A workspace admin only. The credential must be user-backed and belong to a workspace admin. This is true for the read routes too.
  • Every workspace has webhooks. There is nothing to turn on first.
  • Five endpoints for each workspace.

The endpoint object

Endpoint statuses

An endpoint created with this API is active at once. An endpoint hears only about what happens while it is on. Events from before it was created, or from while it was paused or disabled, are not sent later.

List endpoints

Authorization: scope pointed:read. A user-backed credential that belongs to a workspace admin. Returns the workspace’s endpoints, oldest first, and the event types an endpoint can receive. It takes no parameters. Response: 200 OK
Errors: see Errors on this page. Example

Create an endpoint

Authorization: scopes pointed:read and pointed:write. A user-backed credential that belongs to a workspace admin. Creates an endpoint and returns its signing secret. The endpoint is active at once. Body parameters Rules for url:
  • It starts with https:// and uses the default port.
  • It has no username, password or # part. A path and a query string are allowed.
  • The host is a public domain name. An IP address, localhost and internal or reserved names are refused.
  • It is not a Pointed address.
  • It has up to 2,048 characters.
  • The workspace has no other endpoint with exactly the same address.
Response: 201 Created

The signing secret is shown once

The secret is in this response and in the response to Rotate the signing secret. No other route returns it. Store it in your secret store when you receive it. If you lose the secret, do not create the endpoint again. A second endpoint with the same address returns 409. Rotate the secret of the existing endpoint to get a new one. Errors Also the errors on this page. Example

Get an endpoint

Authorization: scope pointed:read. A user-backed credential that belongs to a workspace admin. Path parameters Response: 200 OK
Errors Also the errors on this page. Example

Update an endpoint

Authorization: scopes pointed:read and pointed:write. A user-backed credential that belongs to a workspace admin. Changes the address, the description, the events or the test setting, and pauses or turns on the endpoint. Send only the fields you want to change. The signing secret stays the same. Path parameters Body parameters What a change does:
  • A new address starts with a clean record. lastSuccessAt, lastFailureAt and failingSince are cleared, and activeSince of an active endpoint moves to now. Deliveries that were still waiting for the old address are cancelled with the error code address_changed. Use Resend a delivery to send one to the new address.
  • A new event type, or receiveTestEvents set to true, applies from now. Events about earlier interviews are not sent for it.
  • "status": "paused" works on an endpoint that is active or paused.
  • "status": "active" turns on an endpoint that is paused or disabled. Events from while it was off are not sent. An endpoint that is pending_approval cannot be turned on with this API. See Endpoint statuses.
Response: 200 OK
Errors Also the errors on this page. Example

Delete an endpoint

Authorization: scopes pointed:read and pointed:write. A user-backed credential that belongs to a workspace admin. Stops sending at once and removes the endpoint together with its delivery log. Path parameters Response: 200 OK
Errors Also the errors on this page. Example

Send a test event

Authorization: scopes pointed:read and pointed:write. A user-backed credential that belongs to a workspace admin. Queues one webhook.test event for the endpoint. The event carries invented sample data in the shape of interview.completed, and its test field is true. It is sent to an endpoint in any status, and a failed test does not count against the endpoint. The response says the event was queued, not that it arrived. Read the result from List deliveries. Path parameters The route takes no body. Response: 202 Accepted
Errors Also the errors on this page. Example

Rotate the signing secret

Authorization: scopes pointed:read and pointed:write. A user-backed credential that belongs to a workspace admin. Issues a new signing secret for the endpoint. The previous secret keeps working for 24 hours. During that time Pointed signs every request with both secrets, so your receiver can verify with either one while you switch. Only one earlier secret is kept. If you rotate again within those 24 hours, the secret from before the first rotation stops working at once. Use this route when a secret has leaked, and when you have lost the secret. Path parameters The route takes no body. Response: 200 OK
Errors Also the errors on this page. Example

List deliveries

Authorization: scope pointed:read. A user-backed credential that belongs to a workspace admin. Returns the endpoint’s delivery log, newest first. A delivery is one event for one endpoint. The log holds outcomes only. It never holds the event body, the address or what your endpoint answered in its body. Entries are kept for 30 days. Path parameters Query parameters Response: 200 OK

Delivery statuses

Delivery error codes

Errors Also the errors on this page. Example

Resend a delivery

Authorization: scopes pointed:read and pointed:write. A user-backed credential that belongs to a workspace admin. Sends a finished delivery again, to the same endpoint. The copy carries the same event ID, so a receiver that skips event IDs it has already handled ignores it. The resend appears in the log as a new delivery with "trigger": "resend", or "trigger": "test" when the original was a test event. A delivery can be resent when all of these are true:
  • Its status is delivered, failed or cancelled.
  • The event is still stored. Events are kept for 30 days, and the events of a deleted interview are removed at once.
  • The endpoint is active. A test event can be resent to an endpoint in any status.
Path parameters The route takes no body. Response: 202 Accepted
Errors Also the errors on this page. Example

Errors on this page

Every route on this page can return these, in addition to its own errors. A refusal looks like this: