Deploy Hooks
Set up URLs that OneFive calls when your content changes so your storefront rebuilds automatically.
| Method | Path | Description |
|---|---|---|
GET | /v1/store/deploy-hooks | List deploy hooks |
POST | /v1/store/deploy-hooks | Create a deploy hook |
GET | /v1/store/deploy-hooks/{id} | Get a deploy hook |
PATCH | /v1/store/deploy-hooks/{id} | Update a deploy hook |
DELETE | /v1/store/deploy-hooks/{id} | Delete a deploy hook |
POST | /v1/store/deploy-hooks/{id}/test | Test a deploy hook |
List deploy hooks
GET /v1/store/deploy-hooksReturns a cursor-paginated list of deploy hooks configured for the store. Secrets are masked. Requires a secret key.
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 25 | |
cursor | string | - | |
fields | string | - | |
order | string | desc | Values: asc, desc |
Request
curl https://api.hydrajs.dev/v1/store/deploy-hooks \
-H "Authorization: Bearer sk_YOUR_KEY"Response 200
{
"data": [],
"pagination": {}
}Get a deploy hook
GET /v1/store/deploy-hooks/{id}Retrieves a deploy hook by ID including its trigger status and failure count. Secrets are masked. Requires a secret key.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string |
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
fields | string | - |
Request
curl https://api.hydrajs.dev/v1/store/deploy-hooks/:id \
-H "Authorization: Bearer sk_YOUR_KEY"Response 200
{
"data": {}
}Create a deploy hook
POST /v1/store/deploy-hooksCreates a deploy hook that triggers a storefront rebuild when the store is published. Supports GitHub Actions repository_dispatch and generic HTTP POST (Vercel, Netlify, Cloudflare Pages, custom). The secret is returned in full on creation only. Requires a secret key.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
type | string | Yes | Values: github_actions, http |
url | string | Yes | For github_actions: owner/repo. For http: a full HTTPS URL (e.g. Vercel, Netlify, or Cloudflare Pages deploy hook). |
secret | string | No | For github_actions: a GitHub Personal Access Token with Actions write scope. For http: an optional Bearer token. |
event_type | string | No | GitHub Actions event_type for repository_dispatch. Defaults to "rebuild". |
auto_pause_threshold | integer | No | Auto-pause after N consecutive failures. 0 disables auto-pause. |
Request
curl -X POST https://api.hydrajs.dev/v1/store/deploy-hooks \
-H "Authorization: Bearer sk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Main Storefront",
"type": "github_actions",
"url": "bg-git/BROOKSANDGRANT-QUANTUM-STOREFRONT"
}'Response 201
{
"data": {}
}Update a deploy hook
PATCH /v1/store/deploy-hooks/{id}Partially updates a deploy hook. Setting status to "active" resets the consecutive failure counter. Requires a secret key.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | |
url | string | No | |
secret | string | No | |
event_type | string | No | |
status | string | No | Values: active, paused |
auto_pause_threshold | integer | No |
Request
curl -X PATCH https://api.hydrajs.dev/v1/store/deploy-hooks/:id \
-H "Authorization: Bearer sk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Main Storefront",
"url": "bg-git/BROOKSANDGRANT-QUANTUM-STOREFRONT",
"secret": "string_value"
}'Response 200
{
"data": {}
}Delete a deploy hook
DELETE /v1/store/deploy-hooks/{id}Permanently deletes a deploy hook. The hook will no longer trigger on publish. Requires a secret key.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string |
Request
curl -X DELETE https://api.hydrajs.dev/v1/store/deploy-hooks/:id \
-H "Authorization: Bearer sk_YOUR_KEY"Test a deploy hook
POST /v1/store/deploy-hooks/{id}/testTriggers a single deploy hook immediately and returns the result. Useful for verifying the hook is configured correctly. Requires a secret key.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string |
Request
curl -X POST https://api.hydrajs.dev/v1/store/deploy-hooks/:id/test \
-H "Authorization: Bearer sk_YOUR_KEY"Response 200
{
"data": {}
}