---
updatedAt: 2026-08-11T21:30:36.000Z
agentTools:
  projectIndex: https://docs.dotfile.com/llms.txt
---

# Fetch company data

Use a `search_ref` from [Search companies](./company-data-search) result to fetch company data.

---

#### See also  
Learn more about [Company data](./company-data-guide)  


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/v1/company-data/fetch/{search_ref}": {
      "get": {
        "operationId": "company-data-fetch",
        "summary": "Fetch company data",
        "description": "Use a `search_ref` from [Search companies](./company-data-search) result to fetch company data.\n\n---\n\n#### See also  \nLearn more about [Company data](./company-data-guide)  \n",
        "parameters": [
          {
            "name": "idempotency-key",
            "required": false,
            "in": "header",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "description": "Reuse a key when retrying the same company acquisition to avoid another purchase."
          },
          {
            "name": "search_ref",
            "in": "path",
            "description": "From a result of [Search companies](./company-data-search)",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns Company data\n\n**ℹ️ Click to see full payload**",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyData"
                }
              }
            }
          },
          "400": {
            "description": "The request is either malformed or contain invalid parameters.\n\n  - Limit reached. Contact us at support@dotfile.com to lift all limits.\n  "
          }
        },
        "tags": [
          "Company data"
        ]
      }
    }
  },
  "info": {
    "title": "⚙️ API specifications",
    "description": "Dotfile public API documentation\n\n## Rate limiting\n\nRequests are counted per workspace: every API key of a workspace shares the same quota, across all of Dotfile's servers. Two independent quotas apply per one-minute window:\n\n- **Read** requests (`GET`, `HEAD`): 2,500 requests per minute by default.\n- **Write** requests (every other method): 1,500 requests per minute by default.\n\nEvery response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (Unix timestamp in seconds) and `X-RateLimit-Scope`. Once a quota is exhausted, the API answers `429 Too Many Requests` with a `Retry-After` header giving the number of seconds to wait. Every request counts, including those rejected with a `4xx` status.\n\nContact us if your integration needs a higher quota for your workspace.",
    "version": "v1",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.dotfile.com",
      "description": "Production environment"
    }
  ],
  "components": {
    "securitySchemes": {
      "DotfileAPIKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-DOTFILE-API-KEY",
        "description": "Configure your api key in the Workspace settings"
      }
    },
    "schemas": {
      "CompanyClassification": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type",
          "code"
        ]
      },
      "Address": {
        "type": "object",
        "properties": {
          "street_address": {
            "type": "string",
            "nullable": true
          },
          "street_address_2": {
            "type": "string",
            "nullable": true
          },
          "postal_code": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "format": "alpha-2",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "[ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code (eg `FR`)"
          }
        },
        "required": [
          "street_address",
          "street_address_2",
          "postal_code",
          "city",
          "state",
          "region",
          "country"
        ]
      },
      "IndividualBeneficialOwner": {
        "type": "object",
        "properties": {
          "entity_type": {
            "type": "string",
            "enum": [
              "individual"
            ]
          },
          "name": {
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "position": {
            "type": "string",
            "nullable": true
          },
          "first_name": {
            "type": "string",
            "nullable": true
          },
          "middle_name": {
            "type": "string",
            "description": "May contain multiple middle names",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "nullable": true
          },
          "maiden_name": {
            "type": "string",
            "nullable": true
          },
          "birth_date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Date in format [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)(`yyyy-MM-dd` eg `2023-01-31`)"
          },
          "birth_country": {
            "type": "string",
            "format": "alpha-2",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "[ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code (eg `FR`)"
          },
          "birth_place": {
            "type": "string",
            "nullable": true
          },
          "tax_identification_number": {
            "type": "string",
            "nullable": true
          },
          "voting_rights_percentage": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "ownership_percentage": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "enum": [
              "male",
              "female",
              "other"
            ],
            "nullable": true,
            "description": "Gender of the individual (`male`, `female`, `other`)"
          }
        },
        "required": [
          "entity_type",
          "name",
          "address",
          "position",
          "first_name",
          "middle_name",
          "last_name",
          "maiden_name",
          "birth_date",
          "birth_country",
          "birth_place",
          "gender",
          "tax_identification_number",
          "voting_rights_percentage",
          "ownership_percentage"
        ]
      },
      "CompanyBeneficialOwner": {
        "type": "object",
        "properties": {
          "entity_type": {
            "type": "string",
            "enum": [
              "company"
            ]
          },
          "name": {
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "position": {
            "type": "string",
            "nullable": true
          },
          "registration_number": {
            "type": "string",
            "nullable": true
          },
          "tax_identification_number": {
            "type": "string",
            "nullable": true
          },
          "legal_form": {
            "type": "string",
            "nullable": true
          },
          "entity_legal_form": {
            "type": "string",
            "nullable": true,
            "description": "[ISO 20275](https://www.gleif.org/en/about-lei/iso-20275-entity-legal-forms-code-list) code (eg: `6CHY`)"
          },
          "entity_legal_form_label": {
            "type": "string",
            "readOnly": true,
            "description": "Label in the origin country language of the [ISO 20275](https://www.gleif.org/en/about-lei/iso-20275-entity-legal-forms-code-list) code.  \nMay contains multiple labels separated with a comma `,` when the code is assigned to multiple label in different languages.",
            "nullable": true
          },
          "country": {
            "type": "string",
            "format": "alpha-2",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "[ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code (eg `FR`)"
          },
          "ownership_percentage": {
            "type": "number",
            "format": "float",
            "nullable": true
          }
        },
        "required": [
          "entity_type",
          "name",
          "address",
          "position",
          "registration_number",
          "tax_identification_number",
          "legal_form",
          "entity_legal_form",
          "entity_legal_form_label",
          "country",
          "ownership_percentage"
        ]
      },
      "IndividualShareholder": {
        "type": "object",
        "properties": {
          "entity_type": {
            "type": "string",
            "enum": [
              "individual"
            ]
          },
          "name": {
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "position": {
            "type": "string",
            "nullable": true
          },
          "first_name": {
            "type": "string",
            "nullable": true
          },
          "middle_name": {
            "type": "string",
            "description": "May contain multiple middle names",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "nullable": true
          },
          "maiden_name": {
            "type": "string",
            "nullable": true
          },
          "birth_date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Date in format [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)(`yyyy-MM-dd` eg `2023-01-31`)"
          },
          "birth_country": {
            "type": "string",
            "format": "alpha-2",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "[ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code (eg `FR`)"
          },
          "birth_place": {
            "type": "string",
            "nullable": true
          },
          "tax_identification_number": {
            "type": "string",
            "nullable": true
          },
          "voting_rights_percentage": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "ownership_percentage": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "enum": [
              "male",
              "female",
              "other"
            ],
            "nullable": true,
            "description": "Gender of the individual (`male`, `female`, `other`)"
          }
        },
        "required": [
          "entity_type",
          "name",
          "address",
          "position",
          "first_name",
          "middle_name",
          "last_name",
          "maiden_name",
          "birth_date",
          "birth_country",
          "birth_place",
          "gender",
          "tax_identification_number",
          "voting_rights_percentage",
          "ownership_percentage"
        ]
      },
      "CompanyShareholder": {
        "type": "object",
        "properties": {
          "entity_type": {
            "type": "string",
            "enum": [
              "company"
            ]
          },
          "name": {
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "position": {
            "type": "string",
            "nullable": true
          },
          "registration_number": {
            "type": "string",
            "nullable": true
          },
          "tax_identification_number": {
            "type": "string",
            "nullable": true
          },
          "legal_form": {
            "type": "string",
            "nullable": true
          },
          "entity_legal_form": {
            "type": "string",
            "nullable": true,
            "description": "[ISO 20275](https://www.gleif.org/en/about-lei/iso-20275-entity-legal-forms-code-list) code (eg: `6CHY`)"
          },
          "entity_legal_form_label": {
            "type": "string",
            "readOnly": true,
            "description": "Label in the origin country language of the [ISO 20275](https://www.gleif.org/en/about-lei/iso-20275-entity-legal-forms-code-list) code.  \nMay contains multiple labels separated with a comma `,` when the code is assigned to multiple label in different languages.",
            "nullable": true
          },
          "country": {
            "type": "string",
            "format": "alpha-2",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "[ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code (eg `FR`)"
          },
          "ownership_percentage": {
            "type": "number",
            "format": "float",
            "nullable": true
          }
        },
        "required": [
          "entity_type",
          "name",
          "address",
          "position",
          "registration_number",
          "tax_identification_number",
          "legal_form",
          "entity_legal_form",
          "entity_legal_form_label",
          "country",
          "ownership_percentage"
        ]
      },
      "IndividualRepresentative": {
        "type": "object",
        "properties": {
          "entity_type": {
            "type": "string",
            "enum": [
              "individual"
            ]
          },
          "name": {
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "position": {
            "type": "string",
            "nullable": true
          },
          "first_name": {
            "type": "string",
            "nullable": true
          },
          "middle_name": {
            "type": "string",
            "description": "May contain multiple middle names",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "nullable": true
          },
          "maiden_name": {
            "type": "string",
            "nullable": true
          },
          "birth_date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Date in format [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)(`yyyy-MM-dd` eg `2023-01-31`)"
          },
          "birth_country": {
            "type": "string",
            "format": "alpha-2",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "[ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code (eg `FR`)"
          },
          "birth_place": {
            "type": "string",
            "nullable": true
          },
          "tax_identification_number": {
            "type": "string",
            "nullable": true
          },
          "voting_rights_percentage": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "enum": [
              "male",
              "female",
              "other"
            ],
            "nullable": true,
            "description": "Gender of the individual (`male`, `female`, `other`)"
          }
        },
        "required": [
          "entity_type",
          "name",
          "address",
          "position",
          "first_name",
          "middle_name",
          "last_name",
          "maiden_name",
          "birth_date",
          "birth_country",
          "birth_place",
          "gender",
          "tax_identification_number",
          "voting_rights_percentage"
        ]
      },
      "CompanyRepresentative": {
        "type": "object",
        "properties": {
          "entity_type": {
            "type": "string",
            "enum": [
              "company"
            ]
          },
          "name": {
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "position": {
            "type": "string",
            "nullable": true
          },
          "registration_number": {
            "type": "string",
            "nullable": true
          },
          "tax_identification_number": {
            "type": "string",
            "nullable": true
          },
          "legal_form": {
            "type": "string",
            "nullable": true
          },
          "entity_legal_form": {
            "type": "string",
            "nullable": true,
            "description": "[ISO 20275](https://www.gleif.org/en/about-lei/iso-20275-entity-legal-forms-code-list) code (eg: `6CHY`)"
          },
          "entity_legal_form_label": {
            "type": "string",
            "readOnly": true,
            "description": "Label in the origin country language of the [ISO 20275](https://www.gleif.org/en/about-lei/iso-20275-entity-legal-forms-code-list) code.  \nMay contains multiple labels separated with a comma `,` when the code is assigned to multiple label in different languages.",
            "nullable": true
          },
          "country": {
            "type": "string",
            "format": "alpha-2",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "[ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code (eg `FR`)"
          }
        },
        "required": [
          "entity_type",
          "name",
          "address",
          "position",
          "registration_number",
          "tax_identification_number",
          "legal_form",
          "entity_legal_form",
          "entity_legal_form_label",
          "country"
        ]
      },
      "MergedIndividualRelation": {
        "type": "object",
        "properties": {
          "voting_rights_percentage": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "ownership_percentage": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "description": "`legal_representative` `shareholder`",
            "items": {
              "type": "string",
              "enum": [
                "legal_representative",
                "shareholder"
              ]
            }
          },
          "position": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "voting_rights_percentage",
          "ownership_percentage",
          "roles",
          "position"
        ]
      },
      "MergedCompanyRelation": {
        "type": "object",
        "properties": {
          "ownership_percentage": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "description": "`legal_representative` `shareholder`",
            "items": {
              "type": "string",
              "enum": [
                "legal_representative",
                "shareholder"
              ]
            }
          },
          "position": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "ownership_percentage",
          "roles",
          "position"
        ]
      },
      "MergedIndividual": {
        "type": "object",
        "properties": {
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "position": {
            "type": "string",
            "nullable": true
          },
          "first_name": {
            "type": "string",
            "nullable": true
          },
          "middle_name": {
            "type": "string",
            "description": "May contain multiple middle names",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "nullable": true
          },
          "maiden_name": {
            "type": "string",
            "nullable": true
          },
          "birth_date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Date in format [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)(`yyyy-MM-dd` eg `2023-01-31`)"
          },
          "birth_country": {
            "type": "string",
            "format": "alpha-2",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "[ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code (eg `FR`)"
          },
          "birth_place": {
            "type": "string",
            "nullable": true
          },
          "tax_identification_number": {
            "type": "string",
            "nullable": true
          },
          "voting_rights_percentage": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "description": "`legal_representative` `shareholder`",
            "items": {
              "type": "string",
              "enum": [
                "legal_representative",
                "shareholder"
              ]
            }
          },
          "ownership_percentage": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "is_beneficial_owner": {
            "type": "boolean"
          },
          "is_business_contact": {
            "type": "boolean"
          },
          "gender": {
            "type": "string",
            "enum": [
              "male",
              "female",
              "other"
            ],
            "nullable": true,
            "description": "Gender of the individual (`male`, `female`, `other`)"
          },
          "nationalities": {
            "nullable": true,
            "description": "Nationalities as ISO 3166-1 alpha-2 country codes",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "relations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MergedIndividualRelation"
            }
          }
        },
        "required": [
          "address",
          "position",
          "first_name",
          "middle_name",
          "last_name",
          "maiden_name",
          "birth_date",
          "birth_country",
          "birth_place",
          "gender",
          "tax_identification_number",
          "voting_rights_percentage",
          "roles",
          "ownership_percentage",
          "is_beneficial_owner",
          "is_business_contact",
          "nationalities",
          "relations"
        ]
      },
      "MergedCompany": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "registration_number": {
            "type": "string",
            "nullable": true
          },
          "tax_identification_number": {
            "type": "string",
            "nullable": true
          },
          "legal_form": {
            "type": "string",
            "nullable": true
          },
          "entity_legal_form": {
            "type": "string",
            "nullable": true,
            "description": "[ISO 20275](https://www.gleif.org/en/about-lei/iso-20275-entity-legal-forms-code-list) code (eg: `6CHY`)"
          },
          "country": {
            "type": "string",
            "format": "alpha-2",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true,
            "description": "[ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code (eg `FR`)"
          },
          "type": {
            "type": "string",
            "enum": [
              "affiliated"
            ]
          },
          "relations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MergedCompanyRelation"
            }
          }
        },
        "required": [
          "name",
          "address",
          "registration_number",
          "tax_identification_number",
          "legal_form",
          "entity_legal_form",
          "country",
          "type",
          "relations"
        ]
      },
      "CompanyData": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "commercial_name": {
            "type": "string",
            "nullable": true
          },
          "registration_number": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "format": "alpha-2",
            "minLength": 2,
            "maxLength": 2,
            "description": "[ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code (eg `FR`)"
          },
          "status": {
            "type": "string",
            "enum": [
              "live",
              "closed",
              "not_reported"
            ]
          },
          "registration_date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Date in format [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)(`yyyy-MM-dd` eg `2023-01-31`)"
          },
          "legal_form": {
            "type": "string",
            "nullable": true
          },
          "entity_legal_form": {
            "type": "string",
            "nullable": true,
            "description": "[ISO 20275](https://www.gleif.org/en/about-lei/iso-20275-entity-legal-forms-code-list) code (eg: `6CHY`)"
          },
          "entity_legal_form_label": {
            "type": "string",
            "readOnly": true,
            "description": "Label in the origin country language of the [ISO 20275](https://www.gleif.org/en/about-lei/iso-20275-entity-legal-forms-code-list) code.  \nMay contains multiple labels separated with a comma `,` when the code is assigned to multiple label in different languages.",
            "nullable": true
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "share_capital": {
            "type": "string",
            "nullable": true
          },
          "tax_identification_number": {
            "type": "string",
            "nullable": true
          },
          "website_url": {
            "type": "string",
            "nullable": true
          },
          "classifications": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompanyClassification"
            }
          },
          "beneficial_owners": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/IndividualBeneficialOwner"
                },
                {
                  "$ref": "#/components/schemas/CompanyBeneficialOwner"
                }
              ]
            }
          },
          "shareholders": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/IndividualShareholder"
                },
                {
                  "$ref": "#/components/schemas/CompanyShareholder"
                }
              ]
            }
          },
          "legal_representatives": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/IndividualRepresentative"
                },
                {
                  "$ref": "#/components/schemas/CompanyRepresentative"
                }
              ]
            }
          },
          "merged_individuals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MergedIndividual"
            }
          },
          "merged_companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MergedCompany"
            }
          }
        },
        "required": [
          "name",
          "commercial_name",
          "registration_number",
          "country",
          "status",
          "registration_date",
          "legal_form",
          "entity_legal_form",
          "entity_legal_form_label",
          "address",
          "share_capital",
          "tax_identification_number",
          "website_url",
          "classifications",
          "beneficial_owners",
          "shareholders",
          "legal_representatives",
          "merged_individuals",
          "merged_companies"
        ]
      }
    }
  },
  "security": [
    {
      "DotfileAPIKey": []
    }
  ],
  "x-uploaded-at": "2026-11-27T13:35:56.358Z",
  "x-commit-sha": "d448576ed306eff7e3d52b5ba0cdc9edb8980e72"
}
```