---
title: "Register an approved GitHub repo path for Brand Kit ingest"
method: POST
path: "/brand-kit/github-connections"
---

# Register an approved GitHub repo path for Brand Kit ingest

`POST /brand-kit/github-connections`

## Request

- Base URL: `https://sendinel.ai/api/v1`
- URL: `https://sendinel.ai/api/v1/brand-kit/github-connections`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://sendinel.ai/oauth/authorize`, token URL `https://sendinel.ai/oauth/token`)

Creates or updates a project-scoped repo/path_prefix binding that the GitHub ingest endpoint uses to validate every incoming file path.

## Request body

- object
  - `repo` string, required
  - `path_prefix` string, required
  - `brand_kit_id` string, uuid, nullable

## Response `201`

Registered GitHub connection

## Other responses

- `400`: Invalid repo, path_prefix, or brand_kit_id
- `404`: Project not found

---

[API](https://skmtc.dev/sendinel/apis/sendinel-api.md) · [All operations](https://skmtc.dev/sendinel/apis/sendinel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sendinel/apis/sendinel-api/revisions/20b2c6d5616d?raw)
