Create token for me
Creates a token for the authenticated user. Store the returned token securely: it is the
credential sent in the Authorization header for subsequent API calls.
Request body
name
string
Responses
-
201
Resource created successfully
X-Mantis-UsernameX-Mantis-LoginMethodX-Mantis-Version - 400 Bad Request
- 404 Entity not found
cURL
curl -X POST \
-H "Authorization: Bearer $MANTIS_TOKEN" \
-H "Content-Type: application/json" \
https://yourmantishubname.mantishub.io/api/rest/users/me/token \
-d '{
"name": "string"
}'
Request body · application/json
{
"name": "string"
}