Skip to content

Web APIs

Any web API can be a tool: a podcast directory, your shop’s back end, a weather service. Give Ombro its address and key, and every crew member can use it.

You’ll need the API’s base address and how it expects its key, both from the API’s own docs.

  1. Open Settings › Tools, choose Add a tool, then Add a web API.
  2. Give it a short name crews will know it by, such as podcasts.
  3. Enter its address and key, and choose how the key is sent: as a bearer token (most common), in a header, or in the address.
  4. Say what it’s for in a line or two. The Lead decides from this when the API helps a brief.
  5. Optionally, paste how to use it: its paths and what they return.
  6. Answer Can it change things? and Do GET requests only look things up?

A role gets two tools for each API:

  • api.<name>.get for lookups, which always run.
  • api.<name>.request for anything else, which follows your approval mode and may wait in Approvals.

A read-only API has one tool that takes any method as a lookup, since some APIs search with POST.

  • A role names a path, never an address. Calls go only to the API’s own host and path, and redirects aren’t followed.
  • Ombro adds the key. No model ever sees it.
  • An address that isn’t https sends the key unencrypted; the app warns you.

APIs are listed under apis: in ~/.config/ombro/tools.md:

apis:
podcasts:
url: https://api.podcastlist.example/v2
key: PODCASTS_API_KEY # its name in keys.env; never the value
send_key: bearer # bearer, header:<Name> or query:<param>
about: Our podcast list. # what it's for
how_to: GET /episodes?q=… # optional: its paths
class: external # read-only, internal or external
max_calls: 30

The key itself is in secrets/keys.env. Set or change it with ombro keys set PODCASTS_API_KEY; it’s picked up on the next call, even in a running job.