REST api for these forums?

I think discourse offers a REST API. Do the nice people who are running the forum know if it is enabled? Who do I talk to request access if that’s possible?

1 Like

It does indeed have a comprehensive REST API.
I think it can be enabled at user level (so you can do things via the API that your user can do) or at forum level, with granular scoping. Which would you need?

Thanks a lot @marcusbaw . I think user is what I’d like. I just need programmatic access equal to my user access.

1 Like

Let me sort that for you when I get back to laptop later

1 Like

Whenever works for you, no urgency on my end, and thanks again.

Turns out User API was already enabled for all users. This gives them access to their own account but via API.

Looking at the spec it looks more like it’s an OAuth2 type flow

There isn’t a place to ‘generate an API key’, this is done as part of that OAuth-y flow.

Let me know if you have any problems. And if you are succesful with whatever you’re integrating then I’d be interested to see what it is, maybe a little write-up in General Discussion would be cool to show others what’s possible with Discourse.

3 Likes