Skip to content

Developers · Early access

Build on the APPNEUROX platform API.

One TypeScript client for 56 shared modules: identity, tenancy, billing, documents, messaging, events and more. Everything on this page works today for early-access teams; tools that are not released yet are labelled.

server.ts
import { AppNeuroX, staticCredentials } from "@appneurox/sdk";

const app = new AppNeuroX({
  credentials: staticCredentials(env.PLATFORM_ACCESS_TOKEN, env.PLATFORM_TENANT_ID),
});

// app.<module>.<resource>.<method>()
await app.tenant.tenants.list();
await app.invoice.invoices.list({ limit: 50 });
await app.storage.objects.get(objectId);

// Quickstart

From credential to first call

Five steps. Every command and API call here exists today; nothing depends on the unreleased CLI.

  1. 1

    Get early-access credentials

    Request early access. We create your tenant and a service credential (an access token and tenant ID) and give you access to the SDK repository. The SDK is not on npm yet.

  2. 2

    Add the SDK to a server project

    The SDK ships as TypeScript source with no runtime dependencies. In Next.js, let the compiler transpile it. Wrangler and tsx run it directly; plain node does not. Node 22.18 or later.

    next.config.mjs
    const nextConfig = {
      transpilePackages: ["@appneurox/sdk"],
    };
    
    export default nextConfig;
  3. 3

    Store the credential on the server

    Keep both values in server-side environment variables. Access tokens must never reach a browser.

    .env (server only)
    PLATFORM_ACCESS_TOKEN=…
    PLATFORM_TENANT_ID=…
  4. 4

    Make your first call

    Create one client and call any module. This lists the first five invoices in your tenant.

    first-call.ts
    import { AppNeuroX, staticCredentials } from "@appneurox/sdk";
    
    const app = new AppNeuroX({
      credentials: staticCredentials(process.env.PLATFORM_ACCESS_TOKEN!, process.env.PLATFORM_TENANT_ID!),
    });
    
    const page = await app.invoice.invoices.list({ limit: 5 });
    console.log(page);
  5. 5

    Handle platform errors

    Every failure is a PlatformError with a status, code and requestId. Include the requestId when you ask us for help.

    errors.ts
    import { isPlatformError } from "@appneurox/sdk";
    
    try {
      await app.invoice.invoices.list({ limit: 5 });
    } catch (error) {
      if (isPlatformError(error)) console.error(error.status, error.code, error.requestId);
      throw error;
    }

// Troubleshooting

Common first-call problems

What the error means and what to do about it.

401 after a few minutes
Access tokens last at most 15 minutes. For long-running services use rotatingCredentials, which refreshes a minute before expiry.
TENANT_REQUIRED
The request has no tenant. Pass the tenant ID to staticCredentials, or tenantId in the call options for an operator credential.
ACCESS_DENIED
The credential's principal lacks the role for this action. Check its memberships with app.access.memberships.list().
REVISION_CONFLICT (409)
The record changed since you read it. Re-read it, merge, and update with the new revision.
422 on an operation
The route family is explicitly unsupported in this contract version. Check the API reference.
Syntax error importing the SDK
It is TypeScript source. Add it to transpilePackages in Next.js, or run under Wrangler or tsx.

// Tools

What is available, and what is coming

Statuses match the roadmap.

Early access

TypeScript SDK

@appneurox/sdk 0.1.0: every v1 module, credentials, retries and pagination.

Learn more
Early access

v1 REST API

56 modules and 577 operations at https://api.appneurox.com/v1.

Learn more
In progress

Public npm release

The same SDK on npm, so the quickstart works without repository access.

Roadmap

appneurox CLI

One command for creating projects, adding modules and deploying.

Learn more
Roadmap

Python, Java and Go SDKs

Generated from the same OpenAPI contract as the TypeScript SDK.

Roadmap

Connected micro-UIs

React components wired to platform modules.

Learn more
Roadmap

Plugin SDK

Manifests, permissions and publishing for marketplace packages.

Learn more
Roadmap

Workflow SDK

Depends on WorkflowOS, which has no platform module yet.