> For the complete documentation index, see [llms.txt](https://2sign-co-il.gitbook.io/2sign.co.il-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://2sign-co-il.gitbook.io/2sign.co.il-docs/clients-and-groups/create-clients-and-groups.md).

# Create clients and groups

* **Pre-Defined Records:** Clients are created and saved directly inside the system with their verified details (names, emails, identifiers).
* **Workflow Automation:** Once a client is saved, you can instantly trigger and generate tasks for them without re-entering their information every time.

## Create group

{% code title="Body" overflow="wrap" lineNumbers="true" %}

```
{
  "Name":"Testing Group"    
}
```

{% endcode %}

{% hint style="info" %}
`ResponseObject` will contain the groupID  as [`Id`](#user-content-fn-1)[^1]
{% endhint %}

## POST /api/Groups/Create

> Create

```json
{"openapi":"3.1.1","info":{"title":"Customer API","version":"1.0.0"},"servers":[{"url":"/"}],"paths":{"/api/Groups/Create":{"post":{"tags":["Groups"],"summary":"Create","operationId":"Create_POST","responses":{"200":{"description":"Success (No content returned)"},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupDetailsModel"}}},"required":true}}}},"components":{"schemas":{"GroupDetailsModel":{"type":"object","properties":{"Id":{"type":"integer"},"UserId":{"type":"string"},"ManagerId":{"type":"string"},"Name":{"type":"string"},"GroupClients":{"type":"string"},"ClientsCounter":{"type":"integer"},"ClientsPhonesCounter":{"type":"integer"},"ClientsEmailsCounter":{"type":"integer"},"SignatureRoutine":{"type":"boolean"},"APIResponse":{"type":"string"}},"required":["Id","ClientsCounter","ClientsPhonesCounter","ClientsEmailsCounter","SignatureRoutine"]}}}}
```

## Create client

{% code title="Body" overflow="wrap" lineNumbers="true" %}

```
{
    "Name":"Test Client",
    "Emails":"testclient@test.com",
    "Phones":"0500000000"
}
```

{% endcode %}

## POST /api/Clients/Create

> Create

```json
{"openapi":"3.1.1","info":{"title":"Customer API","version":"1.0.0"},"servers":[{"url":"/"}],"paths":{"/api/Clients/Create":{"post":{"tags":["Clients"],"summary":"Create","operationId":"Create_POST","responses":{"200":{"description":"Success (Custom Example)","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDetailsResponseModel"}}},"required":true}}}},"components":{"schemas":{"ClientDetailsResponseModel":{"type":"object","properties":{"Id":{"type":"integer"},"UserId":{"type":"string"},"ManagerId":{"type":"string"},"Name":{"type":"string"},"CompNum":{"type":"string"},"Emails":{"type":"string"},"Phones":{"type":"string"},"Clients":{"type":"string"},"APIResponse":{"type":"string"}},"required":["Id"]}}}}
```

Assign Clients to Group

{% code title="Body" overflow="wrap" lineNumbers="true" %}

```
{
    "Id": 23157,
    "GroupClients": [
        {
            "GroupId": 23157,
            "ClientId": 201482
        }
    ],
}
```

{% endcode %}

## POST /api/Groups/AssignClientsToGroup

> AssignClientsToGroup

```json
{"openapi":"3.1.1","info":{"title":"Customer API","version":"1.0.0"},"servers":[{"url":"/"}],"paths":{"/api/Groups/AssignClientsToGroup":{"post":{"tags":["Groups"],"summary":"AssignClientsToGroup","operationId":"AssignClientsToGroup_POST","responses":{"200":{"description":"Success (No content returned)"},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupDetailsModel"}}},"required":true}}}},"components":{"schemas":{"GroupDetailsModel":{"type":"object","properties":{"Id":{"type":"integer"},"UserId":{"type":"string"},"ManagerId":{"type":"string"},"Name":{"type":"string"},"GroupClients":{"type":"string"},"ClientsCounter":{"type":"integer"},"ClientsPhonesCounter":{"type":"integer"},"ClientsEmailsCounter":{"type":"integer"},"SignatureRoutine":{"type":"boolean"},"APIResponse":{"type":"string"}},"required":["Id","ClientsCounter","ClientsPhonesCounter","ClientsEmailsCounter","SignatureRoutine"]}}}}
```

[^1]:


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://2sign-co-il.gitbook.io/2sign.co.il-docs/clients-and-groups/create-clients-and-groups.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
