---
title: "Add user to team"
method: POST
path: "/user-service/teams/{teamId}/members"
tags: ["Teams"]
---

# Add user to team

`POST /user-service/teams/{teamId}/members`

## Request

- Base URL: `https://api.firefly.ai/v2`
- URL: `https://api.firefly.ai/v2/user-service/teams/{teamId}/members`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/firefly/apis/firefly-user-management-service-api/docs/user-service/teams/:teamId/members/post.ts> (a function with typed inputs; its response is checked against the schema)

Add a single user to the specified team

## Request body

- object
  - `user_id` string, uuid, required: User ID to add to the team

## Response `201`

User added to team successfully

- object
  - `message` string
  - `user_id` string, uuid
  - `team_id` string, uuid

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: User or team not found
- `409`: User already in team

---

[API](https://skmtc.dev/firefly/apis/firefly-user-management-service-api.md) - [All operations](https://skmtc.dev/firefly/apis/firefly-user-management-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/firefly/apis/firefly-user-management-service-api/revisions/3d5d69795558?raw)
