Management SDK
The public management client is coming soon. The current package is private, repo-owned tooling used by PokerWorks operators, the internal CLI, and the internal MCP server.
Install
The intended public package name is:
Code
The current workspace package (@pokerworks/developer-api-management-client) is private and is not
an external beta install path. Public npm distribution comes after the management API contract and
packaging pipeline are proven.
Authenticate
The client takes a service-account management token (pw_mgmt_…). Use it only from trusted
server code — never ship a management token to a browser or client app.
future public shape
apiBaseUrl defaults to https://api.pokerworks.io/api/v1. Production URLs must use HTTPS; local
development may use localhost or 127.0.0.1.
Usage
Code
The current internal method set is:
account()listProjects()createProject(body)updateProject(projectId, body)listApiKeys()createApiKey(body)revokeApiKey(keyId)usage(query)billing()auditEvents(query)listEmbedProducts()createEmbedSession(body, options)getEmbedSession(embedSessionId)listWebhookEndpoints(query)createWebhookEndpoint(body)getWebhookEndpoint(endpointId)updateWebhookEndpoint(endpointId, body)rotateWebhookEndpointSecret(endpointId)deleteWebhookEndpoint(endpointId)listWebhookDeliveries(query)replayWebhookDelivery(deliveryId)
The client rejects browser runtimes and validates request/response bodies with the same schemas as the API. Reveal-once product keys, management tokens, embed launch secrets, and webhook signing secrets are redacted from client error text.
Related
- Service accounts & management tokens
- TypeScript SDK (calculation API)
- Recipes