Personal access tokens
You should get a personal access token from the modme settings page and use it to authenticate with the modme API.
Checking token validity
You can check if your token is valid by using that API endpoint:
GET /v2/token/me
Headers
Key | Value | Optional | Description |
---|---|---|---|
Authorization | Bearer {token} | no | Token to validate and check abilities |
Response 200
{
"status": 200,
"success": true,
"data": {
"token": {
"expires_at": "2025-12-12 23:59:59",
"abilities": [
"see-role", "see-company", "see-user"
]
},
"company": {
"id": 1,
"name": "Demo company"
},
"user": {
"id": 1,
"name": "Token's owner's name"
}
}
}