Agents
Create an agent
Create an agent bound to an ACTIVE customer and one funding account. The agent has no credential until you issue a key. Requires a console session or an unconstrained organization key.
post/v1/agents
Headers
X-API-Keystring
API key
Request body
Example request
{
"name": "Procurement Agent",
"description": "Buys supplies",
"customerId": "cus_abc123",
"sourceAccountId": "vba_agent_balance",
"allowedDestinationAccountIds": [
"eba_vendor456"
],
"limits": {
"currency": "USD",
"perTransaction": "100000",
"perDay": "500000",
"perMonth": "1000000"
}
}Response
Example response
{
"id": "agt_abc123",
"name": "Procurement Agent",
"description": "Buys supplies",
"customerId": "cus_abc123",
"sourceAccountId": "vba_agent_balance",
"allowedDestinationAccountIds": [
"eba_vendor456"
],
"limits": {
"currency": "USD",
"perTransaction": "100000",
"perDay": "500000",
"perMonth": "1000000"
}
}