---
title: "Get campaign by ID"
method: GET
path: "/campaigns/{id}"
tags: ["campaigns"]
---

# Get campaign by ID

`GET /campaigns/{id}`

Returns a single campaign object

## Path parameters

- `id` integer, required

## Response `200`

OK

- Campaign
  - `id` integer — The ID of the resource.
  - `created_at` string, date-time — The date and time when the resource was created.
  - `updated_at` string, date-time — The date and time when the resource was last updated.
  - `name` string — The name of the campaign.
  - `status` 'draft' | 'scheduled' | 'sending' | 'sent' — The campaign's status.
  - `template` BaseTemplate
    - `id` integer — The ID of the resource.
    - `created_at` string, date-time — The date and time when the resource was created.
    - `updated_at` string, date-time — The date and time when the resource was last updated.
    - `name` string — The name of the template.
    - `subject_part` string — The subject part.
  - `schedule` CampaignSchedule
    - `id` string — The ID of the resource.
    - `scheduled_at` string, date-time — The date and time when the campaign is scheduled to be sent.
    - `created_at` string, date-time — The date and time when the resource was created.
    - `updated_at` string, date-time — The date and time when the resource was last updated.
  - `started_at` string, date-time — The date and time when the campaign was started.
  - `completed_at` string, date-time — The date and time when the campaign was completed (the e-mail has been sent to all of the subscribers).

## Other responses

- `401` — Unauthorized
- `404` — Not found
- `default` — Unexpected error

---

[API](https://skmtc.net/mailbadger/apis/mailbadger-api.md) · [All operations](https://skmtc.net/mailbadger/apis/mailbadger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mailbadger/mailbadger-api/versions/3a7ef49250a1/schema)
