---
title: "Add Campaign"
method: POST
path: "/campaign"
tags: ["Campaign"]
---

# Add Campaign

`POST /campaign`

Creates a Campaign.

Details for the body of the request:

- `title` Campaign title
- `mailBody` Campaign mail body
- `fromName` Campaign mail sender name
- `fromAddress` Campaign mail sender email address
- `emailTemplateId` the Id of the EmailTemplate which is going to be linked to the Campaign
- `designId` the Id of the certificate Design which is going to be linked to the Campaign
- `badgeId` the Id of the badge Design which is going to be linked to the Campaign
- `detailId` the Id of the Detail which is going to be linked to the Campaign
- `privateCampaign` boolean field used for controlling whether the credentials in the Campaign are shown in search results

## Headers

- `api-version` string, required

## Request body

- CampaignRequest
  - `title` string
  - `detailId` string
  - `badgeId` string, nullable
  - `designId` string, nullable
  - `emailTemplateId` string
  - `emailFromName` string
  - `emailSubject` string
  - `emailfromAddress` string, nullable
  - `privateCampaign` boolean

## Response `200`

Successful response

- ApiResponse
  - `message` string, nullable
  - `hasError` boolean
  - `validationErrors` string[]
  - `data` unknown
  - `content` unknown

---

[API](https://skmtc.net/sertifier/apis/sertifier-credential-api-documentation.md) · [All operations](https://skmtc.net/sertifier/apis/sertifier-credential-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sertifier/sertifier-credential-api-documentation/revisions/98c494325aae/schema)
