लोगों को जोड़ें और हटाएँ
किसी संपर्क को लाइव ऑटोमेशन के पहले चरण पर डालता है, उसका ट्रिगर चाहे जो हो, या किसी को पूरा करने से पहले बाहर निकालता है।
2 कॉल में से कोई भी आपके वर्कस्पेस पर चलाता है।
POST /automations/{id}/enrollments
किसी संपर्क को लाइव ऑटोमेशन के पहले चरण पर डालता है, उसका ट्रिगर चाहे जो हो, या किसी को पूरा करने से पहले बाहर निकालता है।
उदाहरण
automations:write चाहिए। संपर्क को email या contactId से बताएँ, दोनों से कभी नहीं।
curl -X POST "$OE/automations/aut_7c2e9a1f4b8d30c65e1a9f27/enrollments" -H "$AUTH" -H 'content-type: application/json' -d '{ "email": "[email protected]", "data": { "orderId": "A-1042" }}'curl -X POST "$OE/automations/aut_7c2e9a1f4b8d30c65e1a9f27/enrollments/aen_2d8f1b6c9e3a47d05b1c8e62/exit" -H "$AUTH"{ "object": "automation_enrollment", "id": "aen_2d8f1b6c9e3a47d05b1c8e62", "automationId": "aut_7c2e9a1f4b8d30c65e1a9f27", "version": 2, "contact": { "id": "5b0e7c1a-2f4d-4c8b-9a36-1e7d0c5f8b24", "email": "[email protected]", "name": "Ana Lima" }, "status": "active", "source": "trigger", "stepKey": "pause", "waiting": true, "waitingForEvent": null, "heldFor": null, "nextRunAt": "2026-10-14T08:02:11.000Z", "exitReason": null, "lastError": null, "startedAt": "2026-10-11T08:02:03.000Z", "finishedAt": null, "updatedAt": "2026-10-11T08:02:11.000Z"}data में वे मान होते हैं जिन्हें चरण वहाँ पढ़ सकते हैं जहाँ कोई मान इवेंट से आता है, अधिकतम 50 कुंजियाँ और 4 KB JSON।
संपर्क पहले से मौजूद होना चाहिए: अनजान पता 404 contact_not_found लौटाता है।
जो पहले से अंदर है, या ऐसे ऑटोमेशन से गुज़र चुका है जो लोगों को एक ही बार आने देता है, उसे 409 already_enrolled के साथ मना किया जाता है।
जिस संपर्क ने सदस्यता छोड़ी, जिसका पता बाउंस हुआ या जिसने शिकायत की, उसे 409 contact_unreachable के साथ मना किया जाता है।
सिर्फ़ लाइव ऑटोमेशन लोगों को लेता है: 409 automation_not_live।
किसी को बाहर निकालने से उसकी भागीदारी removed कारण के साथ ख़त्म होती है। पहले ही ख़त्म हो चुकी भागीदारी 409 automation_enrollment_finished लौटाती है।