---
title: "Get policy-gated filed accounts metadata"
method: GET
path: "/api/v1/company/{slug}/accounts"
tags: ["Companies"]
---

# Get policy-gated filed accounts metadata

`GET /api/v1/company/{slug}/accounts`

## Request

- Base URL: `https://openmercantil.es`
- URL: `https://openmercantil.es/api/v1/company/{slug}/accounts`
- Auth: none declared
- TypeScript: <https://skmtc.dev/openmercantil/apis/openmercantil-public-api/docs/api/v1/company/:slug/accounts/get.ts> (a function with typed inputs; its response is checked against the schema)

Fail-closed aggregate over mixed CNMV, BORME section II and REA-derived metadata. The route returns 503 until provenance can be filtered before aggregate fields are calculated and the exact annual-accounts decision becomes public.

## Path parameters

- `slug` string, required

## Response `200`

Accounts metadata list

- CompanyAccountsResponse: Reserved 200 response for a future immutable, generation-bound annual-accounts projection. Until that projection exists, the runtime is fail-closed and returns 503; al_dia and has_financials are not registry certificates.
  - `projection_status` 'available', required
  - `projection` 'annual_accounts_v1', required
  - `slug` string, required
  - `cif` string, nullable, required
  - `count` integer, required
  - `al_dia` boolean, required
  - `last_year` integer, nullable, required
  - `last_deposit_date` string, nullable, required
  - `has_financials` boolean, required
  - `years` union, required
    - object
    - unknown[]
      - unknown
  - `_source_catalog` SourceCatalogEnvelope, required
    - `catalog_version` string, required
    - `policy_fingerprint` string, required
    - `policy_effective_date` string, date
    - `sources` object, required
  - `_data_sources_used` PublicSourcePolicyMetadata[], required
    - `slug` string, required
    - `name` string, required
    - `license` string, required
    - `license_url` string, uri, nullable
    - `attribution_required` boolean, required
    - `attribution_text` string, nullable
    - `official_url` string, uri, nullable
    - `reuse_conditions` string, required: Condiciones de reutilizacion que el consumidor debe conservar al presentar o transformar el dato.
    - `policy_effective_date` string, date, required
    - `reviewed_at` string, date, required
    - `data_updated_at` string, date-time, nullable
    - `catalog_version` string, required
  - `_attributions` object

## Other responses

- `404`: Resource not found
- `429`: Rate limit exceeded
- `503`: The public read failed closed because its legal source catalog, subject classification, bounded projection, database helper or required artifact is unavailable. Clients must not infer an empty result.

## Changes

- **2026-07-26** `996f96a11758`: 17 info
  - api operation id `getCompanyBySlugAccounts` was added
  - added the non-success response with the status `404`
  - added the non-success response with the status `429`
  - added the non-success response with the status `503`
  - …13 more

[Operation history](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/changes/api/v1/company/:slug/accounts/get.md)

---

[API](https://skmtc.dev/openmercantil/apis/openmercantil-public-api.md) - [All operations](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/revisions/601ff6123c86?raw)
