# Read what an agent brought in

The leads and the deals filed against one agent on the agents registry — ISO agents and brokers' external reps. Two lists, because 'names handed over' and 'deals that survived' are the two numbers a commission conversation needs.

Access class: `workspace`.

## Endpoint

`GET /v1/agents/{rowId}/credits`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| rowId | path | string | Yes |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "deals": [
      {
        "definitionKey": "string",
        "row": "string"
      }
    ],
    "leads": [
      {
        "definitionKey": "string",
        "row": "string"
      }
    ]
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
