Docs
Integrations

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

  1. Open Integrations and click Add custom integration.

  2. Fill in the form:

    FieldWhat to enter
    NameA short name, such as Datadog.
    DescriptionWhat 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 URLLink to the API reference, so the agent can look up endpoints.
    Allowed hostsThe hosts agents may call, for example api.datadoghq.com. Only these hosts can be reached.
    SecretsNames in UPPER_SNAKE case, with their values, for example DD_API_KEY and DD_APP_KEY.
    AuthenticationA header or query parameter whose value can use {{SECRET_NAME}} placeholders. For example, header DD-API-KEY = {{DD_API_KEY}}.
    RepositoriesWhich repos' tasks and chats may use it.
  3. 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.
Tip

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.