Notifications
Announcements
Hi everyone,
I'm trying to make a POST request to the Snowflake Cortex API (using the endpoint described here), but it's not working in Copilot Studio. HTTP request failed with status code 400 BadRequest. Error code: HttpRequestFailure.
Here's the situation:
I was wondering if there's something specific I need to adjust in Copilot Studio that might differ from Postman? Could the issue be with how the Body is formatted, or is there something else I should check with the request setup?
Content-Type: application/json
Authorization: Bearer <token> X-Snowflake-Authorization-Token-Type: KEYPAIR_JWT
{ "messages": [ { "role": "user", "content": [ { "type": "text", "text": "find client TEST" } ] } ], "semantic_model_file": "@DB.SCHEMA.STAGE/SEMANTICFILE.yaml" }
Yaml Portion: - kind: HttpRequestAction id: Ym4X1Z displayName: CortexREST method: Post url: =Topic.CortexAPIEndpoint headers: Authorization: Bearer ey... Content-Type: application/json X-Snowflake-Authorization-Token-Type: KEYPAIR_JWT
Yaml Portion:
Any insights or troubleshooting steps would be greatly appreciated!
Thanks!
"@my_stage/my_semantic_model.yaml"
- kind: HttpRequestAction id: IlwYeW method: Post url: https://<baseUrl>/api/v2/cortex/analyst/message headers: Accept: application/json Authorization: =Topic.BearerTokenSF Content-Type: application/json X-Snowflake-Authorization-Token-Type: KEYPAIR_JWT body: kind: JsonRequestContent content: |- ={ messages: [ { role: "user", content: [ { type: "text", text: Topic.InputValue } ] } ], semantic_model_file: Topic.SemanticModelFilePath }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 251 Super User 2025 Season 2
Romain The Low-Code... 201 Super User 2025 Season 2
S-Venkadesh 93 Moderator