Hawkeye Docs

API

Quickstart

Send a message with curl, JavaScript, or Python.

Embed an agent you already run, such as a Receptionist or a Garage front desk. Text, images, video, files, projects, and phone use one key. What you do not tick, the key cannot do.

1. Create a key

Settings, then API keys. Choose all agents or tick the ones this key may use. Tick capabilities, or everything. Set the request limit and, if you want one, a monthly credit cap. Copy the key. It is shown once.

2. Send a message

Send the key as a bearer token. Do not paste a real key into source you commit. Use an environment variable.

curl -s https://hawkeye.brownhawke.engineering/api/partner/v1/messages \
  -H "Authorization: Bearer $HAWKEYE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"agent_id":"receptionist","message":{"role":"user","content":"A customer is asking about an MOT tomorrow."}}'

A successful body has ok, conversation_id, agent_id, message (id, role, content, created), and credits. Send the next message with that conversation id.

3. Stream, or attach a file

POST the same JSON to /api/partner/v1/messages/stream for server-sent events. The first event is start, then delta, then done. See Streaming and Attachments.

4. Phone

Calls are enabled on this server. Continue at Phone.