Anonymous CLI install/update telemetry ping (unauthenticated, IP-rate-limited).
POST
/v1/cli/install
const url = 'https://api.share2.us/v1/cli/install';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"install_id":"example","event_type":"install","version":"example","os":"example","arch":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.share2.us/v1/cli/install \ --header 'Content-Type: application/json' \ --data '{ "install_id": "example", "event_type": "install", "version": "example", "os": "example", "arch": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
install_id
required
Random anonymous id the CLI generates once on first run.
string
event_type
string
version
string
os
string
arch
string
Responses
Section titled “Responses”Recorded (always acked; telemetry is best-effort).
default
Section titled “default”Standard error envelope.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "quota_exceeded" }}