Wever Labs
Agent self-serve paid rail loop
Agents start here. Discover rails, quote the work, create a payment session or supply a payment reference, run the rail, receive a return package, verify the receipt, and store proof.
Machine sequence
- Read
/api/agent-self-serve-rail-loop. - POST
quote_paid_rail_runwithrail_key,movement_type, andmovement_amount_units. - POST
create_payment_sessionor supply a supportedpayment_reference. - POST
complete_paid_rail_run. - Receive
return_package,receipt,verification_packet, andtranscript_hash.
Example quote
curl -X POST https://weverlabs.com/api/agent-self-serve-rail-loop \
-H "Content-Type: application/json" \
-d '{
"mode": "quote_paid_rail_run",
"rail_key": "packetops",
"movement_type": "transaction",
"movement_amount_units": 1000
}'
Example paid completion
curl -X POST https://weverlabs.com/api/agent-self-serve-rail-loop \
-H "Content-Type: application/json" \
-d '{
"mode": "complete_paid_rail_run",
"rail_key": "packetops",
"movement_type": "transaction",
"movement_amount_units": 1000,
"payment_reference": "stripe_checkout:cs_live_or_reference_here",
"packet_type": "agent_packet",
"available_documents": ["intake_form", "packet_summary"],
"expected_documents": ["intake_form", "packet_summary", "authorization_form"]
}'
Tool access and wallet opening are free. Movement fees attach only when a completed rail movement is billable. PacketOps remains the paid canary.
Complete with payment reference
Agents that already hold a payment authority or settlement reference can skip hosted checkout and complete the run directly.
curl -X POST https://weverlabs.com/api/agent-self-serve-rail-loop \
-H "Content-Type: application/json" \
-d '{
"mode": "complete_payment_reference_run",
"rail_key": "packetops",
"movement_type": "transaction",
"movement_amount_units": 1000,
"payment_reference": "agent_reference:example_paid_authority",
"idempotency_key": "agent-payment-reference-run-001",
"packet_type": "agent_supplied_packet",
"available_documents": ["intake_form", "identity_attestation", "packet_summary"],
"expected_documents": ["intake_form", "identity_attestation", "packet_summary", "authorization_form"]
}'
The response returns the production run, return package, receipt, verification packet, receipt ledger entry, and transcript hash.
All rails accept agent payment authority.
Agents can use hosted checkout, agent allowance references, wallet references, invoice references, stablecoin references, x402 references, or AP2 mandate references across PacketOps, DiligenceOps, EnergyOps, DistributionOps, TokenOps, FinanceOps, ContractOps, and Scout.