How do I get an API Key / Bearer token?
The user needs to go to Authentication, Login, Enter their email and password and then they will get a token in the response, They need to add the word ‘Bearer’ to the start of it.
If the user wants to create an application that acts on behalf of the user, he can create an Oauth app here : https://api.pavlok.com/api/v5/oauth/login
Test out the Pavlok API using Postman:
-[ ] ⭕ Obtain API Credentials:
-[ ] ⭕ Visit the Pavlok API Documentation and log in with your Pavlok account.
-[ ] ⭕ Navigate to the Developer Dashboard to retrieve your API Key.
-[ ] ⭕ Open Postman and create a new Collection named "Pavlok API".
-[ ] ⭕ Within this collection, create a new Request.
-[ ] ⭕ In the request, go to the Authorization tab.
-[ ] ⭕ Select Bearer Token as the type.
-[ ] ⭕ Enter your API Key in the Token field.
-[ ] ⭕ Refer to the Pavlok API Documentation for available endpoints.
-[ ] ⭕ For example, to send a stimulus:
-[ ] ⭕ Set Method to POST.
-[ ] ⭕ Set URL to `https://api.pavlok.com/api/v5/stimulus/send`.
-[ ] ⭕ Add Headers with `Content-Type: application/json`.
-[ ] ⭕ Add Body (raw JSON):
```json
{
"stimulus": {
"stimulusType": "zap",
"stimulusValue": 50
}
}
```
-[ ] ⭕ Click Send to execute the request.
-[ ] ⭕ Check the response status and body to understand the API's behavior.
-[ ] ⭕ Adjust parameters as needed to test different functionalities.
-[ ] ⭕ Note the endpoints tested, parameters used, and responses received.
-[ ] ⭕ Document findings to assist in future integrations or developments.
-------------------------------------------
Hey there! This quick read was whipped up by yours truly, Deon Don, over at Pavlok Research.
Got questions or wanna suggest some cool features?
Shoot me a text at (731) 472-8565.
Don't sweat it if I don't hit you back right away – I'll definitely circle back to you after I've had a chance to check my messages.
And yes, I read every single one.