Integrations
List GitHub repos
List the GitHub repositories your Nairi organization can access through the connected GitHub App installation. Returns repo names, IDs, and visibility.
Returns the GitHub repositories your organization has connected through any installed GitHub App. The id of each entry is what you pass as entity_id when assigning a github_repository_integration via POST /agents/{agent_id}/resources.
GET /api/public/v1/integrations/github-reposExample
curl -X GET https://api.nairi.ai/api/public/v1/integrations/github-repos \
-H "Authorization: Bearer $NAIRI_API_KEY"const res = await fetch("https://api.nairi.ai/api/public/v1/integrations/github-repos", {
headers: { Authorization: `Bearer ${process.env.NAIRI_API_KEY}` },
});
const repos = await res.json();require "net/http"
require "json"
require "uri"
uri = URI("https://api.nairi.ai/api/public/v1/integrations/github-repos")
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer #{ENV['NAIRI_API_KEY']}"
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |h| h.request(req) }
repos = JSON.parse(res.body)import os
import requests
res = requests.get(
"https://api.nairi.ai/api/public/v1/integrations/github-repos",
headers={"Authorization": f"Bearer {os.environ['NAIRI_API_KEY']}"},
)
repos = res.json()package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.nairi.ai/api/public/v1/integrations/github-repos", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("NAIRI_API_KEY"))
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
raw, _ := io.ReadAll(res.Body)
var repos []map[string]any
json.Unmarshal(raw, &repos)
fmt.Println(repos)
}Response: 200 OK
[
{
"id": "01KGF8Y7BCCN8M1SG0VMSGRAAB",
"github_integration_id": "01KFY29B6JSXMNJ91MEDZK7CXD",
"repo_url": "https://github.com/acme-org/api",
"created_at": "2026-02-26T09:30:00.000Z",
"updated_at": "2026-02-26T09:30:00.000Z"
}
]Response fields
| Field | Type | Description |
|---|---|---|
id | string | Repository integration ULID. Pass as entity_id when assigning github_repository_integration. |
github_integration_id | string | ID of the parent GitHub App installation (see GET /integrations/github). |
repo_url | string | Full URL of the repository (https://github.com/owner/repo). |
created_at / updated_at | string | ISO 8601 timestamps. |
List GitHub integrations
List every GitHub App installation currently connected to your Nairi organization. Returns installation IDs, account logins, and repos they grant access to.
List models
List the LLM models available to your Nairi organization across all connected providers — Claude, Codex, OpenCode — with their identifiers and labels.