APIキーはこれに使えますか?

Yes, that is possible. It’s a PUT to /admin/users/${user.id}/trust_level passing the parameter level with the number of the trust level you want.

You can learn all the API can do at How to reverse engineer the Discourse API

「いいね!」 2