hosting

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

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

כל נקודות הקצה מסוג hosting

כל תיעוד המפתחים

אימות

נקודת קצה זו היא ציבורית. היא אינה דורשת שורת פרטי זיהוי ואינה דורשת ארגון – זהו המידע שאתרי השיווק ומנועי התשובות מבוססי ה-AI שלנו קוראים.

נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

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

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-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