Pular para o conteúdo principal
POST
/
v1
/
str
/
event-deliveries
/
{deliveryId}
/
retry
Retentar entrega de evento
curl --request POST \
  --url https://spb.sandbox.lerian.net/v1/str/event-deliveries/{deliveryId}/retry \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "<string>"
}
'
import requests

url = "https://spb.sandbox.lerian.net/v1/str/event-deliveries/{deliveryId}/retry"

payload = { "reason": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>'})
};

fetch('https://spb.sandbox.lerian.net/v1/str/event-deliveries/{deliveryId}/retry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://spb.sandbox.lerian.net/v1/str/event-deliveries/{deliveryId}/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://spb.sandbox.lerian.net/v1/str/event-deliveries/{deliveryId}/retry"

payload := strings.NewReader("{\n \"reason\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://spb.sandbox.lerian.net/v1/str/event-deliveries/{deliveryId}/retry")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://spb.sandbox.lerian.net/v1/str/event-deliveries/{deliveryId}/retry")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "attempts": [
    {
      "attemptNumber": 123,
      "attemptedAt": "<string>",
      "deliveryAttemptId": "<string>",
      "deliveryId": "<string>",
      "status": "<string>",
      "errorSummary": "<string>",
      "responseStatus": 123
    }
  ],
  "correlationId": "<string>",
  "delivery": {
    "attempts": 123,
    "createdAt": "<string>",
    "deliveryId": "<string>",
    "eventId": "<string>",
    "eventType": "<string>",
    "status": "<string>",
    "updatedAt": "<string>",
    "webhookId": "<string>",
    "lastAttemptAt": "<string>",
    "lastError": "<string>",
    "nextRetryAt": "<string>",
    "operationId": "<string>"
  }
}
{
"code": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Idempotency
string

Idempotency key (canonical).

X-Idempotency-Key
string

Idempotency key (legacy alias).

X-TTL
string

Idempotency key TTL in seconds.

Exemplo:

"86400"

Parâmetros de caminho

deliveryId
string
obrigatório

Delivery UUID.

Exemplo:

"550e8400-e29b-41d4-a716-446655440010"

Corpo

application/json
reason
string

Optional human-readable reason for the manual retry (max 512 chars), recorded for audit.

Resposta

OK

attempts
object[] | null
obrigatório

Chronological attempt history for the delivery.

correlationId
string
obrigatório

Request-scoped correlation identifier echoing X-Request-ID, for pivoting from response to trace.

Exemplo:

"550e8400-e29b-41d4-a716-446655440004"

delivery
object
obrigatório

The event delivery record.