Create a segment
A dynamic segment is filled from its `rules` right away. Send an `Idempotency-Key` header to retry safely.
A dynamic segment is filled from its rules right away. Send an Idempotency-Key header to retry safely.
httpAuthorizationBearer <token>Idempotency-Key?stringAny unique string up to 255 characters, such as a UUID. Retrying with the same key returns the first response (with Idempotent-Replayed: true) instead of acting twice.
application/json- body
name*stringlength <= 200type?|Defaults to static.
"static""dynamic"rules?array<string>|Filter rules of a dynamic segment.
Segment
application/json- response
data*curl -X POST 'https://app.orqo.site/api/v1/segments' \ -H 'Idempotency-Key: 9f1c2a7e-4b8d-4e57-a3f0-6c1d2e3f4a5b' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'{ "data": { "id": 0, "name": "string", "type": "string", "rules": { "property1": null, "property2": null }, "contact_count": 0, "created_at": "string", "updated_at": "string" }}Send a message POST
Send a WhatsApp text, approved template, interactive message, Flow, or media message to a contact (`contact_id`) or directly to an E.164 number (`to`). Send an `Idempotency-Key` header (or `client_message_id`) to retry safely: a retry returns the original message with `Idempotent-Replayed: true`.
List segment contacts GET
Newest first.