Objet : Private API Call returns "Unauthorized" despite valid key, correct headers, and successful deployment

Project Settings

i have a Private API Call ("Claudechat") configured to call the Anthropic API (Claude), POST to https://api.anthropic.com/v1/messages. Headers configured: x-api-key, anthropic-version: 2023-06-01, content-type: application/json. The Cloud Function deployment shows "Deployed" (green checkmark) in the Deploy Private APIs section. However: - The "Test API Call" button returns: {"type":"error","error":{"type":"authentication_error","message":"x-api-key header is required"}}, Status 401. - The detailed error shows the request going through a URL like https://[random-name].herokuapp.com/https://api.anthropic.com/v1/messages — looks like the proxy is malformed/concatenating URLs incorrectly. - Testing the app in real Run/Test mode also returns {"error":"Unauthorized"} on the first chat message.

What have you tried so far ? :

What have you tried so far?

- Verified my API key works correctly outside FlutterFlow (tested directly via curl in Terminal, got a valid 200 response from Claude). - Re-checked the 3 headers multiple times, Name/Value correctly separated. - Deleted and recreated the API call from scratch. - Confirmed Cloud Functions deployment shows "Deployed" with green checkmark.

Did you check FlutterFlow's Documentation for this topic?
No
2
5 replies