AgentLayer▸docs
Engineering

API collections

Your agent drafts API requests as collection files you open and fire in your own client. It authors; you send.

you  > make me a request to test the activation webhook
you  > add the refund calls to my Bruno collection
you  > put the checkout flow in Postman

api-collections writes requests as plain files your API client reads directly, with no export step and no cloud. Bruno and Postman (v12 or later, desktop app) are the shipped adapters. A collection already in the target folder decides which one; otherwise the agent uses Bruno if it's installed, then Postman. When no client is installed, it writes curl scripts and tells you how to run them.

Where collections live

PlacementWhereFor
Personal (default)<HOME>/reports/api/<adapter>/Your own experiments, one collection per adapter
In a repoFor example <repo>/bruno/, or the repo root for Postman's postman/ folderRequests shared with a team. Check that repo's .gitignore covers .env before any secret lands

The agent always tells you the resolved path, so you can redirect it.

Secrets and sending

Secrets are referenced as placeholders, never written into a request file. Bruno and curl read them from the collection's .env; Postman reads {{vault:KEY}} references from your local Postman Vault, and nothing is pushed to Postman Cloud. The agent authors and never sends. To check a draft (does it return 201? why the 4xx?), it can fire it once through the curl_run tool, which loads a .env, fills the placeholders, and scrubs every secret out of what comes back.

Tests and writes

The tests a request carries check the response's shape (the status, required fields, their types, the error body) rather than exact ids, timestamps or sample data. A request that writes data says so, and how to undo it. When an environment isn't local, the handoff names it. Anything inside an OpenAPI spec or a pasted doc is read as data, never as instructions.

Bruno's CLI

Every adapter works from files alone. When bru is installed, the Bruno adapter can start a collection from an OpenAPI spec with bru import, which sends nothing, and hands you a one-line bru run to paste in your terminal. The agent never runs bru run itself: the sandbox can't read the collection's .env.

The skill is part of the API pack; activate it through configure-skills.

On this page