Returns messages for a thread. Messages are fetched from the ThreadAgent Durable Object.
WorkOS JWT token. Obtain via WorkOS AuthKit authentication flow. The token must include organization_id claim for organization-scoped endpoints.
Thread ID to fetch messages for
Maximum messages to return
1 <= x <= 100