Skip to content

Authentication

WarmHub HTTP endpoints authenticate requests with a Bearer token in the Authorization header:

Terminal window
curl -H "Authorization: Bearer <token>" \
https://api.warmhub.ai/api/repos/myorg/myrepo/head

WarmHub accepts interactive session JWTs and personal access tokens (PATs), subject to the user’s organization and repository role.

PAT management REST endpoints such as POST /api/pats, GET /api/pats, and DELETE /api/pats/:name are not currently mounted.

Create and manage PATs with the CLI (wh token) or the SDK (client.token.*) instead. Both paths require an interactive user session. See Personal Access Tokens for the full guide.

PATs can carry resource-scoped permissions:

ScopeGrants
repo:readRead repositories, queries, shapes
repo:writeCommit writes
repo:configureSubscriptions, credentials, repo settings, action runs and notifications
repo:adminDelete, archive, visibility
org:readRead org profiles
org:configureCreate repos, manage members and org settings, attribute writes to any installed component in the org
org:adminRename, archive org

Scopes are independent. Request the specific permissions your token needs. JWT tokens do not use PAT scope narrowing, but are still limited by the user’s role.