Make the deploy hook, or a new address for it
POST/ v1/ projects/ {project}/ deploy-hook
Answers the hook with url, the secret address a deploy calls. It is shown this once: only a hash is kept. When the project already has a hook, its old address stops working at once. No body.
Path parameters
project
The project's id (
prj_…).Responses
The deploy hook, with its address.
id
A prefixed ULID; the prefix names the kind (
prj_… a project, org_… an organization).project_id
A prefixed ULID; the prefix names the kind (
prj_… a project, org_… an organization).url
The address to call, with its secret. Only in the answer that makes the hook.
created_by
The person's or key's id.
created_at
A time in UTC, ISO 8601.
last_used_at
The last call that added a note; null when never called.
Example response
1{2"id": "id_01JD8Q2M4W9XK3T7B5",3"project_id": "prj_01JD8Q2M4W9XK3T7B5",4"url": "https://example.com/hooks/viakite",5"created_by": "acc_01JD8Q2M4W9XK3T7B5",6"created_at": "2026-11-21T09:30:00Z",7"last_used_at": "2026-11-21T09:30:00Z"8}