returns Agent
Fetch a single counterparty agent by id.
| Name | Type | Description |
|---|---|---|
| id | String! | The agent's id (agt_-prefixed). |
| 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 | — |
{ agent(id: "rec_...") { 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": "{ agent(id: \"rec_...\") { id agentType name legalName } }"}'