> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/infrastructure-as-code-management/iacm-api-reference/provisioner-activities/start-activity.md).

# Start activity

Start a new provisioner activity. The activity\_id is client-generated for idempotency.

```json
{"openapi":"3.0.3","info":{"title":"Infrastructure as Code Management","version":"0.1.0"},"tags":[{"name":"provisioner_activities","description":"Provisioner Activities Service handles the API for managing provisioner activity lifecycle.\nThis API provides explicit start and complete endpoints for provisioner operations (CDK, Terraform)."}],"servers":[{"url":"http://localhost:80"}],"paths":{"/api/orgs/{org}/projects/{project}/workspaces/{workspace}/provisioner-activities/start":{"post":{"tags":["provisioner_activities"],"summary":"Start activity","description":"Start a new provisioner activity. The activity_id is client-generated for idempotency.","operationId":"provisioner_activities#start-activity","parameters":[{"name":"org","in":"path","description":"Org is the organisation identifier.","required":true,"schema":{"type":"string","description":"Org is the organisation identifier.","minLength":1,"maxLength":128}},{"name":"project","in":"path","description":"Project is the project identifier.","required":true,"schema":{"type":"string","description":"Project is the project identifier.","minLength":1,"maxLength":128}},{"name":"workspace","in":"path","description":"Workspace identifier","required":true,"schema":{"type":"string","description":"Workspace identifier","minLength":1,"maxLength":128}},{"name":"Harness-Account","in":"header","description":"Account is the internal customer account ID.","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"Account is the internal customer account ID.","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartActivityRequest"}}}},"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartActivityResponse"}}}},"400":{"description":"BadRequestError: Bad Request response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"UnauthorizedError: Unauthorized response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"ForbiddenError: Forbidden response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"NotFoundError: Not Found response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"408":{"description":"TimeoutError: Request Timeout response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"ConflictError: Conflict response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"LockedError: Locked response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"499":{"description":"ContextCancelledError:  response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"InternalServerError: Internal Server Error response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"BadGatewayError: Bad Gateway response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"StartActivityRequest":{"type":"object","properties":{"activity_id":{"type":"string","description":"Client-generated UUID for idempotency","format":"uuid"},"activity_type":{"type":"string","description":"Type of activity being performed","enum":["bootstrap","synth","deploy","destroy","plan","apply","diff","drift"]},"git_info":{"$ref":"#/components/schemas/GitInfo"},"pipeline_execution_id":{"type":"string","description":"Pipeline execution identifier"},"pipeline_id":{"type":"string","description":"Pipeline identifier"},"pipeline_stage_id":{"type":"string","description":"Pipeline stage identifier"},"provisioner_type":{"type":"string","description":"Type of provisioner","enum":["awscdk","tf"]},"provisioner_version":{"type":"string","description":"Version of the provisioner (CDK CLI version, Terraform version)"}},"required":["activity_id","provisioner_type","activity_type"]},"GitInfo":{"type":"object","properties":{"branch":{"type":"string","description":"Git branch name"},"commit_message":{"type":"string","description":"Git commit message"},"commit_sha":{"type":"string","description":"Git commit SHA"},"repo":{"type":"string","description":"Git repository URL"}},"description":"Git repository information associated with an activity"},"StartActivityResponse":{"type":"object","properties":{"activity_id":{"type":"string","description":"The activity identifier"},"started_at":{"type":"integer","description":"Unix timestamp in milliseconds when activity started","format":"int64"},"status":{"type":"string","description":"Current status of the activity","enum":["started","running","completed","failed"]}},"required":["activity_id","status","started_at"]},"Error":{"type":"object","properties":{"fault":{"type":"boolean","description":"Is the error a server-side fault?"},"id":{"type":"string","description":"ID is a unique identifier for this particular occurrence of the problem."},"message":{"type":"string","description":"Message is a human-readable explanation specific to this occurrence of the problem."},"name":{"type":"string","description":"Name is the name of this class of errors."},"temporary":{"type":"boolean","description":"Is the error temporary?"},"timeout":{"type":"boolean","description":"Is the error a timeout?"}},"required":["name","id","message","temporary","timeout","fault"]}}}}
```
