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
raims webhooks [flags]--help,-hbooldefault: false- help for webhooks
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
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
raims webhooks create [flags]--data-filestringdefault: empty- Read the JSON request body from a UTF-8 file, or '-' for stdin
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--eventsstringArraydefault: empty- Set JSON body field events (array<string>, repeat the option for each item, required in the body)
--help,-hbooldefault: false- help for create
--idempotency-keystringdefault: empty- Reuse this optional idempotency key when retrying the same request
--is-activebooldefault: false- Set JSON body field is_active (boolean)
--namestringdefault: empty- Set JSON body field name (string, required in the body)
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--urlstringdefault: empty- Set JSON body field url (string, required in the body)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Create a webhook endpoint.
POST /v1/webhooks
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.
Read the JSON request body with --data-file PATH, or --data-file - for standard input. You can also provide the body options listed below. Repeat array options for each item. Do not combine file input with body options. Only supplied fields are sent. When listed, --body-null FIELD sends an explicit null for a nullable field. Array size and uniqueness follow the endpoint contract. Objects without dedicated body options and arrays of objects use file input.
JSON body fields:
events array<string> required; allowed: "charge.created", "charge.paid", "charge.canceled", "charge.failed", "refund.requested", "refund.completed", "refund.failed"
is_active boolean optional
name string required
url string required
Nested requirements apply when the parent object is present, or for each supplied array item. Omit an optional field to leave it unspecified; null is accepted only for nullable fields.
JSON body example (save as request.json):
{
"name": "Pedidos pagos",
"url": "https://webhooks.example.com/raims",
"events": [
"charge.paid"
],
"is_active": true
}
Example values are illustrative. Replace resource IDs and review the request before sending it.Command example
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-runraims webhooks delete
Delete a webhook endpoint
raims webhooks delete WEBHOOK_ID [flags]--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for delete
--idempotency-keystringdefault: empty- Reuse this optional idempotency key when retrying the same request
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Delete a webhook endpoint.
DELETE /v1/webhooks/{webhook_id}
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.Command example
raims --profile PROFILE --output json webhooks delete WEBHOOK_ID --dry-runraims webhooks get
Get a webhook endpoint
raims webhooks get WEBHOOK_ID [flags]--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for get
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Get a webhook endpoint.
GET /v1/webhooks/{webhook_id}
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.Command example
raims --profile PROFILE --output json webhooks get WEBHOOK_ID --dry-runraims webhooks health
Get webhook delivery failures
raims webhooks health WEBHOOK_ID [flags]--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for health
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Get webhook delivery failures.
GET /v1/webhooks/{webhook_id}/health
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.Command example
raims --profile PROFILE --output json webhooks health WEBHOOK_ID --dry-runraims webhooks list
List webhook endpoints
raims webhooks list [flags]--afterstringdefault: empty- Read after this opaque cursor (cannot be combined with --before)
--allbooldefault: false- Read all pages as separate results (JSON Lines with --output json)
--beforestringdefault: empty- Read before this opaque cursor (cannot be combined with --after)
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for list
--max-pagesintdefault: 100- Maximum pages to read with --all (1-10000)
--page-sizeint64default: 10- Results per page (the API normalizes the requested size)
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
List webhook endpoints.
GET /v1/webhooks
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.Command example
raims --profile PROFILE --output json webhooks list --dry-runraims webhooks rotate-secret
Rotate a webhook signing secret
raims webhooks rotate-secret WEBHOOK_ID [flags]--data-filestringdefault: empty- Read the JSON request body from a UTF-8 file, or '-' for stdin
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--grace-period-secondsintegerdefault: 0- Set JSON body field grace_period_seconds (integer)
--help,-hbooldefault: false- help for rotate-secret
--idempotency-keystringdefault: empty- Reuse this optional idempotency key when retrying the same request
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Rotate a webhook signing secret.
POST /v1/webhooks/{webhook_id}/rotate_secret
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.
Read the JSON request body with --data-file PATH, or --data-file - for standard input. You can also provide the body options listed below. Repeat array options for each item. Do not combine file input with body options. Only supplied fields are sent. When listed, --body-null FIELD sends an explicit null for a nullable field. Array size and uniqueness follow the endpoint contract. Objects without dedicated body options and arrays of objects use file input.
JSON body fields:
grace_period_seconds integer optional
Nested requirements apply when the parent object is present, or for each supplied array item. Omit an optional field to leave it unspecified; null is accepted only for nullable fields.
JSON body example (save as request.json):
{
"grace_period_seconds": 86400
}
Example values are illustrative. Replace resource IDs and review the request before sending it.Command example
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-runraims webhooks set-pause
Pause or resume webhook deliveries using a JSON request
raims webhooks set-pause WEBHOOK_ID [flags]--data-filestringdefault: empty- Read the JSON request body from a UTF-8 file, or '-' for stdin
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for set-pause
--idempotency-keystringdefault: empty- Reuse this optional idempotency key when retrying the same request
--is-pausedbooldefault: false- Set JSON body field is_paused (boolean, required in the body)
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Pause or resume webhook deliveries using a JSON request.
PATCH /v1/webhooks/{webhook_id}/pause
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.
Read the JSON request body with --data-file PATH, or --data-file - for standard input. You can also provide the body options listed below. Repeat array options for each item. Do not combine file input with body options. Only supplied fields are sent. When listed, --body-null FIELD sends an explicit null for a nullable field. Array size and uniqueness follow the endpoint contract. Objects without dedicated body options and arrays of objects use file input.
JSON body fields:
is_paused boolean required
Nested requirements apply when the parent object is present, or for each supplied array item. Omit an optional field to leave it unspecified; null is accepted only for nullable fields.
JSON body example (save as request.json):
{
"is_paused": true
}
Example values are illustrative. Replace resource IDs and review the request before sending it.Command example
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-runraims webhooks test
Request a test event for a webhook endpoint
raims webhooks test WEBHOOK_ID [flags]--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--help,-hbooldefault: false- help for test
--idempotency-keystringdefault: empty- Reuse this optional idempotency key when retrying the same request
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Request a test event for a webhook endpoint.
POST /v1/webhooks/{webhook_id}/test
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.
HTTP 202 means the request is pending. Inspect the returned resource before repeating an operation; this command does not wait for completion.Command example
raims --profile PROFILE --output json webhooks test WEBHOOK_ID --dry-runraims webhooks update
Update a webhook endpoint
raims webhooks update WEBHOOK_ID [flags]--data-filestringdefault: empty- Read the JSON request body from a UTF-8 file, or '-' for stdin
--dry-runbooldefault: false- Validate and preview the request without credentials or network access
--eventsstringArraydefault: empty- Set JSON body field events (array<string>, repeat the option for each item)
--help,-hbooldefault: false- help for update
--idempotency-keystringdefault: empty- Reuse this optional idempotency key when retrying the same request
--is-activebooldefault: false- Set JSON body field is_active (boolean)
--namestringdefault: empty- Set JSON body field name (string)
--show-headersbooldefault: false- Show public response headers without credentials or cookies
--timeoutdurationdefault: 1m0s- Total request timeout, including retries (for example 30s or 2m)
--urlstringdefault: empty- Set JSON body field url (string)
--colorstringdefault: auto- Terminal colors: auto, on or off (JSON and completion stay uncolored)
--debugbooldefault: false- Write diagnostic JSON events to stderr without credentials or command arguments
--environmentstringdefault: empty- Select sandbox or production for OAuth or an OAuth dry run; API keys determine their own environment
--mapstringdefault: empty- List the command tree without executing a command: tree, compact, paths or json
--no-inputbooldefault: false- Disable interactive prompts (also enforced in CI and without a terminal)
--output,-ostringdefault: text- Output format: text or json
--profilestringdefault: empty- Use a profile for this command (overrides RAIMS_PROFILE and the saved default)
Update a webhook endpoint.
PATCH /v1/webhooks/{webhook_id}
Uses https://api.raims.com and the credential referenced by the selected profile. The API validates the credential's company, environment and permissions. API keys determine their own environment; --environment is available only with OAuth.
Use --dry-run to validate and preview the request without reading a profile, loading credentials or contacting the API. Add --environment to preview an OAuth request; without it, the preview uses API-key authentication and has no environment header.
OAuth environments accepted by this operation: Sandbox, Production.
Read the JSON request body with --data-file PATH, or --data-file - for standard input. You can also provide the body options listed below. Repeat array options for each item. Do not combine file input with body options. Only supplied fields are sent. When listed, --body-null FIELD sends an explicit null for a nullable field. Array size and uniqueness follow the endpoint contract. Objects without dedicated body options and arrays of objects use file input.
JSON body fields:
events array<string> optional
is_active boolean optional
name string optional
url string optional
Nested requirements apply when the parent object is present, or for each supplied array item. Omit an optional field to leave it unspecified; null is accepted only for nullable fields.
JSON body example (save as request.json):
{
"events": [
"charge.paid",
"refund.completed"
]
}
Example values are illustrative. Replace resource IDs and review the request before sending it.Command example
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