curl --request POST \
--url https://api.siftstack.com/api/v1/campaigns \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"tags": {},
"organizationId": "<string>",
"clientKey": "<string>",
"createFrom": {
"reports": {},
"runs": {},
"otherCampaign": {
"id": "<string>",
"clientKey": "<string>"
}
},
"metadata": [
{
"key": {
"name": "<string>",
"type": "METADATA_KEY_TYPE_UNSPECIFIED",
"archivedDate": "2023-11-07T05:31:56Z"
},
"stringValue": "<string>",
"numberValue": 123,
"booleanValue": true,
"archivedDate": "2023-11-07T05:31:56Z"
}
]
}
'{
"campaign": {
"campaignId": "<string>",
"name": "<string>",
"organizationId": "<string>",
"clientKey": "<string>",
"description": "<string>",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"archivedDate": "2023-11-07T05:31:56Z",
"tags": [
{
"tagId": "<string>",
"name": "<string>"
}
],
"reports": [
{
"reportId": "<string>",
"reportName": "<string>",
"numAnnotations": 123,
"numPassedRules": 123,
"numAcceptedRules": 123,
"numFailedRules": 123,
"numOpenRules": 123
}
],
"createdFromCampaignId": "<string>",
"metadata": [
{
"key": {
"name": "<string>",
"type": "METADATA_KEY_TYPE_UNSPECIFIED",
"archivedDate": "2023-11-07T05:31:56Z"
},
"stringValue": "<string>",
"numberValue": 123,
"booleanValue": true,
"archivedDate": "2023-11-07T05:31:56Z"
}
]
}
}Create a campaign.
curl --request POST \
--url https://api.siftstack.com/api/v1/campaigns \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"tags": {},
"organizationId": "<string>",
"clientKey": "<string>",
"createFrom": {
"reports": {},
"runs": {},
"otherCampaign": {
"id": "<string>",
"clientKey": "<string>"
}
},
"metadata": [
{
"key": {
"name": "<string>",
"type": "METADATA_KEY_TYPE_UNSPECIFIED",
"archivedDate": "2023-11-07T05:31:56Z"
},
"stringValue": "<string>",
"numberValue": 123,
"booleanValue": true,
"archivedDate": "2023-11-07T05:31:56Z"
}
]
}
'{
"campaign": {
"campaignId": "<string>",
"name": "<string>",
"organizationId": "<string>",
"clientKey": "<string>",
"description": "<string>",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"archivedDate": "2023-11-07T05:31:56Z",
"tags": [
{
"tagId": "<string>",
"name": "<string>"
}
],
"reports": [
{
"reportId": "<string>",
"reportName": "<string>",
"numAnnotations": 123,
"numPassedRules": 123,
"numAcceptedRules": 123,
"numFailedRules": 123,
"numOpenRules": 123
}
],
"createdFromCampaignId": "<string>",
"metadata": [
{
"key": {
"name": "<string>",
"type": "METADATA_KEY_TYPE_UNSPECIFIED",
"archivedDate": "2023-11-07T05:31:56Z"
},
"stringValue": "<string>",
"numberValue": 123,
"booleanValue": true,
"archivedDate": "2023-11-07T05:31:56Z"
}
]
}
}Documentation Index
Fetch the complete documentation index at: https://docs.siftstack.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The request of a call to CampaignService_CreateCampaign to create a campaign.
The request of a call to CampaignService_CreateCampaign to create a campaign.
Show child attributes
User-specified unique identifier.
Campaigns can be created from a few different sources.
Show child attributes
Show child attributes
A successful response.
The response of a call to CampaignService_CreateCampaign to create a campaign.
Show child attributes
Was this page helpful?