Hi Nathan,
Thanks for reaching out! The error you're seeing ("RouteNotFound") is happening because the /conversations endpoint you're using isn’t meant to return a Direct Line token.
To resolve this, please use the following endpoint instead:
POST https://{ENV}.environment.api.powerplatform.com/copilotstudio/directline/token?api-version=2022-03-01-preview
Also, make sure to include this header in your request:
Authorization: Bearer <your_web_channel_secret>
You can find the secret in your Copilot Studio Web Application channel settings.
For reference, here are some helpful documents:
Best regards,
Karan Shewale.
*************************************************************************
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.