LetspingLetsPing

Agent quickstart (5 min)

No human required. Use the SDK for a few lines of code, or follow the curl steps without the SDK.

Install: npm install @letsping/sdk. Then run:

const { createAgentWorkspace, ingestWithAgentSignature } = require("@letsping/sdk");

(async () => {
  // 1. Create workspace + register one agent (one call; rate limits apply)
  const creds = await createAgentWorkspace(); // optional: { baseUrl: "https://letsping.co" }

  // 2. Send a signed ingest
  const result = await ingestWithAgentSignature(
    creds.agent_id,
    creds.agent_secret,
    { service: "my-svc", action: "test", payload: {} },
    { projectId: creds.project_id, ingestUrl: creds.ingest_url, apiKey: creds.api_key }
  );
  console.log(result.id); // request id
})();

Store creds securely. Use creds.api_key for Bearer auth and ingestWithAgentSignature for every signed ingest.