Models
Rotate webhook secret
Changed onRotate the pull-request webhook signing secret and return the git configuration with the new webhookSecret, so the read → rotate → re-apply lifecycle can be scripted. Takes no request body. The response is the only place the new secret is returned; read it back later with GET /api/v1/models/{modelId}/git?include=webhookSecret. The old secret stops validating immediately, so webhook deliveries fail signature verification until the new value is set in the git provider. Models that share a git repository share one secret — rotating through any of them invalidates it for all.
post/api/v1/models/{modelId}/git/rotate-webhook-secret
Request
- Base URLhttps://omniapp.co (the document declares no server; this is the origin it was published from)
- URLhttps://omniapp.co/api/v1/models/{modelId}/git/rotate-webhook-secret
- AuthHTTP bearer
Path parameters
modelIdstring uuid required
Model UUID
Example:123e4567-e89b-12d3-a456-426614174000
Response
Secret rotated; response includes the new webhookSecret
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/..."
}Changes
- info
endpoint added
- info