# How to login to confluence using REST API

**URL:** <https://community.developer.atlassian.com/t/how-to-login-to-confluence-using-rest-api/10457>\
**Category:** Confluence Server\
**Tags:** rest-api-browser, auth, rest-api, confluence-developers\
**Created:** [October 27, 2017, 2:24am UTC](https://community.developer.atlassian.com/t/how-to-login-to-confluence-using-rest-api/10457 "2017-10-27T02:24:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CSTJiraConfluenceAdm](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@CSTJiraConfluenceAdm](https://community.developer.atlassian.com/u/CSTJiraConfluenceAdm)\
**Post date:** [October 27, 2017, 2:24am UTC](https://community.developer.atlassian.com/t/how-to-login-to-confluence-using-rest-api/10457/1 "2017-10-27T02:24:12Z")

</div>

Hi,

For Login,

- In JIRA, API there is POST /rest/auth/1/session
- In Confluence, is there something similar equivalent API for confluence login ?

We couldn’t find in Confluence REST API browser or in documentation. Just wondering how to get this.

This is required for our activities to login & upload content

Appreciate if any advise/suggestions

---

<div class="post-metadata">

**Author:** ![Panos](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/panos/32/36018_2.png) [@Panos](https://community.developer.atlassian.com/u/Panos)\
**Post date:** [October 27, 2017, 7:13am UTC](https://community.developer.atlassian.com/t/how-to-login-to-confluence-using-rest-api/10457/2 "2017-10-27T07:13:14Z")

</div>

Have you seen [Basic auth for REST APIs](https://developer.atlassian.com/cloud/confluence/basic-auth-for-rest-apis/) ?

---

<div class="post-metadata">

**Author:** ![yadunandan](https://avatars.discourse-cdn.com/v4/letter/y/bcef8e/32.png) [@yadunandan](https://community.developer.atlassian.com/u/yadunandan)\
**Post date:** [November 21, 2017, 3:08am UTC](https://community.developer.atlassian.com/t/how-to-login-to-confluence-using-rest-api/10457/3 "2017-11-21T03:08:21Z")

</div>

Hi,

I am planning to use VBA to communicate with confluence using confluence rest APIs to post the data we have generated on the macro enabled(.xlsm) excel workbook.

Kindly advise me the API I can use for login to the confluence.

Thanks,  
Yadu
