> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. ## Link to API endpoints with `api:` syntax writing-content Link to API endpoints by HTTP method and path using the `api:` link syntax, instead of hardcoding URL slugs. Fern resolves these links to the correct endpoint URL at build time. ```mdx Create a payment ``` This works in Markdown pages, OpenAPI `description` fields, and Fern Definition `docs` fields. Read the docs