Polarex.Webhooks (Polarex v0.2.8)
View SourceProvides API endpoints related to webhooks
Summary
Functions
Create Webhook Endpoint
Delete Webhook Endpoint
Get Webhook Endpoint
List Webhook Deliveries
List Webhook Endpoints
Redeliver Webhook Event
Reset Webhook Endpoint Secret
Update Webhook Endpoint
Functions
@spec webhooks_create_webhook_endpoint( Polarex.WebhookEndpointCreate.t(), keyword() ) :: {:ok, Polarex.WebhookEndpoint.t()} | {:error, Polarex.HTTPValidationError.t()}
Create Webhook Endpoint
Create a webhook endpoint.
Scopes: webhooks:write
@spec webhooks_delete_webhook_endpoint( String.t(), keyword() ) :: :ok | {:error, Polarex.HTTPValidationError.t() | Polarex.ResourceNotFound.t()}
Delete Webhook Endpoint
Delete a webhook endpoint.
Scopes: webhooks:write
@spec webhooks_get_webhook_endpoint( String.t(), keyword() ) :: {:ok, Polarex.WebhookEndpoint.t()} | {:error, Polarex.HTTPValidationError.t() | Polarex.ResourceNotFound.t()}
Get Webhook Endpoint
Get a webhook endpoint by ID.
Scopes: webhooks:read webhooks:write
@spec webhooks_list_webhook_deliveries(keyword()) :: {:ok, Polarex.ListResourceWebhookDelivery.t()} | {:error, Polarex.HTTPValidationError.t()}
List Webhook Deliveries
List webhook deliveries.
Deliveries are all the attempts to deliver a webhook event to an endpoint.
Scopes: webhooks:read webhooks:write
Options
endpoint_id: Filter by webhook endpoint ID.start_timestamp: Filter deliveries after this timestamp.end_timestamp: Filter deliveries before this timestamp.page: Page number, defaults to 1.limit: Size of a page, defaults to 10. Maximum is 100.
@spec webhooks_list_webhook_endpoints(keyword()) :: {:ok, Polarex.ListResourceWebhookEndpoint.t()} | {:error, Polarex.HTTPValidationError.t()}
List Webhook Endpoints
List webhook endpoints.
Scopes: webhooks:read webhooks:write
Options
organization_id: Filter by organization ID.page: Page number, defaults to 1.limit: Size of a page, defaults to 10. Maximum is 100.
@spec webhooks_redeliver_webhook_event( String.t(), keyword() ) :: {:ok, map()} | {:error, Polarex.HTTPValidationError.t() | Polarex.ResourceNotFound.t()}
Redeliver Webhook Event
Schedule the re-delivery of a webhook event.
Scopes: webhooks:write
@spec webhooks_reset_webhook_endpoint_secret( String.t(), keyword() ) :: {:ok, Polarex.WebhookEndpoint.t()} | {:error, Polarex.HTTPValidationError.t() | Polarex.ResourceNotFound.t()}
Reset Webhook Endpoint Secret
Regenerate a webhook endpoint secret.
Scopes: webhooks:write
@spec webhooks_update_webhook_endpoint( String.t(), Polarex.WebhookEndpointUpdate.t(), keyword() ) :: {:ok, Polarex.WebhookEndpoint.t()} | {:error, Polarex.HTTPValidationError.t() | Polarex.ResourceNotFound.t()}
Update Webhook Endpoint
Update a webhook endpoint.
Scopes: webhooks:write