Campaigns

In the campaigns section, you'll be able to check the information of all notifications that have been sent in bulk.

Get Campaigns

Params

FieldTypeDescriptionRequired

page

number

Page number. Default 1

N

limit

number

Number of records. Default 10, maximum 50.

N

botId

string

Bot ID

Y

startAt

date

Start date

Y

endAt

date

End date

Y

elementName

string

Template name

N

status

string

Campaign status. Allowed values: [COMPLETED, PENDING, IN_PROGRESS, SCHEDULED]

N

curl --request GET \
  --url 'https://api.jelou.ai/v1/campaigns?page=1&limit=20&botId=BOT_ID&startAt=START_AT&endAt=END_AT' \
  --header 'Authorization: Basic {{Base64EncodedUsername:Password}}'

Responses

The total number of records and pagination information are returned in the 'pagination' object, while the 'results' array describes the campaigns that match the search parameters

{
  "pagination": {
    "limit": 10,
    "page": 1,
    "total": 1,
    "offset": 0,
    "totalPages": 1
  },
  "_metadata": {},
  "results": [
    {
      "_id": "CAMPAIGN_ID",
      "name": "CAMPAIGN_NAME",
      "fileName": "FILE_NAME",
      "status": "COMPLETED",
      "botId": "BOT_ID",
      "companyId": "COMPANY_ID",
      "bot": {
        "id": "BOT_ID",
        "name": "BOT_NAME"
      },
      "company": {
        "id": "COMPANY_ID",
        "name": "COMPANY_NAME"
      },
      "rowCount": "TOTAL_ROWS",
      "storageUrl": "FILE_URL",
      "metadata": {},
      "sendBy": {
        "id": "COMPANY_ID",
        "names": "USER_NAME",
        "email": "USER_EMAIL",
        "companyId": "COMPANY_ID"
      },
      "scheduledAt": "SCHEDULED_AT",
      "createdAt": "CREATED_AT",
      "updatedAt": "UPDATED_AT"
    }
  ]
}

Last updated