> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unschedule an In-App Campaign

> Move a scheduled in-app campaign back to draft

Moves a scheduled in-app campaign back to draft and clears its audience count. It won't go live until you launch or schedule it again. [Unschedule a Campaign](https://docs.sequenzy.com/api-reference/campaigns/unschedule.md) does the same for in-app campaigns. Requires the `campaigns:send` scope.

## Request

**campaignId** `string` *required*

The in-app campaign ID.

```bash theme={null}
curl -X POST "https://api.sequenzy.com/api/v1/in-app/campaigns/cmp_abc123/unschedule" \
  --header "Authorization: Bearer $SEQUENZY_API_KEY"
```

## Responses

```json 200 theme={null}
{
  "success": true,
  "campaign": {
    "id": "cmp_abc123",
    "name": "New dashboards",
    "type": "in_app",
    "status": "draft",
    "state": "draft",
    "message": {
      "label": "",
      "kind": "message",
      "format": "modal",
      "title": "Hi {{firstName}}, dashboards are here",
      "body": "See every campaign at a glance.",
      "buttons": [
        {
          "label": "Take a look",
          "action": "open_url",
          "url": "myapp://dashboards"
        }
      ]
    },
    "priority": "high",
    "endsAt": "2026-12-01T00:00:00.000Z",
    "targetLists": {
      "type": "segment",
      "segmentId": "seg_123"
    },
    "scheduledAt": null,
    "sentAt": null,
    "estimatedRecipientCount": null,
    "labelIds": [],
    "createdAt": "2026-11-07T12:00:00.000Z",
    "updatedAt": "2026-11-08T09:00:00.000Z"
  }
}
```

```json 401 theme={null}
{
  "error": "Invalid API key"
}
```

```json 403 theme={null}
{
  "error": "API key is missing required scope: campaigns:send"
}
```

```json 404 theme={null}
{
  "error": "Campaign not found."
}
```

```json 409 theme={null}
{
  "error": "Cannot unschedule a campaign in \"draft\" status."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.