raims webhooks
Gerencie os webhooks.
Do comando ao resultado
Cadastre somente o destino autorizado da integração e proteja o segredo de assinatura retornado. Consulta de saúde, pedido de teste, pausa e rotação são ações independentes.
O perfil e a credencial precisam estar configurados para as consultas reais.
Com chave de API, a chave determina empresa e ambiente. --environment
seleciona o ambiente somente no OAuth.
Revise o cadastro
Shellraims webhooks create --name "Pedidos pagos" --url https://webhooks.example.com/raims --events charge.paid --dry-runTroque a URL ilustrativa pelo seu destino e confira os eventos. Para cadastrar, use o perfil correto após remover
--dry-run; guardedata.ide proteja o segredo fora dos logs.Consulte a saúde
Shellraims --profile sandbox --output json webhooks health WEBHOOK_IDLeia o status e o histórico de sucesso/falha disponível. Um pedido de
testaceito também pode ficar pendente; confira o resultado no destino.Prepare a retomada
Shellraims webhooks set-pause WEBHOOK_ID --is-paused=false --dry-runfalsefoi informado explicitamente e entra no corpo. A prévia não retoma entregas; faça o envio real somente quando o destino estiver pronto.Planeje a rotação
Shellraims webhooks rotate-secret WEBHOOK_ID --grace-period-seconds 86400 --dry-runRevise a convivência com o segredo anterior antes de solicitar a troca. No envio real, incorpore o novo segredo no verificador e respeite
previous_secret_expires_at; não imprima o segredo em logs compartilhados.
Escolha o comando
| Comando | Finalidade |
|---|---|
raims webhooks create | Cadastre um webhook. |
raims webhooks delete | Exclua um webhook. |
raims webhooks get | Consulte um webhook. |
raims webhooks health | Consulte as falhas de entrega do webhook. |
raims webhooks list | Liste os webhooks. |
raims webhooks rotate-secret | Rotacione o segredo de assinatura de um webhook. |
raims webhooks set-pause | Pause ou retome as entregas de webhook com uma requisição JSON. |
raims webhooks test | Solicite um evento de teste para um webhook. |
raims webhooks update | Atualize um webhook. |
As prévias abaixo usam --dry-run e não enviam a requisição. Substitua os placeholders e confira o resultado antes de enviar uma escrita.
Campos de corpo, filtros e headers só são enviados quando informados. Os padrões das opções de execução não preenchem campos da API.
raims webhooks
Gerencie os webhooks.
raims webhooks [flags]Opções de execução
--help,-hboolpadrão: false- Exibe a ajuda de webhooks.
Consulte as opções globais.
Subcomandos: 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
Cadastre um webhook.
raims webhooks create [flags]Ambientes OAuth: Sandbox, Production. Respostas de sucesso: 201.
Exemplo 1
raims --profile PROFILE --output json webhooks create --data-file request.json --dry-runExemplo 2
raims webhooks create --events="charge.paid" --name="Pedidos pagos" --url="https://webhooks.example.com/raims" --dry-runO trecho abaixo mostra o conteúdo de data no CLI. O envelope também informa status_code e o request_id recebido.
Criar um webhook
{
"id": "whk_1AbXiWSrsCBoaTg47OcMzC",
"name": "Pedidos pagos",
"url": "https://webhooks.example.com/raims",
"events": [
"charge.paid"
],
"is_active": true,
"disabled_reason": null
}Campos do corpo
--eventsstringArrayobrigatório no corpo enviado somente se informado- Códigos dos eventos que este destino deve receber. Consulte o catálogo de eventos disponíveis. Repita a opção para cada item.
--is-activeboolenviado somente se informado- Define se o destino pode receber eventos após o cadastro.
--namestringobrigatório no corpo enviado somente se informado- Nome para identificar o destino.
--urlstringobrigatório no corpo enviado somente se informado- URL HTTPS que recebe os eventos. Use a porta padrão 443 e um endereço público externo à Raims.
Headers da requisição
--idempotency-keystringenviado somente se informado- Reutilize esta chave de idempotência opcional ao repetir a mesma requisição.
Opções de execução
--data-filestringpadrão: vazio- Leia o corpo JSON de um arquivo UTF-8 ou use '-' para stdin.
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--help,-hboolpadrão: false- Exibe a ajuda de create.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
Consulte as opções globais.
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.raims webhooks delete
Exclua um webhook.
raims webhooks delete WEBHOOK_ID [flags]Ambientes OAuth: Sandbox, Production. Respostas de sucesso: 204.
Exemplo
raims --profile PROFILE --output json webhooks delete WEBHOOK_ID --dry-runHeaders da requisição
--idempotency-keystringenviado somente se informado- Reutilize esta chave de idempotência opcional ao repetir a mesma requisição.
Opções de execução
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--help,-hboolpadrão: false- Exibe a ajuda de delete.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
Consulte as opções globais.
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.raims webhooks get
Consulte um webhook.
raims webhooks get WEBHOOK_ID [flags]Ambientes OAuth: Sandbox, Production. Respostas de sucesso: 200.
Exemplo
raims --profile PROFILE --output json webhooks get WEBHOOK_ID --dry-runO trecho abaixo mostra o conteúdo de data no CLI. O envelope também informa status_code e o request_id recebido.
Recuperar um webhook
{
"id": "whk_1AbXiWSrsCBoaTg47OcMzC",
"name": "Pedidos pagos",
"url": "https://webhooks.example.com/raims",
"events": [
"charge.paid"
],
"is_active": true,
"disabled_reason": null
}Opções de execução
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--help,-hboolpadrão: false- Exibe a ajuda de get.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
Consulte as opções globais.
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.raims webhooks health
Consulte as falhas de entrega do webhook.
raims webhooks health WEBHOOK_ID [flags]Ambientes OAuth: Sandbox, Production. Respostas de sucesso: 200.
Exemplo
raims --profile PROFILE --output json webhooks health WEBHOOK_ID --dry-runO trecho abaixo mostra o conteúdo de data no CLI. O envelope também informa status_code e o request_id recebido.
Destino com falhas há uma hora
{
"status": "failing",
"webhook_id": "whk_1AbXiWSrsCBoaTg47OcMzC",
"first_failure_at": 1792281600,
"last_failure_at": 1792285140,
"last_success_at": 1792278000,
"failure_duration_seconds": 3600
}Opções de execução
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--help,-hboolpadrão: false- Exibe a ajuda de health.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
Consulte as opções globais.
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.raims webhooks list
Liste os webhooks.
raims webhooks list [flags]Ambientes OAuth: Sandbox, Production. Respostas de sucesso: 200.
Exemplo
raims --profile PROFILE --output json webhooks list --dry-runO trecho abaixo mostra o conteúdo de data no CLI. O envelope também informa status_code e o request_id recebido.
Listar webhooks
{
"list": [
{
"id": "whk_1AbXiWSrsCBoaTg47OcMzC",
"name": "Pedidos pagos",
"url": "https://webhooks.example.com/raims",
"events": [
"charge.paid"
],
"is_active": true,
"disabled_reason": null,
"disabled_at": null,
"previous_secret_expires_at": null,
"created_at": 1792281600,
"updated_at": 1792281600,
"is_paused": false,
"paused_at": null
}
],
"page": {
"page_size": 10,
"has_next": false,
"has_previous": false,
"next_after": null,
"previous_before": null
}
}Filtros de consulta
--afterstringenviado somente se informado- Consulte após este cursor opaco. Não combine com --before.
--beforestringenviado somente se informado- Consulte antes deste cursor opaco. Não combine com --after.
--page-sizeint64enviado somente se informado- Quantidade de resultados por página. A API ajusta o tamanho solicitado.
Opções de execução
--allboolpadrão: false- Leia todas as páginas como resultados separados. Com --output json, a saída usa JSON Lines.
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--help,-hboolpadrão: false- Exibe a ajuda de list.
--max-pagesintpadrão: 100- Limite de páginas com --all, entre 1 e 10000.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
Consulte as opções globais.
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.raims webhooks rotate-secret
Rotacione o segredo de assinatura de um webhook.
raims webhooks rotate-secret WEBHOOK_ID [flags]Ambientes OAuth: Sandbox, Production. Respostas de sucesso: 200.
Exemplo 1
raims --profile PROFILE --output json webhooks rotate-secret WEBHOOK_ID --data-file request.json --dry-runExemplo 2
raims webhooks rotate-secret WEBHOOK_ID --grace-period-seconds=86400 --dry-runO trecho abaixo mostra o conteúdo de data no CLI. O envelope também informa status_code e o request_id recebido.
Rotacionar o segredo de assinatura
{
"id": "whk_1AbXiWSrsCBoaTg47OcMzC",
"secret_key": "whsec_ExampleOnlyDoNotUseThisValueAsASecret",
"previous_secret_expires_at": 1792368000
}Campos do corpo
--grace-period-secondsintegerenviado somente se informado- Período em que o segredo anterior pode continuar assinando envios. Zero gera um novo segredo e encerra a validade dos segredos anteriores, inclusive durante uma transição ativa. Requisições já autorizadas ou em andamento podem chegar com a assinatura anterior.
Headers da requisição
--idempotency-keystringenviado somente se informado- Reutilize esta chave de idempotência opcional ao repetir a mesma requisição.
Opções de execução
--data-filestringpadrão: vazio- Leia o corpo JSON de um arquivo UTF-8 ou use '-' para stdin.
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--help,-hboolpadrão: false- Exibe a ajuda de rotate-secret.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
Consulte as opções globais.
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.raims webhooks set-pause
Pause ou retome as entregas de webhook com uma requisição JSON.
raims webhooks set-pause WEBHOOK_ID [flags]Ambientes OAuth: Sandbox, Production. Respostas de sucesso: 200.
Exemplo 1
raims --profile PROFILE --output json webhooks set-pause WEBHOOK_ID --data-file request.json --dry-runExemplo 2
raims webhooks set-pause WEBHOOK_ID --is-paused=true --dry-runO trecho abaixo mostra o conteúdo de data no CLI. O envelope também informa status_code e o request_id recebido.
Envios pausados
{
"id": "whk_1AbXiWSrsCBoaTg47OcMzC",
"is_paused": true,
"paused_at": 1791878400
}Campos do corpo
--is-pausedboolobrigatório no corpo enviado somente se informado- Envie true para pausar os envios ou false para retomá-los. Repetir o mesmo valor preserva o estado e a data de pausa.
Headers da requisição
--idempotency-keystringenviado somente se informado- Reutilize esta chave de idempotência opcional ao repetir a mesma requisição.
Opções de execução
--data-filestringpadrão: vazio- Leia o corpo JSON de um arquivo UTF-8 ou use '-' para stdin.
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--help,-hboolpadrão: false- Exibe a ajuda de set-pause.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
Consulte as opções globais.
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.raims webhooks test
Solicite um evento de teste para um webhook.
raims webhooks test WEBHOOK_ID [flags]Ambientes OAuth: Sandbox, Production. Respostas de sucesso: 202.
HTTP 202 indica um pedido pendente. Consulte o recurso retornado antes de repetir uma escrita; o comando não aguarda a conclusão.
Exemplo
raims --profile PROFILE --output json webhooks test WEBHOOK_ID --dry-runO trecho abaixo mostra o conteúdo de data no CLI. O envelope também informa status_code e o request_id recebido.
Enviar um evento de teste
{
"event_id": "d36ffb51-e0c6-8a8f-904d-e426cc0b76bb",
"delivery_id": "46be4604-31fc-876a-bbb7-69e204ff9c14"
}Headers da requisição
--idempotency-keystringenviado somente se informado- Reutilize esta chave de idempotência opcional ao repetir a mesma requisição.
Opções de execução
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--help,-hboolpadrão: false- Exibe a ajuda de test.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
Consulte as opções globais.
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.raims webhooks update
Atualize um webhook.
raims webhooks update WEBHOOK_ID [flags]Ambientes OAuth: Sandbox, Production. Respostas de sucesso: 200.
Exemplo 1
raims --profile PROFILE --output json webhooks update WEBHOOK_ID --data-file request.json --dry-runExemplo 2
raims webhooks update WEBHOOK_ID --events="charge.paid" --events="refund.completed" --dry-runO trecho abaixo mostra o conteúdo de data no CLI. O envelope também informa status_code e o request_id recebido.
Atualizar um webhook
{
"id": "whk_1AbXiWSrsCBoaTg47OcMzC",
"name": "Pedidos pagos",
"url": "https://webhooks.example.com/raims",
"events": [
"charge.paid"
],
"is_active": true,
"disabled_reason": null
}Campos do corpo
--eventsstringArrayenviado somente se informado- Lista completa dos eventos que o destino deve receber. Ela substitui a seleção anterior. Repita a opção para cada item.
--is-activeboolenviado somente se informado- Use true para permitir envios ou false para desativar o destino.
--namestringenviado somente se informado- Novo nome do webhook.
--urlstringenviado somente se informado- Nova URL HTTPS que recebe os eventos, na porta padrão 443.
Headers da requisição
--idempotency-keystringenviado somente se informado- Reutilize esta chave de idempotência opcional ao repetir a mesma requisição.
Opções de execução
--data-filestringpadrão: vazio- Leia o corpo JSON de um arquivo UTF-8 ou use '-' para stdin.
--dry-runboolpadrão: false- Valide e apresente a requisição sem credenciais ou acesso à rede.
--help,-hboolpadrão: false- Exibe a ajuda de update.
--show-headersboolpadrão: false- Mostre os headers públicos da resposta, sem credenciais ou cookies.
--timeoutdurationpadrão: 1m0s- Prazo total da requisição, incluindo novas tentativas. Exemplos: 30s ou 2m.
Consulte as opções globais.
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.