# agentBillingPeriods (/api/reference/queries/agent-billing-periods)

The monthly charges for the agents the workspace has hired, newest first: the order they were opened in, latest at the top.

```graphql
agentBillingPeriods(
  after: String
  before: String
  first: Int
  last: Int
): AgentBillingPeriodConnection!
```

### Arguments [#arguments]

#### [`agentBillingPeriods.after`](#after) · [`String`](/api/reference/scalars/string) `scalar` [#after]
Return the rows that follow this cursor.

#### [`agentBillingPeriods.before`](#before) · [`String`](/api/reference/scalars/string) `scalar` [#before]
Return the rows that come before this cursor.

#### [`agentBillingPeriods.first`](#first) · [`Int`](/api/reference/scalars/int) `scalar` [#first]
How many rows to return, from the start or from `after`. 50 when left out, 200 at most.

#### [`agentBillingPeriods.last`](#last) · [`Int`](/api/reference/scalars/int) `scalar` [#last]
How many rows to return, counting back from the end or from `before`. 200 at most.

### Type [#type]

#### [`AgentBillingPeriodConnection`](/api/reference/objects/agent-billing-period-connection) `object` [#agentbillingperiodconnection-object]
A page of monthly charges for hired agents.