asc webhooks
asc webhooks commands: create, update and delete App Store Connect webhooks, list and redeliver their deliveries, send a ping, and run a local receiver for testing.
asc webhooks manages App Store Connect webhooks: an app’s endpoints that Apple calls when events happen, such as a build or a version changing state. Picking an Apple team, output, pagination, --confirm and exit codes work as described on the asc page; the flag tables below leave out --output, --pretty, --limit, --next, --paginate and the --fields / --…-fields flags, which are explained there. Commands that talk to App Store Connect print Apple’s JSON for the webhook, delivery or ping; delete prints its own receipt instead.
| Subcommand | What it does |
|---|---|
| list | List webhooks for an app. |
| view | View a webhook by ID. |
| create | Create a webhook. |
| update | Update a webhook. |
| delete | Delete a webhook. |
| serve | Run a local webhook receiver for testing and automation. |
| deliveries | List webhook deliveries, list their IDs, and redeliver one. |
| ping | Create a webhook ping. |
list
List webhooks for an app.
Prints each webhook with its name, URL, event types and whether it is enabled. --next can’t be combined with --app or --limit.
| Flag | What it does | Default |
|---|---|---|
--app |
The app ID (or ASC_APP_ID). Required unless --next is given. |
— |
asc webhooks list --app "1234567890"view
View a webhook by ID.
Prints the webhook: name, URL, event types and whether it is enabled.
| Flag | What it does | Default |
|---|---|---|
--webhook-id |
Webhook ID. Required. | — |
asc webhooks view --webhook-id "WEBHOOK_ID"create
Create a webhook.
Prints the new webhook. --secret is the shared secret Apple signs each delivery with, so your endpoint can check it. Pass it with @env:NAME or @file:PATH (see Values from the environment or a file) rather than as plain text.
--events takes one or more of these event types, comma-separated (case does not matter):
ALTERNATIVE_DISTRIBUTION_PACKAGE_AVAILABLE_UPDATEDALTERNATIVE_DISTRIBUTION_PACKAGE_VERSION_CREATEDALTERNATIVE_DISTRIBUTION_TERRITORY_AVAILABILITY_UPDATEDAPP_STORE_VERSION_APP_VERSION_STATE_UPDATEDBACKGROUND_ASSET_VERSION_APP_STORE_RELEASE_STATE_UPDATEDBACKGROUND_ASSET_VERSION_EXTERNAL_BETA_RELEASE_STATE_UPDATEDBACKGROUND_ASSET_VERSION_INTERNAL_BETA_RELEASE_CREATEDBACKGROUND_ASSET_VERSION_STATE_UPDATEDBETA_FEEDBACK_CRASH_SUBMISSION_CREATEDBETA_FEEDBACK_SCREENSHOT_SUBMISSION_CREATEDBUILD_BETA_DETAIL_EXTERNAL_BUILD_STATE_UPDATEDBUILD_UPLOAD_STATE_UPDATED
| Flag | What it does | Default |
|---|---|---|
--app |
The app ID (or ASC_APP_ID). Required. |
— |
--enabled |
Enable or disable the webhook: true or false. Required. |
— |
--events |
Webhook event types, comma-separated. Required. | — |
--name |
Webhook name. Required. | — |
--secret |
Webhook secret. Required. | — |
--url |
Webhook endpoint URL. Required. | — |
asc webhooks create --app "1234567890" --name "Build Updates" --url "https://example.com/webhook" \
--secret @env:WEBHOOK_SECRET --events "BUILD_UPLOAD_STATE_UPDATED" --enabled trueupdate
Update a webhook.
Changes only the fields you pass and prints the updated webhook. Give at least one of --name, --url, --secret, --events or --enabled. --events replaces the whole list, with the values listed under create.
| Flag | What it does | Default |
|---|---|---|
--enabled |
Enable or disable the webhook: true or false. |
— |
--events |
Webhook event types, comma-separated. | — |
--name |
Webhook name. | — |
--secret |
Webhook secret. | — |
--url |
Webhook endpoint URL. | — |
--webhook-id |
Webhook ID. Required. | — |
asc webhooks update --webhook-id "WEBHOOK_ID" --enabled falsedelete
Delete a webhook.
Deletes the webhook, so Apple stops calling its URL, and prints id and "deleted": true. It cannot be undone.
| Flag | What it does | Default |
|---|---|---|
--confirm |
Confirm deletion. Required. | false |
--webhook-id |
Webhook ID. Required. | — |
asc webhooks delete --webhook-id "WEBHOOK_ID" --confirmserve
Run a local webhook receiver for testing and automation.
Starts an HTTP receiver on this machine and prints Listening for webhook events on http://HOST:PORT (with --output json, an object with url, host, port, dir, execEnabled and maxBodyBytes). It runs until you stop it. It needs no Apple team.
- It accepts
POSTrequests with a JSON body and answers{"accepted":true}. Other methods, bodies that are not JSON and bodies larger than--max-body-bytesare refused. - Each event is logged on stderr with its type and ID, taken from the request headers or the payload.
--dirwrites each payload to its own file in that directory, named after the time it arrived and the event type.--execruns the command withsh -cfor each event, with the payload JSON on stdin, and stops it after 30 seconds. Its output is discarded; a failure or timeout is logged on stderr.- It listens on the loopback address only, unless
--allow-remote. When it is reachable from the network, anyone who can reach it can trigger--exec.
| Flag | What it does | Default |
|---|---|---|
--allow-remote |
Allow binding to non-loopback hosts. | false |
--dir |
Directory to write one JSON payload file per event. | — |
--exec |
Command to run with sh -c for each event, with the payload JSON on stdin; stopped after 30 seconds. |
— |
--host |
Host to bind the local webhook receiver. | 127.0.0.1 |
--max-body-bytes |
Maximum accepted request body size in bytes. | 1048576 |
--output |
Output format of the startup line: text or json. |
text |
--port |
Port to bind the local webhook receiver (0–65535). |
8787 |
asc webhooks serve --port 8787 --dir ./webhook-events --exec "./scripts/on-webhook.sh"deliveries
List webhook deliveries.
| Subcommand | What it does |
|---|---|
| deliveries links | List webhook delivery relationships. |
| deliveries redeliver | Redeliver a webhook delivery. |
asc webhooks deliveries on its own lists the deliveries of a webhook (the calls Apple made to its URL), optionally within a time range. Timestamps are ISO 8601, such as 2026-01-01T00:00:00Z. --next can’t be combined with --created-after or --created-before, and --paginate still needs --webhook-id.
| Flag | What it does | Default |
|---|---|---|
--created-after |
Only deliveries created at or after this timestamp. | — |
--created-before |
Only deliveries created before this timestamp. | — |
--webhook-id |
Webhook ID. Required unless --next is given. |
— |
asc webhooks deliveries --webhook-id "WEBHOOK_ID" --created-after "2026-01-01T00:00:00Z"deliveries links
List webhook delivery relationships.
Prints only the delivery IDs (type and ID) of a webhook, without their details. With --next, the webhook ID is read from the URL.
| Flag | What it does | Default |
|---|---|---|
--webhook-id |
Webhook ID. Required unless --next is given. |
— |
asc webhooks deliveries links --webhook-id "WEBHOOK_ID"deliveries redeliver
Redeliver a webhook delivery.
Asks Apple to send the same event to the webhook’s URL again, and prints the new delivery.
| Flag | What it does | Default |
|---|---|---|
--delivery-id |
Webhook delivery ID. Required. | — |
asc webhooks deliveries redeliver --delivery-id "DELIVERY_ID"ping
Create a webhook ping.
Asks Apple to send a test event to the webhook’s URL, and prints the ping. Check the result with asc webhooks deliveries.
| Flag | What it does | Default |
|---|---|---|
--webhook-id |
Webhook ID. Required. | — |
asc webhooks ping --webhook-id "WEBHOOK_ID"