> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create an EmailFlow object

> Create an EmailFlow object

The **CreateDefaultEmailFlow Agent** REST endpoint returns a pre-populated default EmailFlow object, providing both default system values and a comprehensive overview of the object structure.

## Request

```http theme={null}
POST https://{{env}}.superoffice.com/{{tenant}}/v1/Agents/Workflow/CreateDefaultEmailFlow HTTP/1.1
Authorization: Bearer {{access_token}}
Accept: application/json
```

## Response

```json theme={null}
{
  "EmailFlowId": 0,
  "Name": "",
  "Description": "",
  "Status": "Stopped",
  "JumpToFinish": false,
  "StartOnlyOnce": true,
  "UseTimeframe": false,
  "SelectedDays": "Unknown",
  "Steps": [],
  "Triggers": [],
  "Goals": [],
  "Filter": {
    "RestrictionGroups": [],
    "TableRight": null,
    "FieldProperties": {}
  },
  "BlockLists": [],
  "ContentInfo": [],
  "ExitFlowId": 0,
  "ExitSuccessFlowId": 0,
  "CreatedBy": null,
  "UpdatedBy": null,
  "CreatedDate": "0001-01-01T00:00:00Z",
  "UpdatedDate": "0001-01-01T00:00:00Z",
}
```

The above JSON has been edited/cut for clarity.

### Key flow properties

| Property    | Description                                                                                |
| ----------- | ------------------------------------------------------------------------------------------ |
| EmailFlowId | Unique identifier assigned by the system upon saving the flow. Should not be set manually. |
| Name        | Unique name of the flow as displayed in SuperOffice (for example, 'My first flow').        |
| Status      | Indicates whether the flow is running, paused, or stopped.                                 |
| Triggers    | Array of events that kick off the flow.                                                    |
| Steps       | Array of steps that define the sequence of actions within the flow.                        |

More properties are detailed in the [CreateDefaultEmailFlow Agent reference][1].

[1]: ../../../reference/restful/agent/Workflow_Agent/v1WorkflowAgent_CreateDefaultEmailFlow


## Related topics

- [EmailFlows](/en/api/archive-providers/reference/emailflows.md)
- [Create Default Email Flow](/en/api/reference/restful/agent/workflow_agent/create-default-email-flow.md)
- [SuperOffice.WebApi.Data.EmailFlow](/en/api/reference/webapi/SuperOffice.WebApi.Data.EmailFlow.md)
- [SuperOffice.WebApi.Agents.IWorkflowAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IWorkflowAgent.md)
- [SuperOffice.WebApi.Agents.WorkflowAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.WorkflowAgent.md)
- [Create a Trigger object](/en/api/web-services/howto/flows/rest-create-flow-trigger.md)
