Getting started with the DALP Platform API
Create an API key, configure the DALP TypeScript SDK, and choose the right API, CLI, or OpenAPI path for authenticated integration.
The DALP API is the programmatic entry point for organisation-scoped asset operations. Start here when you need a machine client that can authenticate, call the OpenAPI REST surface, and then route to the right API page for asset lifecycle, compliance, wallet, settlement, monitoring, webhook, or error-handling work.
API keys are organisation credentials. Each key inherits the creating user's DALP permissions, carries a read or read-write scope, and authenticates REST requests with X-Api-Key. Use one key per organisation or environment so reporting jobs, settlement automation, and asset operations do not share the same blast radius.
Choose the right API path
| If you need to | Start with | Then read |
|---|---|---|
| Make your first authenticated REST call | Create an API key and generate a TypeScript client below. | SDK integration and API reference |
| Keep organisations, systems, and environments separated | Create one key for the active organisation. | Organisation and system scope |
| Send calls on behalf of a participant or execution wallet | Configure the shared headers only on routes that support them. | Request headers and smart wallets |
| Automate asset lifecycle operations | Use a read-write key and verify the target token workflow first. | Token lifecycle, token holders and transfers, and external tokens |
| Wire compliance, documents, monitoring, or webhooks | Keep the key scope narrow and route each job to the matching reference page. | Compliance modules, KYC document uploads, API monitoring, webhook endpoints, and transaction tracking |
Prerequisites
Before creating an API key:
- Have a running DALP instance, either hosted or local.
- Sign in to the platform UI with an account that belongs to the target organisation.
- Select the organisation that should own the API key. The key stores that organisation context.
- Confirm your account has the role permissions needed for the operations you plan to call. A read-only key can call safe HTTP methods. Mutations require a read-write key.
API keys skip wallet verification. Browser sessions still require it on write operations.
API integration model
Create an API key
Step 1: Open the API keys page
- Click your profile avatar in the top right corner
- Select API Keys from the dropdown menu

