curl --request PATCH \
--url https://api.lightspark.com/grid/2025-10-13/agents/{agentId}/policy \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"permissions": [
"VIEW_TRANSACTIONS"
],
"defaultExecutionMode": "AUTO",
"spendingLimits": {
"currency": "USD",
"perTransactionLimit": 50000,
"dailyLimit": 500000,
"dailyTransactionLimit": 10,
"monthlyLimit": 5000000
},
"accountRestrictions": {
"allowedAccountIds": [
"Account:019542f5-b3e7-1d02-0000-000000000001"
],
"accountRules": [
{
"accountId": "Account:019542f5-b3e7-1d02-0000-000000000001",
"executionMode": "AUTO",
"perTransactionLimit": 10000
}
]
},
"approvalThresholds": {
"currency": "USD",
"amount": 100000
}
}
'{
"id": "Agent:019542f5-b3e7-1d02-0000-000000000001",
"name": "Payroll Automation Agent",
"customerId": "Customer:019542f5-b3e7-1d02-0000-000000000001",
"isPaused": false,
"isConnected": true,
"policy": {
"permissions": [
"VIEW_TRANSACTIONS"
],
"defaultExecutionMode": "AUTO",
"spendingLimits": {
"currency": "USD",
"perTransactionLimit": 50000,
"dailyLimit": 500000,
"dailyTransactionLimit": 10,
"monthlyLimit": 5000000
},
"accountRestrictions": {
"allowedAccountIds": [
"Account:019542f5-b3e7-1d02-0000-000000000001"
],
"accountRules": [
{
"accountId": "Account:019542f5-b3e7-1d02-0000-000000000001",
"executionMode": "AUTO",
"perTransactionLimit": 10000
}
]
},
"approvalThresholds": {
"currency": "USD",
"amount": 100000
}
},
"usage": {
"dailyTransactionCount": 3,
"dailySpend": 150000,
"monthlySpend": 750000,
"dailyResetDate": "2025-07-22",
"monthlyResetMonth": "2025-08"
},
"createdAt": "2025-07-21T17:32:28Z",
"updatedAt": "2025-07-21T17:32:28Z"
}Partially update an agent’s policy. Only provided fields will be updated; omitted fields retain their current values. Policy changes take effect immediately.
curl --request PATCH \
--url https://api.lightspark.com/grid/2025-10-13/agents/{agentId}/policy \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"permissions": [
"VIEW_TRANSACTIONS"
],
"defaultExecutionMode": "AUTO",
"spendingLimits": {
"currency": "USD",
"perTransactionLimit": 50000,
"dailyLimit": 500000,
"dailyTransactionLimit": 10,
"monthlyLimit": 5000000
},
"accountRestrictions": {
"allowedAccountIds": [
"Account:019542f5-b3e7-1d02-0000-000000000001"
],
"accountRules": [
{
"accountId": "Account:019542f5-b3e7-1d02-0000-000000000001",
"executionMode": "AUTO",
"perTransactionLimit": 10000
}
]
},
"approvalThresholds": {
"currency": "USD",
"amount": 100000
}
}
'{
"id": "Agent:019542f5-b3e7-1d02-0000-000000000001",
"name": "Payroll Automation Agent",
"customerId": "Customer:019542f5-b3e7-1d02-0000-000000000001",
"isPaused": false,
"isConnected": true,
"policy": {
"permissions": [
"VIEW_TRANSACTIONS"
],
"defaultExecutionMode": "AUTO",
"spendingLimits": {
"currency": "USD",
"perTransactionLimit": 50000,
"dailyLimit": 500000,
"dailyTransactionLimit": 10,
"monthlyLimit": 5000000
},
"accountRestrictions": {
"allowedAccountIds": [
"Account:019542f5-b3e7-1d02-0000-000000000001"
],
"accountRules": [
{
"accountId": "Account:019542f5-b3e7-1d02-0000-000000000001",
"executionMode": "AUTO",
"perTransactionLimit": 10000
}
]
},
"approvalThresholds": {
"currency": "USD",
"amount": 100000
}
},
"usage": {
"dailyTransactionCount": 3,
"dailySpend": 150000,
"monthlySpend": 750000,
"dailyResetDate": "2025-07-22",
"monthlyResetMonth": "2025-08"
},
"createdAt": "2025-07-21T17:32:28Z",
"updatedAt": "2025-07-21T17:32:28Z"
}Documentation Index
Fetch the complete documentation index at: https://ramps-docs-agents-webhook-and-account-model-links.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
API token authentication using format <api token id>:<api client secret>
System-generated unique agent identifier
Partial update to an agent's policy. Only provided fields will be updated; omitted fields retain their current values.
Updated list of permissions. Replaces the entire permissions list when provided.
Permission granted to an agent that determines what actions it can perform. VIEW_TRANSACTIONS: Can list and retrieve transactions and account balances. CREATE_TRANSFERS: Can initiate same-currency transfers. CREATE_QUOTES: Can create cross-currency quotes. EXECUTE_QUOTES: Can execute cross-currency quotes. MANAGE_EXTERNAL_ACCOUNTS: Can create and manage external accounts.
VIEW_TRANSACTIONS, CREATE_TRANSFERS, CREATE_QUOTES, EXECUTE_QUOTES, MANAGE_EXTERNAL_ACCOUNTS Execution mode controlling whether agent actions require human approval. AUTO: The agent can execute actions autonomously without explicit approval. APPROVAL_REQUIRED: All agent actions require explicit human approval before execution.
AUTO, APPROVAL_REQUIRED Partial update to spending limits. Only provided fields will be updated; omitted fields retain their current values.
Show child attributes
Optional restrictions that limit the agent to specific accounts or override policy per account.
Show child attributes
Thresholds that force approval for high-value transactions, overriding the default execution mode. When a transaction is denominated in a different currency than the threshold, Grid converts using the exchange rate at evaluation time.
Show child attributes
Agent policy updated successfully
A programmatic agent with scoped permissions and a spending policy, used to automate payment workflows.
System-generated unique identifier for the agent.
"Agent:019542f5-b3e7-1d02-0000-000000000001"
Human-readable name for the agent.
"Payroll Automation Agent"
The ID of the customer this agent operates on behalf of.
"Customer:019542f5-b3e7-1d02-0000-000000000001"
Whether the agent is currently paused. Paused agents cannot initiate any actions.
false
Whether the agent has been installed and connected (i.e., its device code has been redeemed).
true
Policy governing what an agent can do, how it executes actions, and its spending boundaries.
Show child attributes
Real-time counters tracking the agent's spending and transaction activity against its policy limits.
Show child attributes
Creation timestamp.
"2025-07-21T17:32:28Z"
Last update timestamp.
"2025-07-21T17:32:28Z"
Was this page helpful?