> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List accounts

> List the personal and team accounts the caller belongs to, oldest first, with the caller's role and capabilities in each.

`accounts(input: ListAccountsInput!): AccountList!`

## Arguments

| Argument | Type | Required |
| - | - | - |
| `input` | [`ListAccountsInput!`](https://veryfront.com/docs/cloud/graphql/types/listaccountsinput) | Yes |

## Input fields

### input

[`ListAccountsInput`](https://veryfront.com/docs/cloud/graphql/types/listaccountsinput)

| Field | Type | Required |
| - | - | - |
| `cursor` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No |
| `limit` | [`Int`](https://veryfront.com/docs/cloud/graphql/types/int) | No |
| `slug` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No |

## Response

Returns [`AccountList!`](https://veryfront.com/docs/cloud/graphql/types/accountlist). Open the type for its fields and nested types.

| Field | Type | Description |
| - | - | - |
| `data` | [`[Account!]!`](https://veryfront.com/docs/cloud/graphql/types/account) | Accounts the caller belongs to, oldest first, with the caller role in each. |
| `pageInfo` | [`AccountPagination!`](https://veryfront.com/docs/cloud/graphql/types/accountpagination) | |

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
query Accounts($input: ListAccountsInput!) {
  accounts(input: $input) {
    data {
      id
      name
      slug
      createdAt
      updatedAt
    }
    pageInfo {
      first
      next
      prev
      self
    }
  }
}
```

```json title="variables.json" theme={null}
{
  "input": {}
}
```

<details>
  <summary>Try this query</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Query

  Variables (JSON)
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.