Beta Early access — you're seeing this before public launch. Browse our books See terms of early access

BackAP2

Create an Intent Mandate

~10 min
Using sandbox API -- no real data affected
Step 1 of 4
1
2
3
4

Steps

1

Define Mandate Constraints

Every intent mandate starts with constraints that define what the agent is allowed to do. Constraints are the safety boundary -- they prevent the agent from spending more than you authorize or buying things outside approved categories.

Instructions

Fill in the mandate parameters below. Set a maximum spending amount, choose allowed categories, and configure the expiration time. The code preview will update in real time as you fill in each field.

Expected: Fill in all required fields

Parameters

Code Preview

Updates as you fill in parameters
mandate-constraints.ts
const mandatePayload = {
  type: 'intent',
  user_id: 'user_sandbox_demo',
  agent_id: 'agent_sandbox_demo',
  constraints: {
    max_amount: 100.00,
    currency: 'USD',
    categories: ['electronics', 'books'],
    expires_at: new Date(Date.now() + 1 * 3600000).toISOString(),
  },
};