Operations Endpoints
Manage operation queue, approvals, and execution history.GET /api/core/operations/queue
Get pending and in-progress operations. Headers:Operations in
PENDING_APPROVAL status require manual approval before execution.POST /api/core/operations/:id/approve
Approve a pending operation. Headers:Once approved, the operation will be picked up by your custody agent for execution.
POST /api/core/operations/:id/reject
Reject a pending operation. Headers:Rejecting an operation will release any reserved funds. This action cannot be undone.
GET /api/core/operations/history
Get operation history with filtering. Headers:limit(optional) - Number of results (default: 50, max: 100)offset(optional) - Pagination offset (default: 0)status(optional) - Filter by status:COMPLETED,FAILED, etc.
GET /api/core/operations/stats
Get operation statistics for your organization. Headers:Operation Lifecycle
Operations progress through the following states:1
PLANNING
Operation created, funds reserved from available balance
2
PENDING_APPROVAL
Awaiting manual approval (if required by policy)
3
EXECUTING
Transaction being signed by custody agent
4
CONFIRMING
Transaction submitted to blockchain, awaiting confirmation
5
COMPLETED
Transaction confirmed, allocation active and earning yield
COMPLETED- Successfully executedFAILED- Execution failed (funds released)REJECTED- Manually rejected (funds released)ABORTED- System aborted (funds released)
Example Usage
Approval Workflows
Configure approval requirements based on your operational needs:Automatic Approval
Operations execute automatically without manual intervention. Best for:- Trusted yield deployments
- Small amounts
- Low-risk operations
Manual Approval
All operations require explicit approval. Best for:- Large deployments
- New integrations
- High-security requirements
- Compliance workflows
Conditional Approval
Approval required based on rules:- Amount thresholds
- Wallet types
- Time of day
- Counterparty addresses
Configure approval policies in the dashboard under Settings → Operations → Approval Rules.
Monitoring Operations
Best practices for monitoring operation execution:- Poll the queue regularly - Check for pending approvals
- Monitor history for failures - Investigate failed operations
- Track completion times - Identify performance issues
- Review success rates - Ensure high reliability
Webhook Notifications
Subscribe to operation events:operation.approvedoperation.executingoperation.completedoperation.failed
Contact us to enable webhook notifications for your organization.