Docs
Checking Raims account
Raims CLIAPI commands

raims webhooks

Manage webhook endpoints

Look up syntax, arguments, and options for each command. Use raims COMMAND --help to read the help in your terminal.

raims webhooks

Manage webhook endpoints

Shell
raims webhooks [flags]
  • --help, -h bool default: false
    • help for webhooks

Subcommands: raims webhooks create, raims webhooks delete, raims webhooks get, raims webhooks health, raims webhooks list, raims webhooks rotate-secret, raims webhooks set-pause, raims webhooks test, raims webhooks update.

raims webhooks create

Create a webhook endpoint

Shell
raims webhooks create [flags]
  • --data-file string default: empty
    • Read the JSON request body from a UTF-8 file, or '-' for stdin
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --events stringArray default: empty
    • Set JSON body field events (array<string>, repeat the option for each item, required in the body)
  • --help, -h bool default: false
    • help for create
  • --idempotency-key string default: empty
    • Reuse this optional idempotency key when retrying the same request
  • --is-active bool default: false
    • Set JSON body field is_active (boolean)
  • --name string default: empty
    • Set JSON body field name (string, required in the body)
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)
  • --url string default: empty
    • Set JSON body field url (string, required in the body)

Command example

Shell
raims --profile PROFILE --output json webhooks create --data-file request.json --dry-run
raims webhooks create --events="charge.paid" --name="Pedidos pagos" --url="https://webhooks.example.com/raims" --dry-run

raims webhooks delete

Delete a webhook endpoint

Shell
raims webhooks delete WEBHOOK_ID [flags]
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for delete
  • --idempotency-key string default: empty
    • Reuse this optional idempotency key when retrying the same request
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

Command example

Shell
raims --profile PROFILE --output json webhooks delete WEBHOOK_ID --dry-run

raims webhooks get

Get a webhook endpoint

Shell
raims webhooks get WEBHOOK_ID [flags]
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for get
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

Command example

Shell
raims --profile PROFILE --output json webhooks get WEBHOOK_ID --dry-run

raims webhooks health

Get webhook delivery failures

Shell
raims webhooks health WEBHOOK_ID [flags]
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for health
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

Command example

Shell
raims --profile PROFILE --output json webhooks health WEBHOOK_ID --dry-run

raims webhooks list

List webhook endpoints

Shell
raims webhooks list [flags]
  • --after string default: empty
    • Read after this opaque cursor (cannot be combined with --before)
  • --all bool default: false
    • Read all pages as separate results (JSON Lines with --output json)
  • --before string default: empty
    • Read before this opaque cursor (cannot be combined with --after)
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for list
  • --max-pages int default: 100
    • Maximum pages to read with --all (1-10000)
  • --page-size int64 default: 10
    • Results per page (the API normalizes the requested size)
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

Command example

Shell
raims --profile PROFILE --output json webhooks list --dry-run

raims webhooks rotate-secret

Rotate a webhook signing secret

Shell
raims webhooks rotate-secret WEBHOOK_ID [flags]
  • --data-file string default: empty
    • Read the JSON request body from a UTF-8 file, or '-' for stdin
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --grace-period-seconds integer default: 0
    • Set JSON body field grace_period_seconds (integer)
  • --help, -h bool default: false
    • help for rotate-secret
  • --idempotency-key string default: empty
    • Reuse this optional idempotency key when retrying the same request
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

Command example

Shell
raims --profile PROFILE --output json webhooks rotate-secret WEBHOOK_ID --data-file request.json --dry-run
raims webhooks rotate-secret WEBHOOK_ID --grace-period-seconds=86400 --dry-run

raims webhooks set-pause

Pause or resume webhook deliveries using a JSON request

Shell
raims webhooks set-pause WEBHOOK_ID [flags]
  • --data-file string default: empty
    • Read the JSON request body from a UTF-8 file, or '-' for stdin
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for set-pause
  • --idempotency-key string default: empty
    • Reuse this optional idempotency key when retrying the same request
  • --is-paused bool default: false
    • Set JSON body field is_paused (boolean, required in the body)
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

Command example

Shell
raims --profile PROFILE --output json webhooks set-pause WEBHOOK_ID --data-file request.json --dry-run
raims webhooks set-pause WEBHOOK_ID --is-paused=true --dry-run

raims webhooks test

Request a test event for a webhook endpoint

Shell
raims webhooks test WEBHOOK_ID [flags]
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --help, -h bool default: false
    • help for test
  • --idempotency-key string default: empty
    • Reuse this optional idempotency key when retrying the same request
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)

Command example

Shell
raims --profile PROFILE --output json webhooks test WEBHOOK_ID --dry-run

raims webhooks update

Update a webhook endpoint

Shell
raims webhooks update WEBHOOK_ID [flags]
  • --data-file string default: empty
    • Read the JSON request body from a UTF-8 file, or '-' for stdin
  • --dry-run bool default: false
    • Validate and preview the request without credentials or network access
  • --events stringArray default: empty
    • Set JSON body field events (array<string>, repeat the option for each item)
  • --help, -h bool default: false
    • help for update
  • --idempotency-key string default: empty
    • Reuse this optional idempotency key when retrying the same request
  • --is-active bool default: false
    • Set JSON body field is_active (boolean)
  • --name string default: empty
    • Set JSON body field name (string)
  • --show-headers bool default: false
    • Show public response headers without credentials or cookies
  • --timeout duration default: 1m0s
    • Total request timeout, including retries (for example 30s or 2m)
  • --url string default: empty
    • Set JSON body field url (string)

Command example

Shell
raims --profile PROFILE --output json webhooks update WEBHOOK_ID --data-file request.json --dry-run
raims webhooks update WEBHOOK_ID --events="charge.paid" --events="refund.completed" --dry-run