# Discourse-abonnementen van een gebruiker ophalen via de API

**URL:** https://meta.discourse.org/t/getting-a-users-discourse-subscriptions-through-api/215395
**Category:** Development
**Tags:** rest-api
**Created:** [19 januari 2022 om 23:02 UTC](https://meta.discourse.org/t/getting-a-users-discourse-subscriptions-through-api/215395 "2022-01-19T23:02:42Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [19 januari 2022 om 23:07 UTC](https://meta.discourse.org/t/getting-a-users-discourse-subscriptions-through-api/215395/2 "2022-01-19T23:07:57Z")

</div>

> [@Nerd\_Alert](#):
>
> I’m passing in their csrf token

You should be passing in the API key and username:

> [@Discourse REST API Documentation](https://meta.discourse.org/t/discourse-rest-api-documentation/22706/1):
>
> Here is an example POST request via cURL:
> 
> ```plaintext
> curl -X POST "http://127.0.0.1:3000/categories" \
> -H "Content-Type: multipart/form-data;" \
> -H "Api-Key: 714552c6148e1617aeab526d0606184b94a80ec048fc09894ff1a72b740c5f19" \
> -H "Api-Username: discourse1" \
> -F "name=89853c20-4409-e91a-a8ea-f6cdff96aaaa" \
> -F "color=49d9e9" \
> -F "text_color=f0fcfd"
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/getting-a-users-discourse-subscriptions-through-api/215395)._
