Signals Docs
Webhooks

Webhooks


List webhook endpoints

GET
https://api.signals.pressone.africa/v1
/webhooks

List webhook endpoints › Headers

X-Project-ID
​string

The project the request acts on, as prj_ and its lowercase UUID; optional while the organization has one active project.

List webhook endpoints › Responses

Every webhook endpoint in the project.


Create a webhook endpoint

POST
https://api.signals.pressone.africa/v1
/webhooks

Create a webhook endpoint › Headers

Idempotency-Key
​string · required

One nonblank key of at most 128 characters; a retry with the same key repeats the outcome.

X-Project-ID
​string

The project the request acts on, as prj_ and its lowercase UUID; optional while the organization has one active project.

Create a webhook endpoint › Request Body

events
​string[] · required
scope_type
​WebhookEndpointScopeType · enum · required
Enum values:
organization
trunk
subaccount
timeout_seconds
​integer · int32 · min: 0 · required
url
​string · uri · required
failover_url
​string | null · uri
scope_id
​string | null

Create a webhook endpoint › Responses

An idempotent replay; secret is null and secret_unavailable is true.

​WebhookEndpoint · required
secret
​string | null · required
secret_unavailable
​boolean · required

List webhook deliveries

GET
https://api.signals.pressone.africa/v1
/webhooks/deliveries

List webhook deliveries › query Parameters

endpoint
​string
event_type
​string
result
​string · enum
Enum values:
delivered
retrying
exhausted
status_class
​string · enum
Enum values:
2xx
4xx
5xx
none
attempt
​integer · int32
from
​string · date-time
to
​string · date-time
limit
​integer · int32 · min: 0

List webhook deliveries › Headers

X-Project-ID
​string

The project the request acts on, as prj_ and its lowercase UUID; optional while the organization has one active project.

List webhook deliveries › Responses

The deliveries matching the filter.


Read a webhook delivery

GET
https://api.signals.pressone.africa/v1
/webhooks/deliveries/{delivery_id}

Read a webhook delivery › path Parameters

delivery_id
​string · required

Webhook delivery id

Read a webhook delivery › Headers

X-Project-ID
​string

The project the request acts on, as prj_ and its lowercase UUID; optional while the organization has one active project.

Read a webhook delivery › Responses

The delivery with its attempts, request and response.

attempt
​integer · int32 · required
attempted_at
​string · date-time · required
call_sequence
​integer | null · int64 · required
duration_ms
​integer | null · int32 · required
endpoint_id
​string · required
endpoint_url
​string · uri · required
error
​string | null · required
event_id
​string · required
event_type
​string · required
id
​string · required
max_attempts
​integer · int32 · required
next_retry_at
​string | null · date-time · required
replay_request_id
​string | null · required
replay_requested_by
​string | null · required
replayable_until
​string | null · date-time · required
​required
result
​WebhookDeliveryResult · enum · required
Enum values:
delivered
retrying
exhausted
status_code
​integer | null · int32 · required
​WebhookDeliveryAttempt[] · required
request_body
​string · required
​object · required
response_excerpt
​string | null · required
​object | null · required

Retry one webhook delivery now

POST
https://api.signals.pressone.africa/v1
/webhooks/deliveries/{delivery_id}/retry

Retry one webhook delivery now › path Parameters

delivery_id
​string · required

Webhook delivery id

Retry one webhook delivery now › Headers

Idempotency-Key
​string · required

One nonblank key of at most 128 characters; a retry with the same key repeats the outcome.

X-Project-ID
​string

The project the request acts on, as prj_ and its lowercase UUID; optional while the organization has one active project.

Retry one webhook delivery now › Responses

The new delivery attempt.

attempt
​integer · int32 · required
attempted_at
​string · date-time · required
call_sequence
​integer | null · int64 · required
duration_ms
​integer | null · int32 · required
endpoint_id
​string · required
endpoint_url
​string · uri · required
error
​string | null · required
event_id
​string · required
event_type
​string · required
id
​string · required
max_attempts
​integer · int32 · required
next_retry_at
​string | null · date-time · required
replay_request_id
​string | null · required
replay_requested_by
​string | null · required
replayable_until
​string | null · date-time · required
​required
result
​WebhookDeliveryResult · enum · required
Enum values:
delivered
retrying
exhausted
status_code
​integer | null · int32 · required

Read a webhook endpoint

GET
https://api.signals.pressone.africa/v1
/webhooks/{endpoint_id}

Read a webhook endpoint › path Parameters

endpoint_id
​string · required

Webhook endpoint id

Read a webhook endpoint › Headers

X-Project-ID
​string

The project the request acts on, as prj_ and its lowercase UUID; optional while the organization has one active project.

Read a webhook endpoint › Responses

The webhook endpoint.

created_at
​string · date-time · required
created_by
​string | null · required
disabled_at
​string | null · date-time · required
disabled_reason
​string | null · required
events
​string[] · required
failover_url
​string | null · uri · required
​WebhookEndpointHealth · required
id
​string · required
is_active
​boolean · required
previous_retires_at
​string | null · date-time · required
retained_events
​integer | null · int64 · min: 0 · required
retention_ends_at
​string | null · date-time · required
​WebhookEndpointScope · required
secret_hint
​string · required
secret_rotated_at
​string · date-time · required
timeout_seconds
​integer · int32 · min: 0 · required
url
​string · uri · required

