# ankusa_sdk v0.6.0 - Table of Contents > Elixir client for Ankusa: receive HTTP-sink deliveries, decode queue messages, redeem claim checks, and drive the routes/admin/sources APIs. ## Pages - [ankusa_sdk](readme.md) - [Changelog](changelog.md) ## Modules - [Ankusa.SDK.Admin](Ankusa.SDK.Admin.md): The operator listener (`admin.port`, default `4002`): health, Prometheus metrics, the redacted configuration, the dead-letter queue, replay jobs, and the quarantine list. - [Ankusa.SDK.ClaimCheck](Ankusa.SDK.ClaimCheck.md): Redeem claim-check refs against a deployment's claim-check gateway (the `:claim_check` role, `claim_check.port`, default `4001`). - [Ankusa.SDK.ClaimRef](Ankusa.SDK.ClaimRef.md): A parsed claim-check ref: `urn:ankusa:claim:v1::` or the signed, expiring `urn:ankusa:claim:v2::::`, the string a queue message carries in its `"claim"` field once its body outgrows the sink's `inline_max_bytes` (see `Ankusa.SDK.Message`). - [Ankusa.SDK.Handler](Ankusa.SDK.Handler.md): What a hook consumer implements: one callback for both transports. - [Ankusa.SDK.Hook](Ankusa.SDK.Hook.md): One delivered hook: the value a handler sees, whichever transport delivered it. - [Ankusa.SDK.Idempotency](Ankusa.SDK.Idempotency.md): The idempotency key for one delivery, whichever transport delivered it. - [Ankusa.SDK.LifecycleEvent](Ankusa.SDK.LifecycleEvent.md): A lifecycle event: the CloudEvents 1.0 (structured mode) event an Ankusa instance publishes when a source or a route is created, updated or deleted, when a tenant is erased, or when the instance is restored from a backup. - [Ankusa.SDK.Message](Ankusa.SDK.Message.md): The wire format every queue-style sink publishes (`Ankusa.Sink.RabbitMQ`, `Ankusa.Sink.Kafka`, `Ankusa.Sink.NATS`, `Ankusa.Sink.Redis`), and the bridge from one of those messages to an `Ankusa.SDK.Hook`. - [Ankusa.SDK.Receiver](Ankusa.SDK.Receiver.md): A `Plug` that receives `Ankusa.Sink.Http` deliveries and hands each one to your handler module. - [Ankusa.SDK.Routes](Ankusa.SDK.Routes.md): The route-management listener (`routes.admin.port`, default `4003`): the route table the edge enforces, plus the global IP rules and a dry run that replays the guard's decision. - [Ankusa.SDK.Signature](Ankusa.SDK.Signature.md): Verify the [Standard Webhooks](https://www.standardwebhooks.com/) signature an `Ankusa.Sink.Http` sink with a `secret` adds to every delivery. - [Ankusa.SDK.Sources](Ankusa.SDK.Sources.md): The tenant-scoped source-management API: `Ankusa.Admin.Router` on `admin.port` (default `4002`) serves list/get/create/update/delete for a tenant's ingest sources. - [Ankusa.SDK.Sources.Source](Ankusa.SDK.Sources.Source.md): A stored source as the admin API reports it: identity fields plus the redacted spec. - [Ankusa.SDK.Sources.Spec](Ankusa.SDK.Sources.Spec.md): The writable fields of a source, as submitted to `PUT`/`POST`. - [Ankusa.SDK.Webhook](Ankusa.SDK.Webhook.md): The headers every receiver of Ankusa's HTTP sink needs, parsed off a request. - [Ankusa.SDK.Webhook.Headers](Ankusa.SDK.Webhook.Headers.md): The parsed `x-ankusa-*` headers of one HTTP-sink delivery, as returned by `Ankusa.SDK.Webhook.parse_headers/1`. - Exceptions - [Ankusa.SDK.AdminRejectedError](Ankusa.SDK.AdminRejectedError.md): The listener rejected the request (any other `4xx`). - [Ankusa.SDK.AdminUnavailableError](Ankusa.SDK.AdminUnavailableError.md): The listener is unreachable, answered `5xx`, returned an unfollowed redirect, or returned a non-JSON success body. Safe to retry. - [Ankusa.SDK.ClaimCheckUnavailableError](Ankusa.SDK.ClaimCheckUnavailableError.md): The gateway is unreachable, answered `408` or `429` (throttled or timed out), or answered a status other than `200` that `Ankusa.SDK.ClaimCheck.redeem/3` cannot classify as a rejection. Safe to retry. - [Ankusa.SDK.ClaimIntegrityError](Ankusa.SDK.ClaimIntegrityError.md): The sha256 of the bytes the gateway returned doesn't match the expected sha256 the queue message carries. - [Ankusa.SDK.ClaimNotFoundError](Ankusa.SDK.ClaimNotFoundError.md): The gateway returned `404`: no such object, expired by retention or never written. - [Ankusa.SDK.ClaimRejectedError](Ankusa.SDK.ClaimRejectedError.md): The gateway rejected the request (`400`, `403` — any `4xx` but `404`, `408` and `429`). - [Ankusa.SDK.InvalidClaimRefError](Ankusa.SDK.InvalidClaimRefError.md): The ref isn't a `urn:ankusa:claim:v1::` claim-check ref, or the expected sha256 isn't 64-char lowercase hex. - [Ankusa.SDK.InvalidMessageError](Ankusa.SDK.InvalidMessageError.md): The bytes aren't a valid v1 `Ankusa.Sink.Message` payload. Always `retryable: false` — the same bytes will fail the same way. - [Ankusa.SDK.InvalidRouteIdError](Ankusa.SDK.InvalidRouteIdError.md): The route id cannot be used to build a path. - [Ankusa.SDK.InvalidSignatureError](Ankusa.SDK.InvalidSignatureError.md): A delivery's Standard Webhooks signature does not verify (`Ankusa.SDK.Signature.verify/4`). Always `retryable: false`: answer `401`. - [Ankusa.SDK.MissingHookIdError](Ankusa.SDK.MissingHookIdError.md): The request carries no `x-ankusa-id` header (or an empty one), so it isn't an Ankusa HTTP-sink delivery. - [Ankusa.SDK.RoleNotEnabledError](Ankusa.SDK.RoleNotEnabledError.md): The listener returned `409 role_not_enabled`: this node does not run the role the operation needs. Ask another node; `:role` names it. - [Ankusa.SDK.RouteNotFoundError](Ankusa.SDK.RouteNotFoundError.md): The listener returned `404`: no such route. - [Ankusa.SDK.RoutesRejectedError](Ankusa.SDK.RoutesRejectedError.md): The listener rejected the request (`400` or any other non-404 `4xx`). - [Ankusa.SDK.RoutesUnavailableError](Ankusa.SDK.RoutesUnavailableError.md): The listener is unreachable, answered `5xx`, returned an unfollowed redirect, or returned a non-JSON success body. Safe to retry. - [Ankusa.SDK.SourceConflictError](Ankusa.SDK.SourceConflictError.md): `409`: a source with that name already exists (`source_exists`), or a delete found the source still has undelivered hooks (`source_has_deliveries`); the body's `"error"` says which. - [Ankusa.SDK.SourceInvalidError](Ankusa.SDK.SourceInvalidError.md): `400`: bad tenant, bad source name, or a spec the server rejected. - [Ankusa.SDK.SourceNotFoundError](Ankusa.SDK.SourceNotFoundError.md): `404`: no such source for this tenant. - [Ankusa.SDK.SourceStoreReadOnlyError](Ankusa.SDK.SourceStoreReadOnlyError.md): `409 source_store_read_only`: the deployment's source store is a static seed, so writes are impossible. - [Ankusa.SDK.SourcesUnavailableError](Ankusa.SDK.SourcesUnavailableError.md): The admin API is unreachable, timed out, or answered `5xx`. - [Ankusa.SDK.VersionMismatchError](Ankusa.SDK.VersionMismatchError.md): `GET /health` reported a version other than `expected_version`.