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>'
{
  "baseBranch": "main",
  "branchPerPullRequest": false,
  "gitFollower": false,
  "gitServiceProvider": "github",
  "modelPath": "omni/blobs_r_us",
  "publicKey": "ssh-ed25519 AAAA...",
  "requirePullRequest": "users-only",
  "sshUrl": "[email protected]:org/repo.git",
  "webUrl": "https://github.com/org/repo",
  "webhookUrl": "https://app.omni.co/api/webhooks/model/..."
}

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

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
string

SSH public key for repository access (deploy key).

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

SSH URL of the git repository.

Example:

"[email protected]: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/..."