---
title: "Add members to an assistant"
method: POST
path: "/assistants/{assistant_id}/members"
tags: ["Assistant"]
---

# Add members to an assistant

`POST /assistants/{assistant_id}/members`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/assistants/{assistant_id}/members`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/assistants/:assistant_id/members/post.ts> (a function with typed inputs; its response is checked against the schema)

Add one or more users as members of the assistant.

## Path parameters

- `assistant_id` integer, required

## Query parameters

- `cookie_name` string, nullable

## Request body

- AssistantMembersIn
  - `user_ids` integer[], required: IDs of the users to add or remove as members.

## Response `201`

Successful Response

- AssistantMember[]
  - `created_at` string, date-time: Timestamp when the membership was created.
  - `assistant_id` integer, required: ID of the assistant.
  - `user_id` integer, required: ID of the member user.

## Other responses

- `401`: Missing or invalid authentication.
- `403`: Not the creator of this assistant.
- `404`: No assistant exists with the given id.
- `422`: Validation Error

---

[API](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
