75trust / 100

Url Campaign Builder Execute

by tradepilotusa.com in Other

x402 APIPassing, checked 1 h ago

Build an HTTP(S) campaign URL with correctly encoded UTM fields while preserving unrelated query parameters and fragments. Replaces duplicate instances of supplied UTM fields. Rejects embedded credentials. Never visits or validates destination content.

POST https://www.tradepilotusa.com/api/agent-commerce/v1/services/url_campaign_builder/execute

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
744 ms typical, 1.2 s slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://www.tradepilotusa.com/api/agent-commerce/v1/services/url_campaign_builder/execute" \
  -H "content-type: application/json" \
  -d '{"url":"https://example.com/offer?existing=1#details","utm_campaign":"Fall sale","utm_medium":"email","utm_source":"newsletter"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.tradepilotusa.com%2Fapi%2Fagent-commerce%2Fv1%2Fservices%2Furl_campaign_builder%2Fexecute
const res = await pay("https://www.tradepilotusa.com/api/agent-commerce/v1/services/url_campaign_builder/execute", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://example.com/offer?existing=1#details","utm_campaign":"Fall sale","utm_medium":"email","utm_source":"newsletter"}),
});
console.log(await res.json());

Example input

{
  "url": "https://example.com/offer?existing=1#details",
  "utm_campaign": "Fall sale",
  "utm_medium": "email",
  "utm_source": "newsletter"
}

Example output

{
  "provenance": {
    "execution": "deterministic_local",
    "model_used": false,
    "network_request_performed": false
  },
  "request_id": "example_url_campaign_builder",
  "result": {
    "network_request_performed": false,
    "url": "https://example.com/offer?existing=1&utm_source=newsletter&utm_medium=email&utm_campaign=Fall+sale#details"
  },
  "utility": "url_campaign_builder"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402653 ms$0.01
5 h agoPassed402994 ms$0.01
9 h agoPassed4021.2 s$0.01
13 h agoPassed4021.2 s$0.01
17 h agoPassed402693 ms$0.01
20 h agoPassed402985 ms$0.01
24 h agoPassed402706 ms$0.01
27 h agoPassed4021.1 s$0.01
31 h agoPassed402744 ms$0.01
34 h agoPassed402892 ms$0.01
38 h agoPassed402687 ms$0.01
42 h agoPassed4021.0 s$0.01
45 h agoPassed402728 ms$0.01
2 days agoPassed402660 ms$0.01
2 days agoPassed402903 ms$0.01