> ## 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

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

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

Endpoint:

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

```Sandbox Sandbox theme={null}
https://api.mayar.io/hl/v2/webhooks/retry
```

## Authorization

**Authorization** `string` *required*

Example:

`Authorization | Bearer Paste-Your-API-Key-Here`

## Request Body

**webhookHistoryId** `string` *required*

Unique ID for the webhook delivery history log to retry.

## Response

Successful Response

### Main Structure (Root)

**statusCode** `integer`

Status code form API.

**messages** `string`

Status message that describes the status code.

## Errors

**400 — no registered URL hook** `object`

Returned when no webhook URL is registered yet: `{ "statusCode": 400, "messages": "Url tidak ditemukan. Silahkan register url webhook anda terlebih dahulu." }`.

**404 — Webhook history not found** `object`

Returned when the supplied `webhookHistoryId` does not match any record: `{ "statusCode": 404, "messages": "Webhook history not found" }`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.