- 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
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
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,
localhostand 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.
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
pointed:read. A user-backed credential that belongs to a workspace admin.
Path parameters
Response:
200 OK
Also the errors on this page.
Example
Update an endpoint
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,lastFailureAtandfailingSinceare cleared, andactiveSinceof an active endpoint moves to now. Deliveries that were still waiting for the old address are cancelled with the error codeaddress_changed. Use Resend a delivery to send one to the new address. - A new event type, or
receiveTestEventsset totrue, applies from now. Events about earlier interviews are not sent for it. "status": "paused"works on an endpoint that isactiveorpaused."status": "active"turns on an endpoint that ispausedordisabled. Events from while it was off are not sent. An endpoint that ispending_approvalcannot be turned on with this API. See Endpoint statuses.
200 OK
Also the errors on this page.
Example
Delete an endpoint
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
Also the errors on this page.
Example
Send a test event
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
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
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
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
statusisdelivered,failedorcancelled. - 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.
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: