BrandVox AI Documentation

Use with AI agents

Let Claude Code, Codex, Cursor or Gemini CLI call the BrandVox API for you

Use with AI agents

What it is: a way to let your AI coding agent use BrandVox for you. You ask in plain words. The agent calls the BrandVox API with curl, using your API key.

Where it runs: on your computer, inside the agent you already use, such as Claude Code, Codex, Cursor or Gemini CLI. The agent runs curl in your terminal. The key stays in an environment variable on your computer.

Who uses it and when: anyone who works with an AI coding agent. Typical moment: you are building a page and need an on-brand image or a post without leaving your editor.

Set it up

Create a key for the agent

Create an API key just for the agent. A good start is Custom access with Content: Read & write, the workspace role Member only, and an expiration date.

Put the key in an environment variable

In the terminal where you start the agent:

export BRANDVOX_API_KEY="bvx_..."

To keep it for every new terminal, add that line to your shell profile, for example ~/.zshrc on macOS. Then start the agent from that terminal, so it can read the variable.

Never paste the key into the chat with the agent. Chats can be saved and sent to the agent's provider. If a key ever appears in a chat, revoke it and create a new one.

Point the agent to the API docs

Give the agent the link to this documentation and tell it where the key is. For example:

Read https://brandvoxai.com/docs/developers/api. Use curl with the key in $BRANDVOX_API_KEY, and never print the key. Generate a 16:9 hero image of a latte on a marble table in our brand style, wait until it is done and give me the image URL.

The docs give the agent what it needs: whoami to find your workspace id, the call that starts the image, and the poll-flow call that fetches the result.

Good to know

  • Most agents ask before they run a command. Read the curl command before you approve it.
  • What the agent creates uses your workspace credits, the same as the dashboard.
  • The key limits what the agent can do. A Member only key with Content access can make images and posts, and it cannot change your team or your support agents.
  • To stop the agent's access, revoke its key in Settings → API keys. It stops working immediately.
Use with AI agents