v7
latestOpenAPI 3.1.02026-08-06211328764.1 KBModels
Rotate commit signing key
Rotate the commit signing keypair for a GitHub App connection and return the git configuration with the new commitSigningPublicKey to register on the committer’s GitHub user. Omni mints a fresh Ed25519 keypair unless signingPrivateKey supplies your own (with signingKeyPassphrase when encrypted), enabling zero-downtime rotation: register the matching public key on GitHub first, then set it here. The committer identity can be changed in the same call, so signing can be moved to a different GitHub user in one step. Commits already signed with the old key stay Verified only while the old public key remains registered on GitHub. Only valid for github_app auth.
post/api/v1/models/{modelId}/git/rotate-signing-key
Path parameters
modelIdstring uuid required
Model UUID
Example:123e4567-e89b-12d3-a456-426614174000
Model UUID
Request body
Example request
{
"commitSigningCommitterEmail": "omni-bot@example.com",
"commitSigningCommitterName": "Omni Bot"
}Response
Signing key rotated; response includes the new public key
Example response
{
"authMethod": "ssh",
"baseBranch": "main",
"cloneUrl": "git@github.com:org/repo.git",
"commitSigningCommitterEmail": "omni-bot@example.com",
"commitSigningCommitterName": "Omni Bot",
"commitSigningPublicKey": "ssh-ed25519 AAAA...",
"gitServiceProvider": "github",
"githubAppInstallationId": "12345678",
"modelPath": "omni/my_model",
"publicKey": "ssh-ed25519 AAAA...",
"requirePullRequest": "users-only",
"webUrl": "https://github.com/org/repo",
"webhookUrl": "https://app.omni.co/api/webhooks/model/..."
}