# rip.pds.account.listAccounts

> Published by [pds.rip](https://lexicon.garden/identity/did:plc:w24v65i3bcsxk6mbbgfdukve)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.account.listAccounts)
- [Documentation](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.account.listAccounts/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.account.listAccounts/examples)

## Definitions

### `rip.pds.account.listAccounts`

**Type**: `query`

List the ephemeral accounts minted by the calling account.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |
| `includeDeleted` | `boolean` | No | Include accounts that have already expired or been deleted. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `quota` | `object` | No | How much of the caller's allowance is in use. |
| `cursor` | `string` | No |  |
| `accounts` | `array` | Yes |  |
| `maxLifetimeDays` | `integer` | No | How far any of the caller's accounts may be extended, in days from its creation, after any per-person override. Clients should render ceilings from this rather than from a server-wide default. |

## Raw Schema

```json
{
  "id": "rip.pds.account.listAccounts",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "accounts"
          ],
          "properties": {
            "quota": {
              "type": "object",
              "required": [
                "used",
                "limit"
              ],
              "properties": {
                "used": {
                  "type": "integer"
                },
                "limit": {
                  "type": "integer"
                }
              },
              "description": "How much of the caller's allowance is in use."
            },
            "cursor": {
              "type": "string"
            },
            "accounts": {
              "type": "array",
              "items": {
                "ref": "rip.pds.account.defs#accountView",
                "type": "ref"
              }
            },
            "maxLifetimeDays": {
              "type": "integer",
              "description": "How far any of the caller's accounts may be extended, in days from its creation, after any per-person override. Clients should render ceilings from this rather than from a server-wide default."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          },
          "includeDeleted": {
            "type": "boolean",
            "default": false,
            "description": "Include accounts that have already expired or been deleted."
          }
        }
      },
      "description": "List the ephemeral accounts minted by the calling account."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
