Runs examples for real against your account. Test keys only; kept in this tab, never stored on our side. Get a key
ZapSMTP / Docs / Click actions

Retrieve an action

GET/v1/actions/{name}

Retrieve one action from the catalogue, with its activity and where it is used.

Requires a full-access key.

Path parameters

namestringrequired
Action name, as written in data-zap-action.

Errors

restricted_api_keyHTTP 403
not_foundHTTP 404
action not found: not declared, not clicked in 30 days and used by no template or webhook
GET/v1/actions/{name}
curl 'https://zapsmtp.xyz/v1/actions/confirm_order' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "object": "action",
  "name": "confirm_order",
  "description": "Customer confirms the order from the receipt",
  "declared": true,
  "created_at": "2026-10-24T09:12:00Z",
  "updated_at": "2026-10-24T09:12:00Z",
  "clicks_7d": 42,
  "clicks_30d": 180,
  "unique_clickers_30d": 171,
  "last_click_at": "2026-10-27T08:41:05Z",
  "templates": 1,
  "webhooks": [
    "019a1c55-0d6e-7f21-8b3a-5e9d4c7b2a10"
  ]
}