Skip to main content

API Version 5.0 - Integration - (1100) - πŸ”΄πŸ”΄πŸ”΄

Deon Don avatar
Written by Deon Don
Updated over 2 weeks ago

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.

-[ ] β­• 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.

Did this answer your question?