> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mayar.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Retry History

> Endpoint retry your webhook history data

<RequestExample>
  ```bash Request Example theme={null}
  curl --request POST 'https://api.mayar.id/hl/v2/webhooks/retry' \
  --header 'Authorization: Bearer Paste-Your-API-Key-Here' \
  --data '{
      "webhookHistoryId": "a1b2c3d4-e5f6-4789-a012-3456789abcde"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json Response Example 200 theme={null}
  {
    "statusCode": 200,
    "messages": "success"
  }
  ```
</ResponseExample>

Endpoint:

<CodeGroup>
  ```Production Production theme={null}
  https://api.mayar.id/hl/v2/webhooks/retry
  ```

  ```Sandbox Sandbox theme={null}
  https://api.mayar.club/hl/v2/webhooks/retry
  ```
</CodeGroup>

## Authorization

<ResponseField name="Authorization" type="string" required>
  Example:

  `Authorization | Bearer Paste-Your-API-Key-Here`
</ResponseField>

## Request Body

<ParamField path="webhookHistoryId" type="string" required>
  Unique ID for the webhook delivery history log to retry.
</ParamField>

## Response

Successful Response

### Main Structure (Root)

<ResponseField name="statusCode" type="integer">
  Status code form API.
</ResponseField>

<ResponseField name="messages" type="string">
  Status message that describes the status code.
</ResponseField>

## Errors

<ResponseField name="400 — no registered URL hook" type="object">
  Returned when no webhook URL is registered yet: `{ "statusCode": 400, "messages": "Url tidak ditemukan. Silahkan register url webhook anda terlebih dahulu." }`.
</ResponseField>

<ResponseField name="404 — Webhook history not found" type="object">
  Returned when the supplied `webhookHistoryId` does not match any record: `{ "statusCode": 404, "messages": "Webhook history not found" }`.
</ResponseField>
