---
title: "Group"
method: POST
path: "/v1/group"
tags: ["HTTP API"]
---

# Group

`POST /v1/group`

The group call lets you link an identified user with a group such as a company, organization, or an account. It also lets you record any custom traits associated with that group, like the name of the company, the number of employees, etc.

## Request body

- GroupPayload
  - `userId` string — Unique identifier for a particular user in your database.
  - `anonymousId` string — Sets the user ID for cases where there is no unique identifier for the user.
  - `groupId` string — Unique identifier of the group, as present in your database.
  - `traits` object — Dictionary of the traits associated with the group, such as name or email.
  - `context` object — Dictionary of information that provides context about a message.
    - `traits` object
      - `trait1` string — New value for trait1.
    - `ip` string — IP address.
    - `library` object
      - `name` string — Name of the library.
  - `timestamp` string, date-time — The timestamp of the message’s arrival.

## Response `200`

StatusOK

## Other responses

- `400` — StatusBadRequest
- `401` — StatusUnauthorized
- `404` — StatusNotFound
- `413` — StatusRequestEntityTooLarge
- `429` — StatusTooManyRequests

---

[API](https://skmtc.dev/rudderlabs/apis/rudderstack-http-api.md) · [All operations](https://skmtc.dev/rudderlabs/apis/rudderstack-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rudderlabs/rudderstack-http-api/revisions/51895af9035c/schema)
