Learn how to authenticate and authorize with Ensot's developer platform using API keys, OAuth 2.0, and JWT tokens.
Simple and direct authentication method suitable for server-to-server communication.
Authorization: Bearer YOUR_API_KEY
Secure third-party access with refresh tokens and user consent workflows.
POST /token
Client-Id: XXX
Client-Secret: XXX
Grant-Type: authorization_code
Stateless authentication with encoded claims and JSON Web Signatures.
{
"Authorization": "Bearer XXX.JWT.XXX",
"alg": "HS256",
"exp": 1629306989
}
// Example API call with authentication
fetch('https://api.ensot.com/v1/users/me', {
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
}
})
.then(response => response.json())
.then(data => console.log(data));