---
title: "List managed accounts"
method: GET
path: "/accounts"
tags: ["Account"]
---

# List managed accounts

`GET /accounts`

## Request

- Base URL: `https://api.factuarea.com/v1`
- URL: `https://api.factuarea.com/v1/accounts`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

List the managed accounts your account provisioned, only in the environment of the key.
- Filter by `status` and `external_ref`; cursor-paginated with `limit` (1-100) and `starting_after`.
- Without `status` only managements in force are listed; `ended` items carry just the identifiers.
- Requires the privileged `accounts:read` scope.

## Query parameters

- `status` 'provisioned' | 'claimed' | 'active' | 'ended'
- `external_ref` string
- `limit` integer
- `starting_after` string, uuid

## Headers

- `Factuarea-Version` string, date

## Response `200`

`ManagedAccountListV1Resource`

- object: Cursor-paginated list of your managed accounts in the environment of the key (`{ data, has_more, next_cursor }`). Without `status` it lists only the managements in force; with `status=ended` each item is an `EndedManagedAccount`. No item carries a claim voucher.
  - `data` union[], required: Page of managed accounts: a `ManagedAccount` while the management is in force, an `EndedManagedAccount` once it ended.
    - union
      - object: An account your account provisioned for one of your clients: a SEPARATE account, with its own tax IDs and plan, that your account manages and pays until its holder claims it and takes over. Its pending claim voucher is read in `claim`, without secret or link: those are returned once, by the provisioning and by the reissue.
        - `id` string, uuid, required: Opaque identifier (UUID v7) of the managed account. It is the `{account}` of the managed account routes.
        - `object` 'managed_account', required: Always `managed_account`.
        - `external_ref` string, required: Your own reference for this account, unique per provider. Provisioning it again returns this same account.
        - `status` 'provisioned' | 'claimed' | 'active', required: Status of the ACCOUNT: `provisioned` (created by you, not claimed yet), `claimed` (its holder took it) or `active`. The end of the management is read in `management`, not here.
        - `environment` 'live' | 'test', required: Environment of the account: always the one of the key that provisioned it. A test account is never charged and cannot be claimed.
        - `plan` 'emprendedor' | 'empresario' | 'integral' | 'enterprise', required: Current plan of the managed account. `enterprise` is only assigned by Factuarea by contract.
        - `pending_plan` 'emprendedor' | 'empresario' | 'integral' | 'null', nullable, required: Plan requested by a downgrade that takes effect at the end of the current period, or `null`.
        - `billing_interval` string, required: Billing interval of the managed account (managed accounts are billed monthly).
        - `access_level` 'none' | 'view' | 'operate', required: Access level of your account on this account: `none` (provisioning only), `view` (read-only) or `operate`.
        - `display_name` string, required: Visible name of the account.
        - `language` 'es' | 'en' | 'ca' | 'null', nullable, required: Language of the account and of its claim voucher, or `null` when not recorded.
        - `companies` object[], required: Tax IDs of the managed account.
          - `id` string, uuid, required: Opaque identifier (UUID v7) of the tax ID, the `{company}` of the company axis.
          - `tax_id` string, required: Spanish fiscal identifier (NIF, CIF, NIE). Structural format: NIF `^\d{8}[A-Z]$`, NIE `^[XYZ]\d{7}[A-Z]$`, CIF `^[A-Z]\d{7}[A-Z0-9]$`. AEAT control-digit (checksum) validation is enforced when the request opts in via the `Factuarea-Version` header on or after the activation version; without that opt-in the legacy permissive behaviour is preserved.
          - `name` string, required: Name of the tax ID.
        - `claimed` boolean, required: Whether its holder already claimed the account.
        - `claimed_at` string, date-time, nullable, required: When its holder claimed the account (ISO 8601), or `null`.
        - `management` object, required: Management of the account by your account.
          - `status` 'active' | 'ended', required: `active` while your account manages it; `ended` once the management ended.
          - `ended_at` string, date-time, nullable, required: When the management ended (ISO 8601), or `null`.
        - `paid_by_provider` boolean, required: Whether your account pays this account. `false` once its holder took over the payment.
        - `created_at` string, date-time, required: When the account was provisioned (ISO 8601).
        - `claim` object, nullable, required: The PENDING claim voucher of the account, WITHOUT its secret or its link (those are returned once, by the provisioning and by the reissue). `null` when the account is already claimed, is a test account or has no pending voucher.
          - `status` 'valid' | 'expired', required: `valid` while the voucher has not expired; `expired` once `expires_at` passed (reissue it).
          - `issued_at` string, date-time, required: When the voucher was issued (ISO 8601).
          - `expires_at` string, date-time, required: When the voucher expires (ISO 8601).
          - `ttl_days` integer, required: Days of validity the voucher was issued with.
          - `sent_by_email` boolean, required: Whether the voucher left by email to the holder.
          - `masked_email` string, nullable, required: Email of the holder, masked, or `null` when the voucher was not sent by email.
        - `payment_assumed_at` string, date-time, nullable, required: When the holder took over the payment of the account (ISO 8601), or `null` while your account still pays it (`paid_by_provider`).
        - `plan_renews_at` string, date-time, nullable, required: End of the current billing period of the plan (ISO 8601): when a pending downgrade takes effect and the next periodic invoice is issued. `null` when the account is not charged to your account.
      - object: An account whose management by your account ended, as listed with `status=ended`. Once the management ends your account loses all access to it, so only its `id`, your `external_ref` and the `management` block are returned: never its current name, status, plan or tax IDs.
        - `id` string, uuid, required: Opaque identifier (UUID v7) of the managed account. It is the `{account}` of the managed account routes.
        - `object` 'managed_account', required: Always `managed_account`.
        - `external_ref` string, required: Your own reference for this account, unique per provider. Provisioning it again returns this same account.
        - `management` object, required: End of the management by your account.
          - `status` 'ended', required: Always `ended`.
          - `ended_at` string, date-time, nullable, required: When the management ended (ISO 8601).
  - `has_more` boolean, required: `true` when more managed accounts exist beyond this page.
  - `next_cursor` string, nullable, required: Opaque cursor for the next page (pass it as `starting_after`), or `null` when `has_more` is `false`.

