Integrations

Overview

Discover the LLM providers and GitHub installations connected to your organization.

Integrations are the third-party accounts (LLM providers, GitHub installations) your organization has connected to Nairi. They are the backing identity an agent uses when it talks to an external API.

The integrations API is read-only on the public API surface (except for renaming an LLM integration). New connections are added from the Nairi dashboard — install the GitHub App, paste an Anthropic API key, etc. — and this API exposes the IDs you need to attach those integrations to agents.

Why these endpoints exist

When you attach a resource to an agent via POST /agents/{agent_id}/resources, three of the entity_type values point at integrations:

Without these endpoints there is no way to discover the IDs that the resource-assignment endpoint requires.

Endpoint summary

EndpointPurpose
GET /integrations/llmList LLM provider integrations (Anthropic, OpenCode, Codex, system-free).
PATCH /integrations/llm/{id}Rename an LLM integration.
GET /integrations/githubList installed GitHub Apps (organization-level).
GET /integrations/github-reposList GitHub repositories connected to your org. Use these IDs as entity_id when assigning a github_repository_integration.
GET /modelsList the LLM catalog (model slugs + pricing). Use these slugs as entity_id when assigning an llm_model.

When to use it

  • Build an automated agent provisioning pipeline. Programmatically discover available LLM integrations + repos, then assemble agents without clicking through the dashboard.
  • Audit which third-party accounts your org has connected. A simple GET /integrations/llm + GET /integrations/github gives you a complete snapshot.

On this page