# Logging in discourse using API - using discourse as API server only

**URL:** <https://meta.discourse.org/t/logging-in-discourse-using-api-using-discourse-as-api-server-only/68938>\
**Category:** Development\
**Created:** [2017 年 8 月 28 日午後 4:00 UTC](https://meta.discourse.org/t/logging-in-discourse-using-api-using-discourse-as-api-server-only/68938 "2017-08-28T16:00:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Tech\_Domain](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tech_domain/32/155321_2.png) [@Tech\_Domain](https://meta.discourse.org/u/Tech_Domain)\
**Post date:** [2017 年 8 月 28 日午後 4:00 UTC](https://meta.discourse.org/t/logging-in-discourse-using-api-using-discourse-as-api-server-only/68938/1 "2017-08-28T16:00:17Z")

</div>

I want to login discourse using API.

**But there is no such API in [docs.discourse.org](http://docs.discourse.org).**

I checked many questions regarding Q1, but I am surprised none of them correctly answer (other than ‘check the network logs and figure it out’). **Can we not use discourse purely as api server?** If we are having api docs, then I thought login would surely have been implemented.

If there any specific reason login has been left out?

(More explanation)  
The [docs.discourse.org](http://docs.discourse.org) suggests to pass the api\_key to make the authenticated calls. But I do not want to use the master api key. Also I do not want to use discourse as SSO provider, and send the user to login page of discourse. I want to make login to discourse directly.

---

_[View the full topic](https://meta.discourse.org/t/logging-in-discourse-using-api-using-discourse-as-api-server-only/68938)._