Delete a webhook endpoint

DELETE
https://api.signals.pressone.africa/v1
/webhooks/{endpoint_id}

Delete a webhook endpoint › path Parameters

endpoint_id
​string · required

Webhook endpoint id

Delete a webhook endpoint › Headers

If-Match
​string · required

The quoted revision the caller last read, so a concurrent change answers 412.

Idempotency-Key
​string · required

One nonblank key of at most 128 characters; a retry with the same key repeats the outcome.

X-Project-ID
​string

The project the request acts on, as prj_ and its lowercase UUID; optional while the organization has one active project.

Delete a webhook endpoint › Responses

The endpoint was deleted; a replay of the same request answers 204 again.

No data returned

Update a webhook endpoint

PATCH
https://api.signals.pressone.africa/v1
/webhooks/{endpoint_id}

Update a webhook endpoint › path Parameters

endpoint_id
​string · required

Webhook endpoint id

Update a webhook endpoint › Headers

If-Match
​string · required

The quoted revision the caller last read, so a concurrent change answers 412.

Idempotency-Key
​string · required

One nonblank key of at most 128 characters; a retry with the same key repeats the outcome.

X-Project-ID
​string

The project the request acts on, as prj_ and its lowercase UUID; optional while the organization has one active project.

Update a webhook endpoint › Request Body

Every field is optional and at least one is required; a field left out keeps its value.
events
​array | null
failover_url
​string | null · uri

Null clears the failover URL; leaving the field out keeps it.

is_active
​boolean | null
timeout_seconds
​integer | null · int32 · min: 0
url
​string | null · uri

Update a webhook endpoint › Responses

The endpoint after the change.

created_at
​string · date-time · required
created_by
​string | null · required
disabled_at
​string | null · date-time · required
disabled_reason
​string | null · required
events
​string[] · required
failover_url
​string | null · uri · required
​WebhookEndpointHealth · required
id
​string · required
is_active
​boolean · required
previous_retires_at
​string | null · date-time · required
retained_events
​integer | null · int64 · min: 0 · required
retention_ends_at
​string | null · date-time · required
​WebhookEndpointScope · required
secret_hint
​string · required
secret_rotated_at
​string · date-time · required
timeout_seconds
​integer · int32 · min: 0 · required
url
​string · uri · required

List one endpoint's deliveries

GET
https://api.signals.pressone.africa/v1
/webhooks/{endpoint_id}/deliveries

List one endpoint's deliveries › path Parameters

endpoint_id
​string · required

Webhook endpoint id

List one endpoint's deliveries › query Parameters

event_type
​string
result
​string · enum
Enum values:
delivered
retrying
exhausted
status_class
​string · enum
Enum values:
2xx
4xx
5xx
none
attempt
​integer · int32
from
​string · date-time
to
​string · date-time
limit
​integer · int32 · min: 0

List one endpoint's deliveries › Headers

X-Project-ID
​string

The project the request acts on, as prj_ and its lowercase UUID; optional while the organization has one active project.

List one endpoint's deliveries › Responses

The endpoint's deliveries matching the filter.


Preview or queue webhook event replays

POST
https://api.signals.pressone.africa/v1
/webhooks/{endpoint_id}/replays

Preview or queue webhook event replays › path Parameters

endpoint_id
​string · required

Webhook endpoint id

Preview or queue webhook event replays › Headers

X-Project-ID
​string

The project the request acts on, as prj_ and its lowercase UUID; optional while the organization has one active project.

Idempotency-Key
​string

Required unless preview is true: one nonblank key of at most 128 characters.

Preview or queue webhook event replays › Request Body

delivery_ids
​string[] · required
event_types
​string[] · required
preview
​boolean · required
window_from
​string · date-time · required
window_to
​string · date-time · required

Preview or queue webhook event replays › Responses

A preview (preview true): the count for the selection. Nothing was queued.

events
​integer · int64 · min: 0 · required
rate_per_second
​integer · int32 · min: 0 · required
window_from
​string · date-time · required
window_to
​string · date-time · required

Send a signed webhook test event

POST
https://api.signals.pressone.africa/v1
/webhooks/{endpoint_id}/test

Send a signed webhook test event › path Parameters

endpoint_id
​string · required

Webhook endpoint id

Send a signed webhook test event › Headers

Idempotency-Key
​string · required

One nonblank key of at most 128 characters; a retry with the same key repeats the outcome.

X-Project-ID
​string

The project the request acts on, as prj_ and its lowercase UUID; optional while the organization has one active project.

Send a signed webhook test event › Responses

The test delivery result. A target the endpoint owner controls answers 200 with the failing check.

​WebhookTestCheck[] · required
delivery_id
​string · required
event_id
​string · required
request_body
​string · required
status_code
​integer | null · int32 · min: 0 · required