hosting

POST /v1/webhooks/git/{provider}/{repoId}

Ingest a push from a customer's git provider and deploy it.

すべての hosting エンドポイント

すべての開発者向けドキュメント

認証

このエンドポイントは公開されています。認証情報や組織情報は不要で、当社のマーケティングサイトやAI回答エンジンが読み取っているものと同じです。

このエンドポイントは組織IDを受け付けません。お使いのキーによって所属する組織がすでに特定されており、レスポンスはその組織にスコープされます。

試してみる

アングルブラケット内のすべてをご自身の値に置き換え、キーのプレースホルダーをご利用中のダッシュボードのキーに置き換えてください。

curl -X POST https://api.zinndigital.com/v1/webhooks/git/{provider}/{repoId}

ログインしていますか?ダッシュボード内のAPIコンソールでは、実際の組織IDやお客様ご自身のキーが自動入力され、ライブAPIに対してリクエストが実行されるため、実際のレスポンスを確認することができます。 API コンソールでこのエンドポイントを開く

詳細

Unauthenticated by design — the git provider holds no Zinn® credential, so the signature over the raw body is the authentication. A verified push on the branch a repository is wired to triggers a deploy of that site. ⛔ The repoId in the path identifies which connection's secret verifies the signature; it is not a permission. A request whose signature does not verify is refused before anything is read from it.

パラメータ

名前タイプ必須これがその内容です
provider (path)string<github, gitlab, bitbucket>はいThe git host that sent the push.
repoId (path)stringはいThe connected repository this push belongs to.

返信

名前タイプ必須これがその内容です
statusstring<handled, ignored, duplicate>はいhandled — acted on. ignored — a valid event of a type Zinn® does not consume. duplicate — already processed; Stripe may stop redelivering.

このエンドポイントが返すエラー

400 · 404