Automation

Create or rotate the project's push-to-deploy secret (returned once)

post/projects/{projectId}/webhook

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/projects/{projectId}/webhook
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

projectIdstring uuid required
Example:3f2b8a4e-5c1d-4e8f-9a7b-2c6d1e0f4a5b

Response

New secret (shown once)

configuredboolean required
urlstring required
lastTriggeredAtstring nullable required

ISO-8601 timestamp

lastProvider'github' | 'gitlab' | 'bitbucket' | 'gitea' | 'null' nullable required
lastRefstring nullable required
secretstring required

Shown once: paste it as the provider's webhook secret now. Rotating replaces it immediately.

Changes

No recorded changes to this operation across all 1 revision of this API.