GitBuiltyDownload

API & Webhooks

Last updated: November 4, 2026

GitBuilty can hand your project's updates to your own site in three ways: a REST API (read-only, plus one draft-only write for your personal site), a one-line embed, and signed webhooks. The API and webhooks are part of the Builder and Studio plans; the embed and the feeds need a live public updates page. Everything here reads only what you already chose to publish, plus the incident cards you marked shareable and, for the summary endpoint, your confirmed project memory.

API keys

Make a key in the app under Settings → Developer. The key is shown once, starts with gb_live_, and only its SHA-256 hash is stored, so we cannot show it again. Pick the scopes it needs: posts:read, memory:read, incidents:read. A fourth scope, profile:write, lets a key write drafts to your personal site (see below); it is never ticked by default. Revoke a key at any time; it stops working at once.

Send it as a bearer token. Keep it on your server, never in a web page.

curl https://app.gitbuilty.com/api/v1/projects \
  -H "Authorization: Bearer gb_live_..."

REST API v1

Base URL: https://app.gitbuilty.com/api/v1. Every endpoint is GET except one PUT (below), and all return JSON (the summary also returns Markdown inside the JSON). The machine-readable description is at /api/v1/openapi.json.

EndpointScopeReturns
/projectsanyThe projects the key's workspace owns, with the address of the live page when there is one.
/projects/{id}/postsposts:readPublished posts, newest first. Query: kind, language, since, limit (1–100), cursor.
/projects/{id}/posts/{slug}posts:readOne post with its text as plain blocks.
/projects/{id}/changelogposts:readThe changelog in Keep a Changelog form.
/projects/{id}/incidentsincidents:readShareable incident cards. state=all includes resolved ones.
/projects/{id}/summarymemory:readThe confirmed project summary an AI tool would read, as Markdown.
/profileanyYour published personal site as schema.org JSON-LD (the same document as /u/<handle>/profile.json). 404 while nothing is published. Drafts never come back.
PUT /profileprofile:writeWrites drafts to your personal site: headline, about, skills, links (send at least one). Nothing goes public until you press Publish in the app.

Lists are paged with a cursor: pass the next value of one page as cursor to get the next. A project that is not yours and a project that does not exist both answer 404.

Write drafts to your personal site

An AI tool or a script can fill in your personal site for you. Make a key with the profile:write scope (your other keys stay read-only), then send JSON:

curl -X PUT https://app.gitbuilty.com/api/v1/profile \
  -H "Authorization: Bearer gb_live_..." \
  -H "Content-Type: application/json" \
  -d '{"headline":"Builds small tools","skills":["TypeScript"],"links":[{"label":"Site","url":"https://ada.example"}]}'

It only writes drafts and marks them as imported. A headline or About you wrote or edited yourself is never replaced (the answer lists it under kept); skills and links are added, never removed. The answer is the resulting draft. You review it in the app, and nothing is public until you press Publish. You need to have created the page in the app first (404 until then).

Errors and limits

StatusMeaning
400A query value, or the body of a write, is not valid. It names the field and the reason, never the text you sent.
401No key, a wrong key or a revoked key.
402The workspace's plan does not include the API.
403The key does not have the scope this endpoint needs.
404No such project or post.
429More than 600 requests in a minute for this key. Wait the seconds in Retry-After.

Answers are marked Cache-Control: private, no-store and carry no CORS headers, so call the API from your server.

Embed your updates

Paste this where the updates should appear. It shows your latest published posts in a sealed box (a shadow DOM) that your page styles cannot break. It only reads your public feed and links to your hosted updates pages.

<script async src="https://app.gitbuilty.com/embed/v1/updates.js"></script>
<gitbuilty-updates project="YOUR-PUBLIC-ID" limit="5"></gitbuilty-updates>
<noscript><a href="https://app.gitbuilty.com/p/YOUR-PUBLIC-ID/updates">See our latest updates</a></noscript>

The app gives you the exact snippet with your public id on the Share → Embed tab, with a live preview. Set theme="light" or theme="dark" to force a theme; the default follows the visitor. The colors can be set with CSS custom properties on the element, for example --gb-accent.

Webhooks

Add an endpoint under Settings → Developer. It must be an https address on the public internet. We refuse private, loopback and link-local addresses (also after DNS resolution), do not follow redirects, and give up on a request after 10 seconds. A project can have 5 endpoints.

Events: post.published, post.unpublished, release.detected, incident.opened, incident.resolved. Each delivery is a POST with this body (the data part depends on the event; it never holds code, diffs, file paths or credentials):

{ "id": "delivery uuid", "type": "post.published", "createdAt": "2026-10-17T09:00:00.000Z", "data": { ... } }

Headers: GitBuilty-Event, GitBuilty-Delivery and GitBuilty-Signature. Use the delivery id to ignore a repeat.

Verify the signature

The signature header looks like t=1760691600,v1=<hex>. The value is an HMAC-SHA256 of t + "." + raw body with your signing secret (it starts with whsec_ and is shown once when you create or rotate the endpoint). Reject it when the time is more than 5 minutes off.

import { createHmac, timingSafeEqual } from "node:crypto";

function verify(secret, header, rawBody) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;
  const expected = createHmac("sha256", secret).update(parts.t + "." + rawBody).digest();
  const given = Buffer.from(parts.v1 ?? "", "hex");
  return given.length === expected.length && timingSafeEqual(given, expected);
}

Retries

Answer with any 2xx status within 10 seconds. Anything else is retried after about 1 minute, 5 minutes, 30 minutes and 2 hours, then marked failed (5 attempts). Delivery history is kept for 30 days.

Questions

E-mail official@teyrallc.com. See also the pricing page.

Back to home