## Other responses

- `400`: `parameter_unknown` with `subcode` `retired_active_profile_header`: the retired `X-Active-Profile` header was sent; the company goes in the path. `parameter_invalid_format` on `Factuarea-Version`: the header is not a `YYYY-MM-DD` date. `unsupported_api_version`: the `Factuarea-Version` date is not a supported version.
- `401`: Missing or invalid API key.
- `403`: The request is authenticated but not allowed: the API key lacks the required scope (`insufficient_scope`), the plan does not include the public API or this feature (`addon_not_active`, `feature_not_available_in_plan`), or the module is not available with a test key (`module_not_available_in_sandbox`).
- `422`: Validation failed, or a managed account rule rejected the operation: `managed_account_plan_not_self_serve` (`enterprise` is only assigned by Factuarea by contract), `managed_account_provider_in_trial` (a paid plan while your account is in trial), `managed_accounts_limit_reached` (the managed account limit of your account), `managed_account_not_claimable` (a test account has no claim voucher), `access_level_raise_forbidden` (once the holder claimed the account only the holder can raise your level), `enterprise_contract_transition_required` (moving to or from `enterprise` is a contract change) and `business_rule_violation` with subcode `nif_already_claimed_by_another_account` (provisioning a tax ID that already belongs to another account). The `error.param` field identifies which input is invalid, if any.
- `429`: Rate limit exceeded. Retry after the duration in `Retry-After`.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/factuarea/apis/factuarea-public-api.md) · [All operations](https://skmtc.dev/factuarea/apis/factuarea-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/factuarea/apis/factuarea-public-api/revisions/718e77934422?raw)
