---
title: "Creates a new workflow associated to a bucket."
method: POST
path: "/v1/accounts/{accountSid}/environments/{environmentSid}/buckets/{bucketSid}/workflows"
tags: ["Workflows"]
---

# Creates a new workflow associated to a bucket.

`POST /v1/accounts/{accountSid}/environments/{environmentSid}/buckets/{bucketSid}/workflows`

## Request

- Base URL: `https://api.apitraffic.io`
- URL: `https://api.apitraffic.io/v1/accounts/{accountSid}/environments/{environmentSid}/buckets/{bucketSid}/workflows`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apitraffic/apis/apitraffic-api-documentation/docs/v1/accounts/:accountSid/environments/:environmentSid/buckets/:bucketSid/workflows/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new workflow.

## Path parameters

- `accountSid` string, required: accountSid
- `environmentSid` string, required: environmentSid
- `bucketSid` string, required: bucketSid

## Request body

- Model28
  - `name` string, required: The name of the workflow.
  - `streamViewSid` string, nullable: The streamViewSid that this workflow is associated with.
  - `environmentSid` string, required: The environmentSid that this workflow is associated with.
  - `isPerEnvironment` boolean: Indicates if this workflow can be edited on a per enviornment basis.
  - `signin` boolean: Returns the signin information for the user that is sending the create request.

## Response `default`

Successful

- string

---

[API](https://skmtc.dev/apitraffic/apis/apitraffic-api-documentation.md) - [All operations](https://skmtc.dev/apitraffic/apis/apitraffic-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/apitraffic/apis/apitraffic-api-documentation/revisions/b2a22a9b5c98?raw)
