> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Create Client

- Component: `appmixer.toggl.core.CreateClient`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.toggl 1.0.0](https://connectors.appmixer.com/connector/appmixer.toggl/1.0.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.toggl/1.0.0/component/appmixer.toggl.core.CreateClient>

Create a client in the workspace.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Name (`name`) | text | Name of the client. |
| Contact Email (`contactEmail`) | text | Email address of the contact at the client. Optional. |
| Address (`address`) | textarea | Postal address of the client. Optional. |
| Internal Reference (`internalReference`) | text | Your own reference for the client, for example an ID from the accounting system. Optional. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Client ID (`id`) | integer | - |
| Workspace ID (`workspace_id`) | integer | - |
| Creator User ID (`toggl_user_id`) | integer | - |
| Name (`name`) | string | - |
| Contact Email (`contact_email`) | string | - |
| Address (`address`) | string | - |
| Internal Reference (`internal_reference`) | string | - |
| Active (`active`) | boolean | - |
| Created At (`created_at`) | string | - |
| Updated At (`updated_at`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.toggl.core.CreateClient",
  "label": "Create Client",
  "description": "Create a client in the workspace.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:toggl"
  },
  "quota": {
    "manager": "appmixer:toggl",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "contactEmail": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "internalReference": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "inspector": {
        "inputs": {
          "name": {
            "type": "text",
            "label": "Name",
            "tooltip": "Name of the client.",
            "index": 1
          },
          "contactEmail": {
            "type": "text",
            "label": "Contact Email",
            "tooltip": "Email address of the contact at the client. Optional.",
            "index": 2
          },
          "address": {
            "type": "textarea",
            "label": "Address",
            "tooltip": "Postal address of the client. Optional.",
            "index": 3
          },
          "internalReference": {
            "type": "text",
            "label": "Internal Reference",
            "tooltip": "Your own reference for the client, for example an ID from the accounting system. Optional.",
            "index": 4
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "title": "Client ID",
            "example": 953805
          },
          "workspace_id": {
            "type": "integer",
            "title": "Workspace ID",
            "example": 21808213
          },
          "toggl_user_id": {
            "type": "integer",
            "title": "Creator User ID",
            "example": 7987332
          },
          "name": {
            "type": "string",
            "title": "Name",
            "example": "Acme"
          },
          "contact_email": {
            "type": "string",
            "title": "Contact Email",
            "example": "billing@acme.com"
          },
          "address": {
            "type": "string",
            "title": "Address",
            "example": "1 Main Street, Springfield"
          },
          "internal_reference": {
            "type": "string",
            "title": "Internal Reference",
            "example": "CUST-0042"
          },
          "active": {
            "type": "boolean",
            "title": "Active",
            "example": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At",
            "example": "2026-11-18T14:34:58.648022Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At",
            "example": "2026-11-18T14:34:58.648022Z"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
