401 error in HTTP Request node

I'm trying to set up an app that should fetch Confluence articles via API. My sample request works in curl, but when I try it in Dify, I get this:

HTTP Status 401 – Unauthorized
Type Status Report
Message Basic Authentication Failure
Description The request has not been applied to the target resource because it lacks valid authentication credentials for that resource. Apache Tomcat/9.0.102

This is my curl request:

curl -H "Authorization: Basic <API Key in base64>" -H "Accept: application/json" "https://<company name>.atlassian.net/wiki/rest/api/content/<article variable>?expand=body.storage"

Posted Jun 3, 2025, 7:47 AM UTC

11
Loading comments…