Link Search Menu Expand Document

Updated Mon Jul 26th 2021, 21:50 UTC

Recurring Instances

GET /campaigns/:campaign/recurring_instances

Returns a collection of campaigns that have been sent or scheduled by a recurring campaign

Examples

Get Recurring Instances

Request

GET /campaigns/bK9DjpX/recurring_instances
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X GET /campaigns/bK9DjpX/recurring_instances
    

Response

Status

200

Response Type

hydra:Collection

Example
{
  "@type": "hydra:Collection",
  "@context": "/contexts/hydra:Collection.jsonld",
  "id": "/campaigns/bK9DjpX/recurring_instances",
  "members": [
    {
      "@type": "Campaign",
      "@context": "/contexts/Campaign.jsonld",
      "id": "/campaigns/joOQd57",
      "title": "The Best Campaign",
      "messageBody": null,
      "state": "sent",
      "type": "single",
      "schedule": "FREQ=DAILY;BYHOUR=15;BYMINUTE=3",
      "createdAt": "2018-11-19T20:51:54.000Z",
      "scheduledAt": "2018-11-19T21:00:54.000Z",
      "sendingStartAt": null,
      "sendingEndAt": null,
      "estimatedStartAt": null,
      "estimatedFinishAt": null,
      "deliveryStatistics": {
        "total": 0,
        "skipped": 0,
        "sent": 0,
        "delivered": 0,
        "replied": 0,
        "unreplied": 0,
        "failed": 0
      },
      "delete": "/campaigns/joOQd57",
      "edit": "/campaigns/joOQd57",
      "cancel": "/campaigns/joOQd57/cancel",
      "account": "/accounts/my_account",
      "group": "/groups/3D6ZO7",
      "user": {
        "@type": "User",
        "@context": "/contexts/User.jsonld",
        "id": "/users/wqyODPA",
        "name": "Chuck Norris",
        "firstName": "Chuck",
        "lastName": "Norris",
        "email": "chuck@textus.example",
        "avatar": null,
        "automatedActor": false,
        "hasPassword": false,
        "discarded": false,
        "settings": {
          "notifications": {
            "email": true
          },
          "customSettings": {}
        },
        "memberships": "/users/wqyODPA/memberships"
      },
      "totalRecipients": "/campaigns/nGJ2ge3/campaign_recipients/total",
      "skippedRecipients": "/campaigns/nGJ2ge3/campaign_recipients/skipped",
      "sentRecipients": "/campaigns/nGJ2ge3/campaign_recipients/sent",
      "deliveredRecipients": "/campaigns/nGJ2ge3/campaign_recipients/delivered",
      "repliedRecipients": "/campaigns/nGJ2ge3/campaign_recipients/replied",
      "unrepliedRecipients": "/campaigns/nGJ2ge3/campaign_recipients/unreplied",
      "failedRecipients": "/campaigns/nGJ2ge3/campaign_recipients/failed",
      "lastSentAt": null
    }
  ],
  "totalItems": 1,
  "view": {
    "@type": "hydra:PartialCollectionView",
    "@context": "/contexts/hydra:PartialCollectionView.jsonld",
    "id": "/campaigns/bK9DjpX/recurring_instances",
    "first": "/campaigns/bK9DjpX/recurring_instances",
    "next": null,
    "previous": null
  }
}

© 2021 TextUs