# GET Webhooks

Чтение webhook endpoint, подписанных events и последних delivery attempts.

## GET /api/sandbox/webhooks

> Возвращает webhook endpoint текущего Sandbox API-ключа и последние delivery attempts.\
> \
> \`signingSecret\` в GET не возвращается; используйте \`secretPreview\` для сверки. \`Idempotency-Key\` для GET не нужен.

```json
{"openapi":"3.0.3","info":{"title":"Fundora API","version":"0.3.0"},"tags":[{"name":"get-webhooks","description":"Чтение webhook endpoint, подписанных events и последних delivery attempts."}],"servers":[{"url":"https://partner.fundora.capital","description":"Production-домен партнерского API"}],"security":[{"SandboxBearer":[]}],"components":{"securitySchemes":{"SandboxBearer":{"type":"http","scheme":"bearer","bearerFormat":"sk_sandbox"}},"schemas":{"SandboxWebhooksResponse":{"type":"object","properties":{"request_id":{"type":"string"},"idempotency_replayed":{"type":"boolean"},"success":{"type":"boolean"},"webhook":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/SandboxWebhookEndpoint"}]},"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/SandboxWebhookDelivery"}},"signingSecret":{"type":"string","description":"Полный signing secret. Возвращается только при создании endpoint или rotate_secret=true."}},"required":["request_id","success","webhook","deliveries"]},"SandboxWebhookEndpoint":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"environment":{"type":"string","enum":["sandbox"]},"url":{"type":"string","format":"uri","description":"Публичный HTTPS endpoint партнера."},"enabled":{"type":"boolean"},"events":{"type":"array","items":{"$ref":"#/components/schemas/SandboxWebhookEventType"}},"secretPreview":{"type":"string","description":"Маскированный signing secret. Полный secret возвращается только при создании/ротации."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"disabledAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","environment","url","enabled","events","secretPreview","createdAt","updatedAt","disabledAt"]},"SandboxWebhookEventType":{"type":"string","enum":["sandbox.loan_application.updated","sandbox.loan.issued","sandbox.loan.updated","sandbox.repayment.updated","sandbox.repayment.settled","sandbox.collateral.returned","sandbox.partner.updated","sandbox.webhook.test"],"description":"Тип webhook event."},"SandboxWebhookDelivery":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"eventId":{"type":"string","format":"uuid"},"eventType":{"$ref":"#/components/schemas/SandboxWebhookEventType"},"status":{"type":"string","enum":["pending","processing","delivered","retrying","failed"]},"attemptCount":{"type":"integer","minimum":0},"nextAttemptAt":{"type":"string","format":"date-time","nullable":true},"lastAttemptAt":{"type":"string","format":"date-time","nullable":true},"lastStatusCode":{"type":"integer","nullable":true},"lastError":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","eventId","eventType","status","attemptCount","createdAt","updatedAt"]},"ErrorResponse":{"type":"object","properties":{"request_id":{"type":"string","description":"Идентификатор запроса для поддержки и поиска в Logs."},"error_code":{"type":"string","description":"Формализованный код ошибки для интеграционной логики.","enum":["SANDBOX_API_KEY_REQUIRED","SANDBOX_API_KEY_INVALID","SANDBOX_API_KEY_DATABASE_REQUIRED","SANDBOX_SESSION_REQUIRED","SANDBOX_RATE_LIMIT_EXCEEDED","INVALID_REQUEST","INVALID_ACTION","INVALID_SCOPE","LOAN_NOT_FOUND","WALLET_NOT_FOUND","FLOW_CONFLICT","LIMIT_EXCEEDED","INSUFFICIENT_BALANCE","IDEMPOTENCY_KEY_REQUIRED","IDEMPOTENCY_KEY_CONFLICT","IDEMPOTENCY_KEY_IN_PROGRESS","DATABASE_UNAVAILABLE","INTERNAL_ERROR"]},"error":{"type":"string","description":"Человекочитаемое описание ошибки. Не используйте его для интеграционной логики, для этого есть error_code."}},"required":["request_id","error_code","error"]}},"responses":{"Unauthorized":{"description":"Sandbox API-ключ отсутствует или недействителен","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"TooManyRequests":{"description":"Превышен Sandbox API rate limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/api/sandbox/webhooks":{"get":{"operationId":"getSandboxWebhooks","tags":["get-webhooks"],"summary":"GET /api/sandbox/webhooks","responses":{"200":{"description":"Webhook endpoint и delivery attempts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxWebhooksResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"description":"Возвращает webhook endpoint текущего Sandbox API-ключа и последние delivery attempts.\n\n`signingSecret` в GET не возвращается; используйте `secretPreview` для сверки. `Idempotency-Key` для GET не нужен."}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fundora.capital/api-sandbox/get-webhooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
