Skip to main content
bunny api sends a raw HTTP request to any bunny.net API endpoint with authentication handled automatically via your configured API key. It’s useful for calling endpoints the CLI doesn’t expose directly, scripting, and exploring the API.

Paths and methods

  • The method is case-insensitive (get and GET both work).
  • Paths are relative to https://api.bunny.net.
  • See the API Reference for a complete list of endpoints.

Request body

You can pass a JSON body three ways:
  1. Inline with --body:
  2. From stdin:
  3. From a file via shell redirection:

Tip: inspect requests

Use --verbose to print the full request URL, headers, and raw response. Handy when exploring an endpoint or debugging auth.