Skip to main content
POST
/
connections
Add Connection
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": "<any>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
current_user
string
required
Example:

"username1"

connected_peer
string
required
Example:

"username2"

Response

200 - application/json

Connection created

data
any
I