Does Discourse have support for PAT tokens?

Is there support for PAT tokens in Discourse. There is a particular use-case we are working on that we might need PAT tokens. If yes, where can I find them?

You can create an api key assigned to a specific user and it will use the same user permissions that they have access to when logged in.


There are also (if enabled), user-provisioned API keys.

1 Like

Tried out this request but it didn’t work, am I doing something wrong here?

I’m testing out things such that a webhook gets triggered when I request a user api key

I’m getting a 404 error

I don’t believe discourse has a webhook that will trigger when a “user api key” is requested.

Are you trying to use one of these events to trigger the webhook?

1 Like