Authentication
Authentication
Authentication to Wisdom's HTTP REST API generally requires one of two methods.
- Utilizes JSON Web Tokens (JWTs). All authenticated API endpoints require the HTTP header
Authorizationwith the valuebearer <__YOUR_JWT_HERE__>. Tokens are valid for one hour. - Utilize Application level API (secret) Keys
Generate Token (valid for one hour)
HTTP POST https://api.getwisdom.io/v1/auth/login/jwt
- Requires parameter
email - Requires parameter
password - Success returns
{token: __YOUR_JWT_HERE__}
Example: Get current user data
HTTP GET https://api.getwisdom.io/v1/user/self. Requires one of:
- HTTP header
Authorization: bearer __YOUR_JWT_HERE__ - Query parameter
apiSecretToken(you can get this from your project's API config page.
- Success returns JSON