cURL
curl --request POST \ --url https://api.offlineprotocol.com/api/v1/connections \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "current_user": "username1", "connected_peer": "username2" } '
{ "data": "<unknown>" }
Adds a new connection between users.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"username1"
"username2"
Connection created