How Generate Admin Token and call API create Topic

Unsolved Technical Support
  • I build my website base on nodebb.
    I have group Facebook and now i want to build a tool crawl all question from group to my website.
    In my VPS i have upgrade nodebb 1.14x to 1.18.4.
    But i cannot generate token to use v3/api of nodebb.
    Call API: POST
    https://domain.vn/api/v3/users/5866/tokens
    (5866 is my uid admin account) but got forbidden like picture below:
    Is that issue about CORS or session, admin setting?
    I found some docs talk about 2 type token (master and user token) but i not really understand them. Please help me make a sample to call my API create topic or post by Request package npm.

    Thank you a lot.

    744109d5-1319-421d-8b60-f775c5f17c85-image.png


Suggested Topics


| | | |