Skip to content

feat(api): add api keys and branch api#129

Merged
elitan merged 2 commits into
mainfrom
codex/6e6c
May 26, 2026
Merged

feat(api): add api keys and branch api#129
elitan merged 2 commits into
mainfrom
codex/6e6c

Conversation

@elitan
Copy link
Copy Markdown
Owner

@elitan elitan commented May 25, 2026

Summary

  • add API key creation, listing, and revocation
  • add bearer auth for /api/v1
  • add sync branch HTTP API with OpenAPI metadata
  • update branch UI flows to use sync branch calls and return connection strings on create

API routes, procedures, contracts

Added:

  • GET /api/v1/openapi.json
  • GET /api/v1/api-tokens
  • POST /api/v1/api-tokens
  • DELETE /api/v1/api-tokens/{id}
  • GET /api/v1/branches
  • POST /api/v1/branches
  • GET /api/v1/branches/{slug}
  • DELETE /api/v1/branches/{slug}
  • POST /api/v1/branches/{slug}/reset
  • PATCH /api/v1/branches/{slug}/expiry

Updated:

  • branches procedures now use slug-based sync create/delete/reset/expiry for normal branches
  • branch create returns connectionUri
  • /api/v1 accepts bearer API keys

Deleted:

  • no API routes deleted

Checks

  • bun run typecheck
  • bun run test
  • bun run web:build
  • bash -n scripts/*.sh
  • browser QA for API key create/revoke and bearer branch API

@elitan elitan merged commit a58f7db into main May 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant