Beta Feature: The Actor concept is currently in beta. Full support requires the new API key format which is not yet generally available. Contact [email protected] for early access.
Overview
An Actor represents an entity that performs actions in the Nonce system. The Actor concept provides a clear and unified way to identify who performed an operation, enabling comprehensive task audit capabilities. With actors, you can:- Track which user, API key, or system process created a task batch
- Build audit trails for compliance and operational visibility
- Distinguish between manual operations (users) and automated operations (API keys or system)
Actor Types
| Type | Description | ID Prefix |
|---|---|---|
user | A human user authenticated via the Nonce platform | user_ |
apikey | An API key used for programmatic access | key_ |
system | Internal system operations or automations | - |
Actor Schema
When included in API responses, an actor contains the following fields:| Field | Type | Description |
|---|---|---|
type | string | The actor type: user, apikey, or system |
id | string | Unique identifier of the actor |
name | string | null | Display name of the actor |
avatar | string | null | Avatar URL (for user actors) |
metadata | object | Additional metadata about the actor |
Example Actor Response
User Actor:Usage in API Responses
Task Batches
When you retrieve task batches, thecreated_by field contains the actor who created the batch:
If the actor cannot be resolved (e.g., user was deleted), the
created_by field may be null or contain an “Unknown” actor.Current Limitations
- Legacy API keys: Tasks created with legacy API keys may show limited actor information
- System operations: Some automated operations are attributed to the
systemactor - Historical data: Older records may not have actor information populated
Future Enhancements
Once the new API key format is generally available:- Full actor tracking for all API operations
- Enhanced audit logging with actor information
- Actor-based filtering in list endpoints