# GET /v1/sandbox/triggers/{id} How a sandbox trigger ended. | Access | | | --- | --- | | Keys | secret only | | Plan | every plan | | Environment | sandbox only | | Acts for | one consumer | | While the account is suspended | works | | During a data stop | works | ## Path | Name | Type | Description | | --- | --- | --- | | `id` | string | **Required.** The trigger's ID, "trg_…", from the answer that accepted it. | ## Headers | Name | Description | | --- | --- | | `X-Client-Token` | With a publishable key: **required.** A token your server minted for the consumer with [`POST /v1/client-tokens`](create-client-token.md). | | `X-Client-Id` | With a secret key: **required.** Your own opaque ID for the consumer. | ## Answers ### 200: The trigger The answer is `{ data, meta }`; `meta` holds `requestId` and `environment`. `data` is a [SandboxTrigger](../objects.md#sandboxtrigger). ## Errors | Status | Codes | | --- | --- | | 400 | [`client_id_must_be_opaque`](../../errors/client_id_must_be_opaque.md), [`validation_failed`](../../errors/validation_failed.md) | | 401 | [`invalid_api_key`](../../errors/invalid_api_key.md), [`key_revoked`](../../errors/key_revoked.md), [`missing_api_key`](../../errors/missing_api_key.md) | | 403 | [`account_pending`](../../errors/account_pending.md), [`origin_not_allowed`](../../errors/origin_not_allowed.md), [`secret_key_in_browser`](../../errors/secret_key_in_browser.md), [`secret_key_required`](../../errors/secret_key_required.md) | | 404 | [`not_found`](../../errors/not_found.md) | | 429 | [`rate_limited`](../../errors/rate_limited.md) | | 500 | [`internal_error`](../../errors/internal_error.md), [`temporarily_unavailable`](../../errors/temporarily_unavailable.md) | Every error has the same body, and says how to fix it ([responses and errors](../../concepts/responses-and-errors.md)). ## More With the same key and `X-Client-Id`, shows how a trigger ended: - `status`: `pending`, `done` or `failed`; - `noticeId`: the ID of the notice the change produced, once `done` (the same ID as in `GET /v1/events` and in the webhook delivery); `null` for `next_digest`; - `reason`: why a `failed` trigger could not be completed ([when a trigger fails](../sandbox-triggers.md#when-a-trigger-fails)). _This page is made from the route's own declaration by `npm run openapi`. To change it, change the declaration or its explanation, never this file._