POST
/
sequences
curl --request POST \
  --url https://api.open.cx/sequences \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "steps": [
    {
      "action": {
        "type": "send_emails",
        "data": {
          "from_email": "no-reply@hello.opencopilot.so",
          "email_body": "Hello!",
          "email_sender_name": "OpenCX Team",
          "email_subject": "Welcome to OpenCX!",
          "email_is_transactional": false
        }
      },
      "delay_in_minutes": 2
    }
  ],
  "filter": {
    "or": [
      {
        "and": [
          {
            "type": "contacts_created_at_between",
            "before": "2025-05-27T22:47:28.181Z",
            "after": "2025-05-27T22:47:28.181Z"
          }
        ]
      }
    ]
  }
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201
application/json

The response is of type object.