It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using seraph.confluence cookie to with curl


I'm created an application that runs on Linux, automatically generate content and upload it to wiki via REST API using curl library.

In order to connect and upload the content, the users have to provide their password - each time they runs the application - something that I want to avoid.

In addition, I prefer not to manage the users password in anyway in my application.

I've read about the available authentication methods and found that there is a way to authenticate using the long lived cookie named "seraph.confluence".

however, it seems that this option is only available when using modern browsers that runs javascript code.


Is there any way to get the seraph.confluence cookie and use it when running w/ curl based application?


Thanks a lot

1 answer

Hi @אבי אליהו ,

Maybe I misunderstand question, but You would like use cookie 'remember me' functionality in curl?

How I know curl can use cookie, but it is separate application. Each application have it's own cookie storage, e.g. firefox can't get access to cookie in chrome.

That mean You need first log-in to conf use curl (with turn on cookie) to give'seraph.confluence' value or use value from browser, but add it to curl manually.

For basic auth You can encode password to base64.

Also for cloud exist 'api_token' maybe some similar exist to server.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

306 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you