1.2 KiB
1.2 KiB
description
| description |
|---|
| Postman example |
Authenticate with Postman
Introduction:
This guide will introduce you to authenticate with Postman.
Prerequisites:
- You are a manager of the company.
- You have already created a Twake application.
- You have previously installed Postman.
Steps:
1. Log your Application
- Open Postman
- Find the app's credentials according to #3.-api-settings
- Send POST request with :
- Url: https://web.twake.app/api/console/v1/login
- Headers:
{ "Content-Type": "application/json", } - Body:
{ id: $APP_ID, secret: $APP_SECRET``}
- This POST request will return a JWT token, this token will allow your application to send events in Twake
2. Optional: Verify your token
If you're not sure that the procedure to generate a token goes well :
- Send GET request with :
- Url: https://web.twake.app/api/console/v1/me
- Headers:
{ "Content-Type": "application/json",Authorization: "Bearer " + $APP_TOKEN }