POST
/
api
/
schedules
curl --request POST \
  --url https://api.atendai.com/api/schedules \
  --header 'Content-Type: application/json' \
  --data '{
  "contactId": "<string>",
  "sendAt": "2023-11-07T05:31:56Z",
  "flow": [
    {
      "type": "message",
      "content": "<string>",
      "delay": "<string>",
      "fileName": "<string>"
    }
  ],
  "userId": "<string>",
  "flowId": "<string>"
}'
{
  "id": "<string>",
  "flow": [
    {
      "type": "message",
      "content": "<string>",
      "delay": "<string>",
      "fileName": "<string>"
    }
  ],
  "sendAt": "2023-11-07T05:31:56Z",
  "sentAt": "2023-11-07T05:31:56Z",
  "contactId": "<string>",
  "ticketId": "<string>",
  "userId": "<string>",
  "status": "<string>",
  "companyId": "<string>",
  "flowId": "<string>",
  "sequenceId": "<string>",
  "sequenceStageId": "<string>",
  "whatsappId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "contact": {
    "id": "<string>",
    "name": "<string>",
    "number": "<string>",
    "email": "<string>",
    "profilePicUrl": "<string>",
    "isGroup": true,
    "isAdmin": true,
    "isOpen": true,
    "isBotEnabled": true,
    "utmCampaign": "<string>",
    "utmContent": "<string>",
    "utmMedium": "<string>",
    "utmSource": "<string>",
    "utmTerms": "<string>",
    "active": true,
    "channel": "<string>",
    "whatsappId": "<string>",
    "companyId": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  },
  "user": {
    "id": "<string>",
    "name": "<string>"
  },
  "typebotFlow": "<string>"
}

Body

application/json

Response

200
application/json
Successful response

The response is of type object.