---
updatedAt: 2026-08-31T10:28:29.000Z
agentTools:
  projectIndex: https://help.smartreach.io/llms.txt
---

# Change campaign status

Start/Stop/Schedule campaign by id

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api.smartreach.io/api/v3"
    }
  ],
  "info": {
    "description": "SmartReach's api specs",
    "version": "1.0.0",
    "title": "SmartReach",
    "license": {
      "name": "Apache-2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "paths": {
    "/campaigns/{campaign_id}/status": {
      "put": {
        "tags": [
          "campaigns"
        ],
        "summary": "Change campaign status",
        "description": "Start/Stop/Schedule campaign by id",
        "operationId": "startStopCampaign",
        "parameters": [
          {
            "name": "X-API-KEY",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "team_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "team_*********"
            },
            "description": "Id for your team."
          },
          {
            "name": "campaign_id",
            "in": "path",
            "description": "ID of campaign",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/StartStopCampaign"
        },
        "responses": {
          "200": {
            "description": "Status changed successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequestErrorStartStopCampaign"
          },
          "401": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "404": {
            "$ref": "#/components/responses/NotFoundError"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    }
  },
  "components": {
    "requestBodies": {
      "StartStopCampaign": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/StartStopCampaign"
            }
          }
        }
      }
    },
    "schemas": {
      "Campaign": {
        "title": "Campaign object",
        "description": "SmartReach's CampaignObject",
        "type": "object",
        "required": [
          "object",
          "id",
          "name",
          "created_at",
          "status",
          "team_id",
          "settings"
        ],
        "properties": {
          "object": {
            "type": "string",
            "example": "campaign"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "team_id": {
            "type": "string"
          },
          "settings": {
            "$ref": "#/components/schemas/Settings"
          }
        },
        "example": {
          "object": "campaign",
          "id": "cmp_aa_2VhLetawyxX4Nz0SUarAlmy2Ua6",
          "name": "dhdskjdsfh",
          "created_at": "2023-06-06T13:06:09.460+05:30",
          "status": "not_started",
          "is_archived": false,
          "team_id": "team_2VeGuZpoYDVfTPseaiRg8up9z19",
          "settings": {
            "timezone": "Asia/Kolkata",
            "daily_from_time": 32400,
            "daily_till_time": 64800,
            "days_preference": [
              false,
              true,
              true,
              true,
              true,
              true,
              false
            ]
          }
        }
      },
      "Settings": {
        "title": "Campaign Settings object",
        "description": "SmartReach's campaign settings object",
        "type": "object",
        "required": [
          "timezone",
          "daily_from_time",
          "daily_till_time",
          "days_preference"
        ],
        "properties": {
          "timezone": {
            "type": "string"
          },
          "daily_from_time": {
            "type": "number",
            "description": "seconds from the start of day in the given timezone"
          },
          "daily_till_time": {
            "type": "number",
            "description": "seconds from the start of day in the given timezone"
          },
          "days_preference": {
            "type": "array",
            "description": "days preference starting from Sunday",
            "items": {
              "type": "boolean"
            }
          }
        }
      },
      "StartStopCampaign": {
        "title": "StartStopCampaign api request structure.",
        "description": "SmartReach's Start/Stop campaign object",
        "type": "object",
        "required": [
          "status"
        ],
        "properties": {
          "status": {
            "description": "Status of campaign can be changed to 'running', 'scheduled', 'stopped'.",
            "type": "string",
            "enum": [
              "running",
              "scheduled",
              "stopped"
            ]
          },
          "schedule_start_at": {
            "description": "Required for scheduling a campaign for a specific date. The date-time with respective time-zone of schedule start should be converted to Epoch milliseconds and passed.",
            "type": "number"
          }
        }
      }
    },
    "responses": {
      "BadRequestErrorStartStopCampaign": {
        "description": "Bad request error responses",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "errors": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "error_type",
                      "message"
                    ],
                    "properties": {
                      "error_type": {
                        "type": "string",
                        "enum": [
                          "forbidden",
                          "bad_request",
                          "invalid_param"
                        ]
                      },
                      "message": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "ServerError": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error_type": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            },
            "example": [
              {
                "error_type": "api_error",
                "message": "Error while creating prospects"
              }
            ]
          }
        }
      },
      "ForbiddenError": {
        "description": "User not authorized",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error_type": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            },
            "example": [
              {
                "error_type": "forbidden",
                "message": "Campaign does not belong to the current team. Please switch view to the respective team."
              }
            ]
          }
        }
      },
      "NotFoundError": {
        "description": "Record not found",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error_type": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            },
            "example": [
              {
                "error_type": "not_found",
                "message": "No Campaign found."
              }
            ]
          }
        }
      }
    }
  }
}
```