returns [Agent!]!
List counterparty agents with optional filters.
| Name | Type | Description |
|---|---|---|
| agentType | String | Filter by counterparty role, e.g. customer or vendor. |
| source | String | Filter by originating system, e.g. quickbooks. |
| isActive | Boolean = true | Filter on active status. Defaults to active only; pass null for both. |
| limit | Int | Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises INVALID_PAGINATION. |
| offset | Int | Rows to skip before returning, 0 or greater. Out of range raises INVALID_PAGINATION. |
| Field | Type | Description |
|---|---|---|
| id | String! | — |
| agentType | String! | — |
| name | String! | — |
| legalName | String | — |
| taxId | String | — |
| registrationNumber | String | — |
| duns | String | — |
| lei | String | — |
| String | — | |
| phone | String | — |
| address | JSON | — |
| source | String! | — |
| externalId | String | — |
| isActive | Boolean! | — |
| is1099Recipient | Boolean! | — |
| createdAt | DateTime | — |
| updatedAt | DateTime | — |
| createdBy | String | — |
| openReceivable | OpenBalanceByAgent | — |
| openPayable | OpenBalanceByAgent | — |
{ agents { id agentType name legalName } }curl -X POST "https://api.robosystems.ai/extensions/$GRAPH_ID/graphql" \
-H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "{ agents { id agentType name legalName } }"}'