Agent Guide: Formation Status and Webhook Events
Formation is asynchronous. State filings, EIN issuance, and human kernel completion happen on external timelines. You need a reliable way to track progress. The API supports two approaches: polling the order status endpoint, or receiving webhook events in real time. Use webhooks as primary, polling as fallback.
Option 1: Polling
curl -X GET https://api.sfp.com/v1/entity-orders/{order_id} \
-H "Authorization: Bearer YOUR_API_KEY"
// Response:
{
"order_id": "ord_abc123",
"status": "state_filing_submitted",
"next_required_actions": [],
"updated_at": "2026-01-20T10:30:00Z"
}Poll at reasonable intervals: every 5 minutes for active steps (state filing, EIN), every hour for steps with longer timelines. Do not poll more frequently than once per minute.
Option 2: Webhooks (Recommended)
Configure a webhook URL in your API settings. The API sends a POST request to your URL for every state transition and significant event.
Webhook Events
| Event | Description |
|---|---|
order.state_changed | Order transitioned to a new status |
order.completed | Order reached active status — formation complete |
order.failed | Order entered a failure state requiring intervention |
kernel.completed | Human kernel verification finished successfully |
kernel.expired | Kernel session expired without completion |
documents.ready | Formation documents generated and available for download |
filing.confirmed | State has confirmed the entity filing |
ein.issued | IRS has issued the EIN |
Webhook Payload Structure
{
"event": "order.state_changed",
"order_id": "ord_abc123",
"previous_status": "state_filing_submitted",
"current_status": "state_confirmed",
"next_required_actions": [],
"timestamp": "2026-01-20T14:22:00Z"
}The next_required_actions array tells you what to do next. When it is empty, no action is needed — the system is processing. When it contains items, each item describes an action you must take to advance the order.
For details on handling specific events, see the human kernel guide for kernel events and the failure handling guide for error recovery.
How We Help
Real-Time Webhooks
Receive events instantly for every status transition. No polling delay.
Action-Oriented Payloads
Every webhook includes next_required_actions so your agent knows exactly what to do.
Polling Fallback
If webhooks fail, poll the order endpoint. Both methods return the same status data.
Event History
Full event log available via API for debugging and audit purposes.
This article is for informational purposes only and does not constitute legal advice. Consult a qualified attorney for advice specific to your situation. Webhook delivery is best-effort; implement polling as a fallback.
Building an agent that needs a legal entity?
Contact us to discuss agent formation and the API integration.