---
title: "Add a member to a team"
method: POST
path: "/api/{org_id}/oncall/teams/{team_id}/members"
tags: ["OnCall"]
---

# Add a member to a team

`POST /api/{org_id}/oncall/teams/{team_id}/members`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/oncall/teams/{team_id}/members`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/oncall/teams/:team_id/members/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required
- `team_id` string, required

## Request body

- AddMembersRequest: Accepts one email or many, because setting a team up is mostly "add these six people".
  - `user_email` string, nullable
  - `user_emails` string[]

## Response `200`

Success

- TeamMember[]
  - `id` string, required
  - `team_id` string, required
  - `user_email` string, required

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
