Links

Authenticate with Postman

Postman example

Introduction:

This guide will introduce you to authenticate with Postman.

Prerequisites:

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 }