{"asyncapi":"3.0.0","info":{"title":"AgentCell Events","version":"0.1.0","description":"WebSocket stream at wss://api.agentcell.store/v1/events/stream"},"servers":{"production":{"host":"api.agentcell.store","pathname":"/v1/events/stream","protocol":"wss"}},"channels":{"events":{"address":"/v1/events/stream","messages":{"cell.message.received":{"$ref":"#/components/messages/cell.message.received"},"cell.message.sent":{"$ref":"#/components/messages/cell.message.sent"},"cell.message.delivered":{"$ref":"#/components/messages/cell.message.delivered"},"cell.message.failed":{"$ref":"#/components/messages/cell.message.failed"},"cell.message.complained":{"$ref":"#/components/messages/cell.message.complained"},"cell.message.ignored":{"$ref":"#/components/messages/cell.message.ignored"},"pod.cycle.started":{"$ref":"#/components/messages/pod.cycle.started"},"pod.cycle.progress":{"$ref":"#/components/messages/pod.cycle.progress"},"pod.cycle.completed":{"$ref":"#/components/messages/pod.cycle.completed"},"pod.cycle.failed":{"$ref":"#/components/messages/pod.cycle.failed"},"message.send.deferred_quiet_hours":{"$ref":"#/components/messages/message.send.deferred_quiet_hours"},"number.assigned":{"$ref":"#/components/messages/number.assigned"},"number.released":{"$ref":"#/components/messages/number.released"},"device.status_changed":{"$ref":"#/components/messages/device.status_changed"},"billing.payment_succeeded":{"$ref":"#/components/messages/billing.payment_succeeded"},"billing.payment_failed":{"$ref":"#/components/messages/billing.payment_failed"},"billing.x402.settled":{"$ref":"#/components/messages/billing.x402.settled"},"billing.mpp.settled":{"$ref":"#/components/messages/billing.mpp.settled"},"billing.prepaid.credited":{"$ref":"#/components/messages/billing.prepaid.credited"},"billing.prepaid.low_balance":{"$ref":"#/components/messages/billing.prepaid.low_balance"},"billing.prepaid.depleted":{"$ref":"#/components/messages/billing.prepaid.depleted"},"console.login_link.created":{"$ref":"#/components/messages/console.login_link.created"},"console.login_link.redeemed":{"$ref":"#/components/messages/console.login_link.redeemed"},"console.session.started":{"$ref":"#/components/messages/console.session.started"},"agent.activity.logged":{"$ref":"#/components/messages/agent.activity.logged"},"agent.status.changed":{"$ref":"#/components/messages/agent.status.changed"}}}},"operations":{"onEvent":{"action":"receive","channel":{"$ref":"#/channels/events"}}},"components":{"messages":{"cell.message.received":{"name":"cell.message.received","title":"cell.message.received","summary":"Inbound SMS","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"cell.message.received"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"cell.message.sent":{"name":"cell.message.sent","title":"cell.message.sent","summary":"Outbound accepted","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"cell.message.sent"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"cell.message.delivered":{"name":"cell.message.delivered","title":"cell.message.delivered","summary":"Carrier delivery receipt","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"cell.message.delivered"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"cell.message.failed":{"name":"cell.message.failed","title":"cell.message.failed","summary":"Delivery failure","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"cell.message.failed"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"cell.message.complained":{"name":"cell.message.complained","title":"cell.message.complained","summary":"STOP / spam complaint","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"cell.message.complained"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"cell.message.ignored":{"name":"cell.message.ignored","title":"cell.message.ignored","summary":"Inbound from ignored number","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"cell.message.ignored"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"pod.cycle.started":{"name":"pod.cycle.started","title":"pod.cycle.started","summary":"Cycle job started","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"pod.cycle.started"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"pod.cycle.progress":{"name":"pod.cycle.progress","title":"pod.cycle.progress","summary":"Job progress","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"pod.cycle.progress"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"pod.cycle.completed":{"name":"pod.cycle.completed","title":"pod.cycle.completed","summary":"Cycle job finished","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"pod.cycle.completed"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"pod.cycle.failed":{"name":"pod.cycle.failed","title":"pod.cycle.failed","summary":"Cycle job failed or cancelled","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"pod.cycle.failed"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"message.send.deferred_quiet_hours":{"name":"message.send.deferred_quiet_hours","title":"message.send.deferred_quiet_hours","summary":"Outbound deferred for TCPA","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"message.send.deferred_quiet_hours"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"number.assigned":{"name":"number.assigned","title":"number.assigned","summary":"Number attached to cell","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"number.assigned"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"number.released":{"name":"number.released","title":"number.released","summary":"Number released","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"number.released"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"device.status_changed":{"name":"device.status_changed","title":"device.status_changed","summary":"Device online/offline","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"device.status_changed"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"billing.payment_succeeded":{"name":"billing.payment_succeeded","title":"billing.payment_succeeded","summary":"Stripe payment completed","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"billing.payment_succeeded"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"billing.payment_failed":{"name":"billing.payment_failed","title":"billing.payment_failed","summary":"Stripe payment failed","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"billing.payment_failed"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"billing.x402.settled":{"name":"billing.x402.settled","title":"billing.x402.settled","summary":"x402 credited","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"billing.x402.settled"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"billing.mpp.settled":{"name":"billing.mpp.settled","title":"billing.mpp.settled","summary":"MPP settled","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"billing.mpp.settled"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"billing.prepaid.credited":{"name":"billing.prepaid.credited","title":"billing.prepaid.credited","summary":"Prepaid increased","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"billing.prepaid.credited"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"billing.prepaid.low_balance":{"name":"billing.prepaid.low_balance","title":"billing.prepaid.low_balance","summary":"Prepaid low","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"billing.prepaid.low_balance"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"billing.prepaid.depleted":{"name":"billing.prepaid.depleted","title":"billing.prepaid.depleted","summary":"Prepaid exhausted","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"billing.prepaid.depleted"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"console.login_link.created":{"name":"console.login_link.created","title":"console.login_link.created","summary":"Magic link created","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"console.login_link.created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"console.login_link.redeemed":{"name":"console.login_link.redeemed","title":"console.login_link.redeemed","summary":"Magic link redeemed","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"console.login_link.redeemed"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"console.session.started":{"name":"console.session.started","title":"console.session.started","summary":"Phone OTP session","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"console.session.started"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"agent.activity.logged":{"name":"agent.activity.logged","title":"agent.activity.logged","summary":"Significant agent action","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"agent.activity.logged"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}},"agent.status.changed":{"name":"agent.status.changed","title":"agent.status.changed","summary":"Agent status transition","payload":{"type":"object","required":["type","created_at"],"properties":{"type":{"const":"agent.status.changed"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object"}}}}}}}