# "Api-Key" and "Api-Username" for try.discourse.org?

**URL:** https://meta.discourse.org/t/api-key-and-api-username-for-try-discourse-org/203150
**Category:** Development
**Tags:** rest-api
**Created:** [September 10, 2021, 10:32am UTC](https://meta.discourse.org/t/api-key-and-api-username-for-try-discourse-org/203150 "2021-09-10T10:32:49Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [January 29, 2025, 6:40am UTC](https://meta.discourse.org/t/api-key-and-api-username-for-try-discourse-org/203150/12 "2025-01-29T06:40:33Z")

</div>

have you read the api documentation?

especially this

> [@User API keys specification](https://meta.discourse.org/t/user-api-keys-specification/48536):
>
> Discourse contains a system for generating API keys per user if a very specific protocol is followed. This feature facilitates “application” access to Discourse instances without needing to involve moderators. High level description At a high level: Client (desktop app, browser plugin, mobile app) generates a private/public key pair and return url Client redirects to a route on discourse giving discourse its public key Discourse gets approval from user to use app Discourse generat…

also these

> [@Discourse REST API Documentation](https://meta.discourse.org/t/discourse-rest-api-documentation/22706):
>
> Discourse API Please view the Discourse API Documentation site for detailed info: [https://docs.discourse.org](https://docs.discourse.org)information_source Authentication API requests must use HTTP header based authentication. Pass your Api-Key and Api-Username as HTTP headers. Authentication via query parameters or request body is not supported (this was removed in April 2020). Please see the example cURL request below. The only API endpoints that continue to support credentials in query parameters are requests to…

---

_[View the full topic](https://meta.discourse.org/t/api-key-and-api-username-for-try-discourse-org/203150)._
