Hey :prefect-duck:-Community, are the OpenAPI sch...
# ask-community
t
Hey prefect duck-Community, are the OpenAPI schemas of the Prefect Flow Deployments at Prefect Cloud available via a private/public URL so that someone else could generate code to execute it easily? Happy to create a feature request otherwise 🙂
✅ 1
a
Hey @Tobias Rohnstock! You can get the parameter schema for a deployment via the
GET /deployments/{id}
endpoint and inspecting the
parameter_openapi_schema
attribute in the response. You’ll need to be authenticated to call that endpoint, but it should give you what you need to generate a model that can be used with the
/deployments/{id}/create_flow_run
endpoint.
t
Thanks for the rapid response - you are amazing! Sounds good, we will give it a try!