Step 2: Generate a new key
- Click Create API Key
- Enter a descriptive name, for example
Production IntegrationorCI/CD Pipeline - Optionally, set an expiry date. Keys without an expiry remain valid until manually revoked.
- Click Create
Step 3: Copy and secure your key
The platform displays your API key once. Copy it immediately and store it in a secret manager, environment variable, or password vault.
Key format: sm_dalp_xxxxxxxxxxxxxxxx
If you lose the key, you cannot recover it. Revoke the old key and create a new one.
Step 4: Review key settings
The key inherits permissions from the user who created it. Check the user's role before using a key for automation. Organisation scope locks to the organisation active at creation time.
Choose read-write access for integrations that create or update DALP resources. Choose read for reporting jobs that call only safe HTTP methods: GET, HEAD, or OPTIONS. Read-only keys reject write methods: POST, PUT, PATCH, and DELETE.
API keys authenticate REST requests only. The key is not accepted on /api/rpc. The key stores organizationId and access scope for session context.
Managing API keys
From the API Keys page you can view active keys, including name and expiry date, and delete keys to permanently revoke access.
Configure the SDK
The recommended TypeScript path is the @settlemint/dalp-sdk package. The SDK uses the DALP API contract directly, sends authenticated calls to /api/v2, and adds the API key as the x-api-key request header.
npm install @settlemint/dalp-sdk dnum zodOr with Bun:
bun add @settlemint/dalp-sdk dnum zodThe SDK requires zod >= 4.0.0. The examples below also use dnum for token amounts, so install both packages explicitly with the SDK.
Create a client
import { createDalpClient } from "@settlemint/dalp-sdk";
const dalp = createDalpClient({
url: "https://your-platform.example.com",
apiKey: process.env.DALP_API_KEY,
});Use the deployment origin as url. Do not append /api. The SDK normalises the base URL and calls /api/v2. For multi-organisation setups, pass organizationId. This pins every request to one organisation:
const dalp = createDalpClient({
url: "https://your-platform.example.com",
apiKey: process.env.DALP_API_KEY,
organizationId: "org_xxx",
});Test your connection
Verify authentication with a safe read before running mutations:
const tokens = await dalp.token.list({ query: {} });
console.log("Token count:", tokens.data.length);This first call confirms the deployment origin is correct, the SDK can reach /api/v2, and the API key is accepted. UNAUTHORIZED means the key value or expiry is wrong. FORBIDDEN means the user role or key scope needs updating.
When to use the OpenAPI specification
Use the SDK for TypeScript services. Use the OpenAPI specification when you need to generate a client in another language, import the API into a gateway, or inspect the REST contract directly.
curl https://your-platform.example.com/api/v2/spec.json \
-H "X-Api-Key: sm_dalp_xxxxxxxxxxxxxxxx"The current API specification is served at /api/v2/spec.json. Legacy integrations can still inspect /api/v1/spec.json where required. The interactive reference for the current REST API is available under /api/v2 on the DALP deployment.
Common errors
For complete error handling guidance, see the Error handling guide. The quick fixes below cover the most common setup errors:
401 Unauthorized: the API key is invalid or expired. Confirm the key includes thesm_dalp_prefix and is enabled on the API Keys page.403 Forbidden: your user account lacks permissions. See Platform setup for role management.403 API_KEY_READ_ONLY: the key hasreadscope and the request uses a write method. Use read-only keys forGET,HEAD, andOPTIONScalls. Switch to a read-write key forPOST,PUT,PATCH, orDELETErequests.403 API_KEY_NOT_SUPPORTED_ON_RPC: API keys authenticate the REST API only. If a request targets/api/rpc, switch to the REST endpoint or SDK method for the same operation.404 Not Found: confirmurlis the DALP deployment origin without an/apisuffix, and that the deployment is running.
Authentication header formats
DALP accepts API keys in the X-Api-Key header:
X-Api-Key: sm_dalp_xxxxxxxxxxxxxxxxWallet verification for write operations
The platform uses wallet verification as a second factor for browser sessions. API keys skip this check entirely, so you can omit the walletVerification field:
import { from as dnumFrom } from "dnum";
// API key auth: no walletVerification needed
await dalp.token.mint({
params: { tokenAddress: "0xABCD..." },
body: {
recipients: ["0x1234..."],
amounts: [dnumFrom("1000", 18)],
},
});Browser sessions still require wallet verification for write operations. Pass the walletVerification field with the method and code the session established:
import { from as dnumFrom } from "dnum";
// Session-based auth: walletVerification required
await dalp.token.mint({
params: { tokenAddress: "0xABCD..." },
body: {
recipients: ["0x1234..."],
amounts: [dnumFrom("1000", 18)],
walletVerification: {
verificationType: "PINCODE",
secretVerificationCode: "123456", // Your 6-digit PINCODE
},
},
});API keys are scoped credentials for machine-to-machine use. The key itself is the authorization factor; the platform issues no second interactive challenge. Browser sessions require wallet verification to block unauthorized transactions from a compromised session.
CLI and AI agent integration
The CLI follows the same authentication model. dalp login opens the browser device flow, creates a read-write API key for the CLI, and stores the credential locally. Use dalp logout when you need to revoke that CLI key and clear the local credential.
For scripts and AI agents, prefer CLI commands that return structured output:
dalp login --url https://your-platform.example.com
dalp whoami --format json
dalp auth org-list --format jsonUse the CLI for operators and agents that need a supported command surface. Use the SDK for TypeScript applications making direct API calls. Use OpenAPI when another language or gateway needs the REST contract. For MCP and skill-file setup, see AI agent integration.
What the SDK and REST surface provide
The DALP SDK creates a typed client over the current REST API at /api/v2. It normalises the deployment origin and sends the API key as x-api-key. The client can also forward an optional x-organization-id and serialise BigInt, decimal, and timestamp values safely for JSON requests.
The REST API exposes the current OpenAPI specification at /api/v2/spec.json and the interactive API reference at /api/v2. Read operations use safe HTTP methods. Mutations use write methods and can return transaction headers when the operation submits an on-chain transaction.
For production integrations, add the request controls that match the job:
- Use organisation and system scope before sharing one service across tenants, environments, or systems.
- Use replay and idempotency controls before retrying write operations.
- Use error handling to distinguish auth failures, permission errors, validation rejections, and retryable platform faults.
Next steps
Now that your client is configured:
- Review organization and system scope to keep API keys, organizations, systems, and environments separated
- Review the token lifecycle to understand operation flows
- Set up roles to grant yourself system and token permissions
- Choose an asset guide and deploy your first token:
For API reference documentation and OpenAPI spec, see API reference.
DALP tokenization API and digital asset platform API docs
Choose the right DALP API page for authentication, OpenAPI client generation, request headers, errors, webhooks, EVM token lifecycle, token data, durable workflow recovery, smart wallets, and XvP settlement.
TypeScript SDK
Install and use the @settlemint/dalp-sdk package for typed access to the DALP API from a TypeScript project.