Custom API integration
A custom integration gives agents access to any HTTP API you describe, such as your monitoring, error tracker or an internal service. CodeBeast keeps the credentials and adds them to each request, so the secret never reaches the task's machine.
Add a custom integration Admin only
Open Integrations and click Add custom integration.
Fill in the form:
Field What to enter Name A short name, such as Datadog. Description What the API is for and how to use it. The agent reads this, so be specific. For example: "Production monitors and traces. List monitors with GET /api/v1/monitor; search logs with POST /api/v2/logs/events/search." API docs URL Link to the API reference, so the agent can look up endpoints. Allowed hosts The hosts agents may call, for example api.datadoghq.com. Only these hosts can be reached.Secrets Names in UPPER_SNAKEcase, with their values, for exampleDD_API_KEYandDD_APP_KEY.Authentication A header or query parameter whose value can use {{SECRET_NAME}}placeholders. For example, headerDD-API-KEY={{DD_API_KEY}}.Repositories Which repos' tasks and chats may use it. Click Add integration.
How agents use it
When a task or chat on a repo in scope needs the API, the agent makes the request through CodeBeast. CodeBeast checks the host is allowed, swaps each {{SECRET}} placeholder for its value, and returns the response. The agent never sees the secret, and neither does anything running on the task's machine.
Good uses:
- Pulling the stack trace for a Sentry issue while fixing a bug.
- Checking a Datadog monitor or recent logs while investigating an incident with a Beastmate.
- Reading from an internal service's API while building a feature that uses it.
Use a read-only API key where the provider offers one. Agents only need to read for most tasks.
Rotate a credential
On the integration's card, click Replace credential to enter new secret values. The change applies in place, with no need to re-create the integration.
Edit or remove
Admins can edit the description, hosts and authentication from the card, or remove the integration. Members see custom integrations read-only.