Search code examples
c#jsonhttpbad-requestpushbullet

Add contact to pushbullet with the api


I'm trying to add a contact to my contacts on pushbullet using the api.

I send following json data with my POST request to https://api.pushbullet.com/v2/contacts

{ "name": "some name", "email": "[email protected]" }

According to the documentation this should add the contact. Instead I get a bad request error.

When requesting my list of contacts via the api, it is always empty. I can add contacts using the Windows desktop client and via the web. However those contacts only show up on the desktop and on the web, not when using the api.


Solution

  • This request works fine for me, what exactly is the request you are using and what does the bad request error say?

    Contacts were recently replaced with /v2/chats, which is not documented yet, I should replace them in the docs, sorry about that!