> 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/get-groups-info.md).

# Get groups info

Header

```
Content-Type:multipart/form-data
Authorization:'Bearer token_value_from_login'
```

#### Get Group by ID

Search for a group using its ID. Returns the group details including all assigned clients.

## POST /api/Groups/GetById

> GetById

```json
{"openapi":"3.1.1","info":{"title":"Customer API","version":"1.0.0"},"servers":[{"url":"/"}],"paths":{"/api/Groups/GetById":{"post":{"tags":["Groups"],"summary":"GetById","operationId":"GetById_POST","parameters":[{"schema":{"type":"string"},"name":"groupId","in":"query","required":true}],"responses":{"200":{"description":"Success (Custom Example)","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}}}}}}
```

{% hint style="info" %}
`Order` inside `GroupClients` determines the signing order in a sequential Signature Routine.
{% endhint %}

***

#### Get All Groups by User

Returns all groups created by the authenticated user.

## GET /api/Groups/GetAllByUser

> GetAllByUser

```json
{"openapi":"3.1.1","info":{"title":"Customer API","version":"1.0.0"},"servers":[{"url":"/"}],"paths":{"/api/Groups/GetAllByUser":{"get":{"tags":["Groups"],"summary":"GetAllByUser","operationId":"GetAllByUser_GET","responses":{"200":{"description":"Success (Custom Example)","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}}}}}}
```

{% hint style="info" %}
`GroupClients` is returned empty in this endpoint. To get the full list of clients in a group, use Get Group by ID.
{% endhint %}
