This functionality is in technical preview and may be changed or removed in a future release. Elastic will apply best effort to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
Fleet is fully supported by an API layer. Any actions you can perform through the Fleet UI are also available through the API.
Please refer to the Fleet OpenAPI file in the Kibana repository for more details.