Skip to main content
GET
/
v1
/
models
/
{modelId}
/
git
Get git configuration
curl --request GET \
  --url https://{instance}.omniapp.co/api/v1/models/{modelId}/git \
  --header 'Authorization: Bearer <token>'
{
  "authMethod": "ssh",
  "baseBranch": "main",
  "branchPerPullRequest": false,
  "gitFollower": false,
  "gitServiceProvider": "github",
  "modelPath": "omni/blobs_r_us",
  "publicKey": "ssh-ed25519 AAAA...",
  "requirePullRequest": "users-only",
  "cloneUrl": "git@github.com:org/repo.git",
  "webUrl": "https://github.com/org/repo",
  "webhookUrl": "https://app.omni.co/api/webhooks/model/..."
}

Documentation Index

Fetch the complete documentation index at: https://docs.omni.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

modelId
string<uuid>
required

The unique identifier of the shared model.

Query Parameters

include
enum<string>

Comma-separated list of additional fields to include in the response.

  • webhookSecret - Include the webhook secret in the response
Available options:
webhookSecret

Response

Git configuration retrieved successfully

authMethod
enum<string>

Authentication method. ssh for deploy key, https_token for deploy token/PAT.

Available options:
ssh,
https_token
Example:

"ssh"

cloneUrl
string

Clone URL of the git repository (SSH or HTTPS)

Example:

"git@github.com:org/repo.git"

baseBranch
string

The target branch for Omni pull requests.

Example:

"main"

branchPerPullRequest
boolean

If true, all pull requests will create a branch in Omni, even those created outside of the tool.

Example:

false

gitFollower
boolean

If true, the shared model is read-only and can only be updated by merging pull requests to the base branch.

Example:

false

gitServiceProvider
enum<string>

The git provider type.

  • github - GitHub
  • gitlab - GitLab
  • azure_devops - Azure DevOps
  • bitbucket - Bitbucket
Available options:
github,
gitlab,
azure_devops,
bitbucket
Example:

"github"

modelPath
string | null

Path to model files in the repository.

Example:

"omni/blobs_r_us"

publicKey

SSH public key for repository access (deploy key). Null for HTTPS token auth (authMethod: https_token).

Example:

"ssh-ed25519 AAAA..."

requirePullRequest
enum<string>

Controls when pull requests are required for changes:

  • always - Required for all changes
  • users-only - Required only for user-initiated changes
  • never - Never required
Available options:
always,
users-only,
never
Example:

"users-only"

sshUrl
string
deprecated

Deprecated. Use cloneUrl instead. SSH URL of the git repository.

Example:

"git@github.com:org/repo.git"

webUrl
string | null

Custom web URL for the git repository, or null if not set.

Example:

"https://github.com/org/repo"

webhookSecret
string

Webhook secret for signature verification. Only included if requested via ?include=webhookSecret.

webhookUrl
string

Webhook URL to configure in your git provider.

Example:

"https://app.omni.co/api/webhooks/model/..."