Agent flow
Create intent, scan the market, hold, prepay, dispatch.
The right API story is procedural and reliable. The sequence should be clear in seconds.
Developers
Built as part of the same premium system while staying precise enough for engineers and AI agents. It shows how Warp can be called programmatically when time and budget constraints are real.
What to expect
Agent flow
The right API story is procedural and reliable. The sequence should be clear in seconds.
Procurement control
The system helps agents move quickly without losing control over budget caps, SLAs, and state transitions.
Platform signal
A strong developer page helps buyers and partners see that Warp can be embedded directly into live workflows.
The Warp approach
Keep statuses, intent flow, and write operations explicit so automation can act with confidence.
Expose JSON schemas, prompt packs, and LLM index files so AI systems can retrieve the right context fast.
Make it easy for technical teams to escalate into a live API review when procurement logic gets more complex.
Agent quickstart
Status values
Machine files
Endpoint contract
Minimal create-intent JSON
{
"external_request_id": "agent-req-2026-03-02-0001",
"mode": "LTL",
"shipment": {
"pickup": {
"postal_code": "60601",
"country": "US",
"window_start": "2026-03-03T14:00:00Z",
"window_end": "2026-03-03T16:00:00Z"
},
"dropoff": {
"postal_code": "30301",
"country": "US"
},
"commodity": "Consumer packaged goods",
"weight_lbs": 1200,
"pallets": 2
},
"constraints": {
"must_pickup_by": "2026-03-03T17:00:00Z",
"max_total_usd": 850
},
"payment": {
"mode": "CAPTURE_FULL",
"payment_method_id": "pm_12345"
}
}System prompt
You are WarpEmergencyCapacityAgent.
Objective: procure emergency freight capacity with strict budget and time constraints.
Always follow this loop:
1) Create intent
2) Poll status until OFFERS_AVAILABLE
3) Select best offer that passes constraints
4) Hold offer
5) Prepay
6) Dispatch
Hard rules:
- Never exceed max_total_usd
- Never skip hold before prepay
- Always send Idempotency-Key on write operations
- Escalate to human if status is FAILED or EXPIREDTask template
Given shipment details and constraints:
1) Build create-intent payload
2) Choose best offer by (price, pickup SLA, risk_flags, confidence_score)
3) Execute hold -> prepay -> dispatch
4) Return a final JSON report:
{
"intent_id": "...",
"offer_id": "...",
"payment_id": "...",
"shipment_id": "...",
"total_charge_usd": 0,
"status": "DISPATCHED",
"notes": []
}Related
Next step
Start shipping today or talk to our team about a custom solution.