> For the complete documentation index, see [llms.txt](https://dev.ada-anvil.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.ada-anvil.io/quick-start-examples/delegation/delegate-drep-sh.md).

# DRep (Bash & cURL)

Learn how to delegate to a DRep using Bash, cURL, and the Anvil API.

{% @github-files/github-code-block url="<https://github.com/Cardano-Forge/anvil-api-examples/blob/main/documentation-references/delegate-drep.sh>" %}

{% hint style="success" %}
**Learn More**

For a step-by-step explanation, see the [Delegate to a DRep Guide](/guides/delegations/delegate-to-a-drep.md).
{% endhint %}
