The pealHQ API lets your automations (release pipeline, n8n, Zapier, script) read the requests on your portal, write the announcement for a version and publish it. Rerunning the same automation updates the existing announcement instead of creating a second one.
You can share this guide with your technical team or a coding agent. The values in the examples are fictitious.
Create an API key
- Open Settings → API in the pealHQ admin.
- Give the key a name (for example “GitHub Actions release”), then click Create.
- Copy the key shown, which starts with
peal_. It is shown only once: pealHQ keeps only a fingerprint of it. - Store it in your automation’s secrets, never in the code.
A key gives access to a single workspace and acts on behalf of the team member who created it: announcements created through the API are attributed to them. It stops working as soon as this member leaves the team. Revoke a key from the same page; the effect is immediate.
Call the API
All URLs start from the address shown in Settings → API, for example:
https://pealhq.com/api/v1
Every call sends the key in the Authorization header. Request and response bodies are in JSON:
curl https://pealhq.com/api/v1/changelog \
-H "Authorization: Bearer $PEAL_API_KEY" \
-H "Accept: application/json"
Every response places the resource in a data key. The API accepts 120 calls per minute per key.
Error codes
| Code | Meaning |
|---|---|
401 | Key missing, revoked, or whose author has left the team. |
403 | Workspace suspended. |
404 | Resource not found in this workspace. |
409 | Change refused: the announcement is already published. |
422 | Invalid data. The details for each field are in errors. |
429 | Too many calls: try again after the delay given by the Retry-After header. |
Read a request
GET /requests/{id}
The identifier is the one in the request’s admin URL, …/admin/requests/{id}. It is also the link that pealHQ adds to Linear issues created or linked from triage: your automation can read it in the issue’s attachments.
{
"data": {
"id": 42,
"title": "Exporter les factures en CSV",
"description": "Nous aimerions exporter toutes les factures du mois…",
"status": "completed",
"status_label": "Livrée",
"votes_count": 18,
"comments_count": 4,
"created_at": "2026-09-02T08:15:00.000000Z",
"archived_at": null,
"merged_into_id": null,
"linear_issue": {
"identifier": "ACME-123",
"url": "https://linear.app/acme/issue/ACME-123"
},
"changelog": null,
"public_url": "https://acme.pealhq.com/requests/42",
"admin_url": "https://acme.pealhq.com/admin/requests/42"
}
}
changelog indicates the announcement the request is already attached to (id, version, status, public_url), or null.
Create or update a version
PUT /changelog/versions/{version}
The version identifies the announcement: 2.4.0, v2.4.0-beta.1 or 2026.10.08 (letters, digits, ., _, + and -, 50 characters at most). If no announcement exists for this version, it is created as a draft and the response has the 201 code. Otherwise, its content is replaced and the response has the 200 code.
| Field | Required | Description |
|---|---|---|
title | Yes | Announcement title, 3 to 160 characters. |
body | Yes | Content in Markdown, 10 to 10,000 characters. A YouTube link on its own line becomes an embedded video. |
summary | No | Summary shown in lists and emails, 10 to 300 characters. Without it, pealHQ uses the beginning of the content’s paragraphs. |
feature_request_ids | No | Identifiers of the requests shipped in this version. The list replaces the requests already linked; [] removes them all. Without this field, existing links are kept. |
auto_open_widget | No | true to open the changelog widget automatically for your users on publication. |
curl -X PUT https://pealhq.com/api/v1/changelog/versions/2.4.0 \
-H "Authorization: Bearer $PEAL_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"title": "Version 2.4 : exports CSV",
"body": "## Exports CSV\n\nExportez toutes vos factures du mois en un clic.",
"feature_request_ids": [42, 57]
}'
{
"data": {
"id": 318,
"version": "2.4.0",
"status": "draft",
"title": "Version 2.4 : exports CSV",
"summary": "Exportez toutes vos factures du mois en un clic.",
"body": "## Exports CSV\n\nExportez toutes vos factures du mois en un clic.",
"cover_url": null,
"auto_open_widget": false,
"published_at": null,
"scheduled_for": null,
"created_at": "2026-10-08T09:30:00.000000Z",
"updated_at": "2026-10-08T09:30:00.000000Z",
"public_url": "https://acme.pealhq.com/changelog#entry-318",
"admin_url": "https://acme.pealhq.com/admin/changelog",
"feature_requests": [
{ "id": 42, "title": "Exporter les factures en CSV" },
{ "id": 57, "title": "Filtrer les exports par client" }
]
}
}
public_url is the address of the announcement on your portal. It is only visible to your customers once published.
A request can only be featured in a single announcement. When a request moves to the Shipped status, pealHQ adds it to the day’s automatic draft (titled “Nouveautés du …”). By linking it to your version, the API removes it from that draft, along with the section that had been generated for it; the draft is deleted if it no longer contains anything. A section edited by hand is kept. A request already present in another published announcement is refused with the 422 code.
Find an announcement
GET /changelog/versions/{version}
GET /changelog/{id}
These return the announcement in the same format, or 404 if it does not exist.
GET /changelog?status=draft
Lists announcements, from newest to oldest, 25 per page (per_page, up to 100). The optional status filter takes draft, scheduled or published. The response contains data, links and meta, so you can follow the pagination with links.next.
Edit a draft
PATCH /changelog/{id}
Changes only the fields sent: title, summary, body, version, feature_request_ids and auto_open_widget, with the same rules as above. Use it in particular to rewrite an automatic draft or to assign it a version.
curl -X PATCH https://pealhq.com/api/v1/changelog/318 \
-H "Authorization: Bearer $PEAL_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"summary": "Les exports CSV arrivent dans la facturation."}'
A published announcement can no longer be edited through the API: any change returns 409. Replaying exactly the same content is still accepted and changes nothing, which lets you rerun an automation that has already finished. To correct a published announcement, revert it to a draft from the admin.
Publish an announcement
POST /changelog/{id}/publish
Publishes the announcement immediately on the portal and in the widget, and notifies your customers according to their notification preferences. A publication scheduled from the admin is cancelled. Publishing an announcement that is already published changes nothing, not even its date.
curl -X POST https://pealhq.com/api/v1/changelog/318/publish \
-H "Authorization: Bearer $PEAL_API_KEY" \
-H "Accept: application/json"
Example release workflow
- Your pipeline gathers the release’s Linear issues and reads, in their attachments, the
…/admin/requests/{id}links added by pealHQ. - For each identifier,
GET /requests/{id}provides the title, the description and the number of votes, which are useful for writing the announcement. PUT /changelog/versions/{version}creates or updates the draft with the title, the Markdown content and the request identifiers.- Depending on your process, a team member reviews the draft in the admin, or the pipeline calls
POST /changelog/{id}/publish. - The pipeline shares
public_urlin its release notes or on Slack.
If it fails, rerun the pipeline as is: steps 3 and 4 never create duplicates.
#!/usr/bin/env bash
set -euo pipefail
API="https://pealhq.com/api/v1"
VERSION="2.4.0"
entry=$(curl -sf -X PUT "$API/changelog/versions/$VERSION" \
-H "Authorization: Bearer $PEAL_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d @release-notes.json)
id=$(echo "$entry" | jq -r '.data.id')
curl -sf -X POST "$API/changelog/$id/publish" \
-H "Authorization: Bearer $PEAL_API_KEY" \
-H "Accept: application/json" | jq -r '.data.public_url'