# API Reference

This page provides the interactive Swagger UI documentation for the RCPCH Digital Growth Charts API. Use this reference to explore available endpoints, request/response schemas, and to try out API calls directly.

> [!CAUTION]
>
> **Persist calculation provenance**
>
> Successful calculation responses identify the exact calculation-engine and API-server versions and commits that produced the result. Implementers are expected to store this complete `provenance` object unchanged with every persisted measurement result. See [Persisting API Results And Provenance](<https://growth.rcpch.ac.uk/integrator/persisting-api-results/index.md>).

> [!WARNING]
>
> **API baseURL**
>
> For all API calls to the Growth Charts API, you should use the baseURL
>
> ```
> https://api.rcpch.ac.uk/growth/v1
> ```
>
> - **path**: Our API path naming policy (`growth`) is designed to allow the same baseUrl to be used for other APIs in the future.
> - **versioning**: We have versioned the API `v1` to allow for future versions to be developed without interfering with existing integrations.
> - **relative**: All API requests should be made to this URL, and the endpoints described in the API definition are relative to this base URL.
> - **authentication**: The API will return Unauthorized or Not Found (4xx) responses if the request does not include a valid API key.
