API referenceSections

Push and pull request webhook from GitHub, GitLab, Gitea or Bitbucket

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/hooks/git/{id} may answer 202

Push and pull request webhook from GitHub, GitLab, Gitea or Bitbucket (ADR 0027, 0160)

Signed as the connected provider signs: GitHub X-Hub-Signature-256, GitLab X-Gitlab-Token, Gitea X-Gitea-Signature (or X-Hub-Signature-256), Bitbucket X-Hub-Signature (sha256=). A delivery id seen before (X-GitHub-Delivery, X-Gitlab-Event-UUID, X-Gitea-Delivery, X-Request-UUID) answers duplicate and changes nothing.

No authentication.

Parameters

NameInTypeRequiredDescription
idpathstringrequired

Request body

required

Content type: application/json

object
Example
{}

Responses

202 What the delivery caused

Content type: application/json

object
  • action string required

    pong, ignored, ignored_fork, duplicate, already_deployed, deploying, preview_updating, preview_removing, or preview_refused:<code>

  • commit string optional
  • preview string optional
Example
{
  "action": "string",
  "commit": "string",
  "preview": "string"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required