MENU navbar-image

Introduction

This documentation aims to provide about P2P API.

Authenticating requests

This API is not authenticated.

Endpoints

POST p2p_api/v1/check_peer

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/check_peer"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/check_peer"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/check_peer'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/check_peer';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/check_peer

POST p2p_api/v1/serve_external_peer_details

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/serve_external_peer_details"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/serve_external_peer_details"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/serve_external_peer_details'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/serve_external_peer_details';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/serve_external_peer_details

POST p2p_api/v1/receive_message_endpoint_peer

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_peer"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_peer"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_peer'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_peer';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/receive_message_endpoint_peer

POST p2p_api/v1/receive_message_endpoint_site_definition

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_site_definition"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_site_definition"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_site_definition'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_site_definition';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/receive_message_endpoint_site_definition

POST p2p_api/v1/receive_message_endpoint_site_peer

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_site_peer"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_site_peer"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_site_peer'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_site_peer';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/receive_message_endpoint_site_peer

POST p2p_api/v1/receive_message_endpoint_visitor_record

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_visitor_record"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_visitor_record"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_visitor_record'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_visitor_record';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/receive_message_endpoint_visitor_record

POST p2p_api/v1/receive_message_endpoint_visitor_resource

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_visitor_resource"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_visitor_resource"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_visitor_resource'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/receive_message_endpoint_visitor_resource';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/receive_message_endpoint_visitor_resource

Is peer eager to host a specific site

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/check_site_hosting_eagerness"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/check_site_hosting_eagerness"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/check_site_hosting_eagerness'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/check_site_hosting_eagerness';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/check_site_hosting_eagerness

POST p2p_api/v1/check_hashes_hosting_state

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/check_hashes_hosting_state"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/check_hashes_hosting_state"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/check_hashes_hosting_state'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/check_hashes_hosting_state';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/check_hashes_hosting_state

POST p2p_api/v1/check_site_hosting_state

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/check_site_hosting_state"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/check_site_hosting_state"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/check_site_hosting_state'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/check_site_hosting_state';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/check_site_hosting_state

POST p2p_api/v1/resource_upload_endpoint

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/resource_upload_endpoint"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/resource_upload_endpoint"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/resource_upload_endpoint'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/resource_upload_endpoint';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/resource_upload_endpoint

POST p2p_api/v1/p2p_visitor_files

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/p2p_visitor_files"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/p2p_visitor_files"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/p2p_visitor_files'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/p2p_visitor_files';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/p2p_visitor_files

POST p2p_api/v1/handle_passive_client_initiating_session

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/handle_passive_client_initiating_session"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/handle_passive_client_initiating_session"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/handle_passive_client_initiating_session'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/handle_passive_client_initiating_session';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/handle_passive_client_initiating_session

POST p2p_api/v1/handle_passive_awaiting_requests

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/handle_passive_awaiting_requests"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/handle_passive_awaiting_requests"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/handle_passive_awaiting_requests'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/handle_passive_awaiting_requests';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/handle_passive_awaiting_requests

P2P Query Endpoint

requires authentication

Endpoint to query local or peer database

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/p2p_query_endpoint" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"query_parameters\": \"Json body of query parameters - {\\\"table\\\":\\\"posts\\\",\\\"where\\\":[[\\\"title\\\",\\\"!=\\\",\\\"excluded_title\\\"]]}\"
}"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/p2p_query_endpoint"
);

const headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "query_parameters": "Json body of query parameters - {\"table\":\"posts\",\"where\":[[\"title\",\"!=\",\"excluded_title\"]]}"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/p2p_query_endpoint'
payload = {
    "query_parameters": "Json body of query parameters - {\"table\":\"posts\",\"where\":[[\"title\",\"!=\",\"excluded_title\"]]}"
}
headers = {
  'Accept': 'application/json',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/p2p_query_endpoint';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'query_parameters' => 'Json body of query parameters - {"table":"posts","where":[["title","!=","excluded_title"]]}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):


{
    "success": true,
    "data": [
        {
            "body": "Post body"
        }
    ]
}
 

Request      

POST p2p_api/v1/p2p_query_endpoint

Headers

Accept        

Example: application/json

Content-Type        

Example: application/json

Body Parameters

query_parameters   json     

Example: Json body of query parameters - {"table":"posts","where":[["title","!=","excluded_title"]]}

POST p2p_api/v1/request_data_endpoint

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/request_data_endpoint"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/request_data_endpoint"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/request_data_endpoint'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/request_data_endpoint';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/request_data_endpoint

POST p2p_api/v1/receive_fulfilled_retrieval

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/receive_fulfilled_retrieval"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/receive_fulfilled_retrieval"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/receive_fulfilled_retrieval'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/receive_fulfilled_retrieval';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/receive_fulfilled_retrieval

POST p2p_api/v1/request_modified_between_dates

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/request_modified_between_dates"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/request_modified_between_dates"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/request_modified_between_dates'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/request_modified_between_dates';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/request_modified_between_dates

POST p2p_api/v1/receive_fulfilled_crowd_query

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/receive_fulfilled_crowd_query"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/receive_fulfilled_crowd_query"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/receive_fulfilled_crowd_query'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/receive_fulfilled_crowd_query';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/receive_fulfilled_crowd_query

POST p2p_api/v1/api_publish_site

Example request:
curl --request POST \
    "http://snet.localhost:15080/p2p_api/v1/api_publish_site"
const url = new URL(
    "http://snet.localhost:15080/p2p_api/v1/api_publish_site"
);



fetch(url, {
    method: "POST",
}).then(response => response.json());
import requests
import json

url = 'http://snet.localhost:15080/p2p_api/v1/api_publish_site'
response = requests.request('POST', url, )
response.json()
$client = new \GuzzleHttp\Client();
$url = 'http://snet.localhost:15080/p2p_api/v1/api_publish_site';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=utf-8
 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>
 

Request      

POST p2p_api/v1/api_publish_site