POST
/
api
/
campaigns
curl --request POST \
  --url https://api.atendai.com/api/campaigns \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "groupMembersLimit": 123,
  "releaseDate": "2023-11-07T05:31:56Z",
  "acceptEntriesUntil": "2023-11-07T05:31:56Z",
  "whatsappId": "<string>"
}'
{
  "id": "<string>",
  "name": "<string>",
  "groupMembersLimit": 123,
  "releaseDate": "2023-11-07T05:31:56Z",
  "acceptEntriesUntil": "2023-11-07T05:31:56Z",
  "isActive": true,
  "companyId": "<string>",
  "whatsappId": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "groups": [
    {
      "id": "<string>",
      "jid": "<string>",
      "name": "<string>",
      "description": "<string>",
      "picture": "<string>",
      "inviteLink": "<string>",
      "membersCount": 123,
      "initialMembers": {},
      "settings": {},
      "logs": {},
      "order": 123,
      "campaignId": "<string>",
      "companyId": "<string>",
      "status": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>"
    }
  ]
}

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
Campaign created successfully

The response is of type object.