A token is required for any API request that is hitting a backend route.
Navigate to your OptiPub instance and then click on your name located at the top right of the page. Then click
Profile. Next, click
Create New Token button and then give your token a recognizable name. Click
Create and a new token will be presented to you.
Your personal access token has the same permissions as the user who created it. Keep this token safe guarded. It is recommended that you create a separate user with restricted permissions if you are going to be accessing the API.