-
Notifications
You must be signed in to change notification settings - Fork 1
Creating an api token
Richard Moss edited this page Jul 10, 2017
·
1 revision
The MantisBT REST API uses tokens for authentication, rather than sending usernames and passwords.
Skip the steps for creating a user and impersonating them if you just want to create a token for your own account
To create an API token
- Click Manage from the MantisBT sidebar
- Click the Manage Users tab
- Click Create New Account
- Enter a user name, for example
restuser - Set an appropriate access level
- Click Create User
- Click Proceed
- Click Impersonate User
- Click Proceed
- Open the menu in the top right corner of the display and click My Account
- Click the API Tokens tab
- Enter a useful name
- Click Create API Token
- Copy the token somewhere - it will only be displayed the once!
- Open the menu in the top right corner of the display and click Logout
You can use use the token with API requests.
Note! The access level influences how much information is returned via the client. For example,
vieweronly gets the absolute basic information. Successive levels include more information. Also, remember that the REST API can be used to delete or create new issues so it is worth thinking carefully about the access level