> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiI4N2QxNzkxYS05YzBiLTRiZmQtODFiYy0wYTUxZWI1MGU3NDgiLCJleHAiOjE3ODExNzU2NDgsImlhdCI6MTc4MTE3NTM0OH0.Tpah6I7pcahtMKno-sUv1mZhQr5lm9J4JQsTX8w4Sl0
>
> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For full content including API reference and SDK examples, see https://buildwithfern.com/learn/llms-full.txt.

# Imports in Fern Definition

> Use imports to reference API types and errors from other Fern Definition files.

Fern Definition isn't recommended for new customers and Fern isn't accepting feature requests for this format. It remains supported for existing users.

Imports allow you to reference types and errors from other files.

```yaml title="person.yml"
types:
  Person: ...
```

```yaml title="family.yml"
imports:
  person: ./path/to/person.yml
types:
  Family:
    properties:
      people: list<person.Person> # use an imported type
```

Note that you can only import files that exist in your Fern Definition (i.e., in the same `definition/` folder).