API Reference
Complete reference for all Acme SDK methods and types.
Users
Manage user accounts and profiles.
users.get(id)
Retrieve a user by ID.
;
// Returns: { id, email, name, createdAt, ... }
users.list(options?)
List all users with optional filtering.
;
users.create(data)
Create a new user.
;
users.update(id, data)
Update an existing user.
;
users.delete(id)
Delete a user.
await 'user_123';
Widgets
New in v1.2.0 — Build custom UI components with the Widgets API.
widgets.create(config)
Create a new widget instance.
;
widgets.render()
Render the widget to the DOM.
await ;
widgets.on(event, handler)
Subscribe to widget events.
'success',;
'error',;
Events
Real-time event subscriptions.
events.subscribe(channel)
Subscribe to a channel for real-time updates.
;
'user.updated',;
events.unsubscribe(channel)
Unsubscribe from a channel.
'user_123';
Error Handling
The SDK throws typed errors for different scenarios:
;
try catch error
Next Steps
Learn about Customization for advanced usage patterns.