RevKeen Docs
SDKs

Official SDKs

Typed, versioned, and generated from the RevKeen OpenAPI contract

RevKeen ships three official server-side SDKs. Every client is generated from packages/openapi/openapi.json, so the REST reference, examples, and SDK methods stay aligned.

Server-side SDKs

Choose by runtime

SDKBest forInstallRuntime
TypeScriptNode services, edge runtimes, full-stack appsnpm install @revkeen/sdkNode.js 18+, Bun, Deno, Workers
GoBackend services, workers, internal toolinggo get github.com/RevKeen/sdk-goGo 1.21+
PHPLaravel, Symfony, WordPress, PHP applicationscomposer require revkeen/sdk-phpPHP 8.1+

Shared client shape

Every SDK exposes the same resource-oriented model — resource, method, typed params.

TypeScriptGoPHP
client.customers.create({...})client.Customers.Create(ctx, params)$client->customers->create([...])
client.invoices.finalize(id)client.Invoices.Finalize(ctx, id)$client->invoices->finalize($id)
client.webhooks.verify(...)revkeen.Webhooks.Verify(...)WebhookVerifier::verify(...)
for await (…) auto-pagingiter.Next() iteratorforeach ($client->…->autoPagingList())

What every SDK gives you

  • Typed request and response — compile-time safety, autocomplete, no interface{} / any / stdClass
  • Automatic retries on 5xx, 429, network errors with exponential backoff
  • Automatic idempotency keys on safe-to-retry mutations
  • Pagination helpers (autoPagingList / iterators)
  • Webhook signature verification in one line
  • OAuth 2.1 + API-key auth — both first-class
  • Structured errors with code, status, request_id

Install quickly

npm install @revkeen/sdk
# or: pnpm add / yarn add / bun add
go get github.com/RevKeen/sdk-go
composer require revkeen/sdk-php

Versioning

SDK minor versions map 1:1 to API versions. Patch versions carry bug fixes and non-breaking additions under the same API version.

SDKPackageCompatibility docs
TypeScript@revkeen/sdkVersioning
Gogithub.com/RevKeen/sdk-goVersioning
PHPrevkeen/sdk-phpVersioning

See versioning for the deprecation policy and API compatibility rules.

Generation pipeline

  1. Source of truth: packages/openapi/openapi.json
  2. Each SDK repo has a GitHub Action that regenerates its client on every spec change
  3. A human-authored layer on top of the generated client adds idiomatic retry, pagination, webhook, and error-handling helpers
  4. Public releases are cut via semantic-release

On this page