It seems the available documentation doesn't immediately provide a straightforward answer to your query. However, I can suggest a general approach based on the capabilities of Prefect's API and server.
You would typically interact with the Prefect API to obtain information about tasks associated with a given flow id by leveraging the GraphQL API that Prefect exposes. Unfortunately, the search didn't yield a direct code snippet or API call example.
Here's a conceptual outline of how you might proceed:
1. Use the GraphQL API to query for a flow with a certain ID.
2. From the flow data, extract the information about tasks.
You will likely need to construct a GraphQL query that specifies the flow ID as a parameter and selects the tasks as part of the returned data. The documentation for Prefect's GraphQL schema can be crucial here to form the correct query:
Prefect GraphQL API.
Since we haven't found an exact piece of code via the documentation search, you might want to further look into Prefect's GitHub issues or forums for users who have asked similar questions, or refer to the GraphQL API documentation for constructing a fitting query manually.