> For the complete documentation index, see [llms.txt](https://docs.ai.neevcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ai.neevcloud.com/api-reference/tenant/organization-members.md).

# Organization Members

Organization member management endpoints

## Get organization members

> Retrieve all members of an organization

```json
{"openapi":"3.0.3","info":{"title":"Tenant API","version":"0.1.0"},"tags":[{"name":"Organization Members","description":"Organization member management endpoints"}],"servers":[{"url":"https://api.ai.neevcloud.com/tenant","description":"Consolidated public API gateway"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Use the **`access_token`** from `POST /api/v1/auth/login` (same credentials as the console). In **Authorize**, paste **only that token** — do not prepend `Bearer`, and do not use inference keys (`sk-nc-*`) here. The same token authenticates this API and AI Models / AI Runtime.\n"}},"schemas":{"OrganizationMemberListResponse":{"type":"object","description":"Response containing a paginated list of organization members","properties":{"data":{"type":"array","description":"Array of organization member objects","items":{"$ref":"#/components/schemas/OrganizationMemberResponse"}}}},"OrganizationMemberResponse":{"type":"object","description":"Response payload containing organization member details","required":["member_id","member_email","member_role"],"properties":{"member_id":{"type":"string","description":"Unique identifier for the organization member","format":"uuid"},"member_email":{"type":"string","format":"email","description":"Email address where the invitation was sent or member added successfully"},"member_role":{"$ref":"#/components/schemas/OrganizationRole"}}},"OrganizationRole":{"type":"string","description":"Role to be assigned to the member in the organization","enum":["owner","admin","member"]},"ErrorResponse":{"type":"object","description":"Standard error response containing an error message","required":["code","message"],"properties":{"code":{"type":"string","description":"A short, machine-readable error code."},"message":{"type":"string","description":"A descriptive error message."}}}}},"paths":{"/api/v1/orgs/{org_id}/members":{"get":{"operationId":"listOrganizationMembers","summary":"Get organization members","description":"Retrieve all members of an organization","tags":["Organization Members"],"parameters":[{"name":"org_id","description":"Organization ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Organization members retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationMemberListResponse"}}}},"400":{"description":"Invalid organization ID format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid authentication token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient permissions to list organization members.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Organization not found with the provided ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error occurred while retrieving organization members.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```

## Add organization member

> Add a new member to an organization by sending an invitation or update the role of an existing member to an organization.

```json
{"openapi":"3.0.3","info":{"title":"Tenant API","version":"0.1.0"},"tags":[{"name":"Organization Members","description":"Organization member management endpoints"}],"servers":[{"url":"https://api.ai.neevcloud.com/tenant","description":"Consolidated public API gateway"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Use the **`access_token`** from `POST /api/v1/auth/login` (same credentials as the console). In **Authorize**, paste **only that token** — do not prepend `Bearer`, and do not use inference keys (`sk-nc-*`) here. The same token authenticates this API and AI Models / AI Runtime.\n"}},"schemas":{"AddOrganizationMemberRequest":{"type":"object","description":"Request payload adding a user to an organization","required":["member_email","member_role"],"properties":{"member_email":{"type":"string","format":"email","description":"Email address of the user to invite"},"member_role":{"$ref":"#/components/schemas/OrganizationRole"},"message":{"type":"string","description":"Optional personal message to include in the invitation email","maxLength":500}}},"OrganizationRole":{"type":"string","description":"Role to be assigned to the member in the organization","enum":["owner","admin","member"]},"AddOrganizationMemberResponse":{"type":"object","description":"Response payload containing organization member details","required":["message"],"properties":{"member_id":{"type":"string","description":"Unique identifier for the organization member","format":"uuid"},"member_email":{"type":"string","format":"email","description":"Email address where the invitation was sent or member added successfully"},"member_role":{"$ref":"#/components/schemas/OrganizationRole"},"message":{"type":"string","description":"Confirmation message about the invitation or member added successfully"},"expires_at":{"type":"string","format":"date-time","description":"Timestamp when the invitation expires"}}},"ErrorResponse":{"type":"object","description":"Standard error response containing an error message","required":["code","message"],"properties":{"code":{"type":"string","description":"A short, machine-readable error code."},"message":{"type":"string","description":"A descriptive error message."}}}}},"paths":{"/api/v1/orgs/{org_id}/members":{"post":{"operationId":"addOrganizationMember","summary":"Add organization member","description":"Add a new member to an organization by sending an invitation or update the role of an existing member to an organization.","tags":["Organization Members"],"parameters":[{"name":"org_id","description":"Organization ID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddOrganizationMemberRequest"}}}},"responses":{"201":{"description":"Invitation sent to the member or member added to the organization successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddOrganizationMemberResponse"}}}},"400":{"description":"Invalid data format or missing required fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid authentication token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient permissions to add organization member.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Organization not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"User is already a member of the organization with the same role.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error occurred while adding organization member.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```

## Remove organization member

> Remove a member from an organization

```json
{"openapi":"3.0.3","info":{"title":"Tenant API","version":"0.1.0"},"tags":[{"name":"Organization Members","description":"Organization member management endpoints"}],"servers":[{"url":"https://api.ai.neevcloud.com/tenant","description":"Consolidated public API gateway"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Use the **`access_token`** from `POST /api/v1/auth/login` (same credentials as the console). In **Authorize**, paste **only that token** — do not prepend `Bearer`, and do not use inference keys (`sk-nc-*`) here. The same token authenticates this API and AI Models / AI Runtime.\n"}},"schemas":{"SuccessResponse":{"type":"object","description":"Generic success response containing a message","required":["message"],"properties":{"message":{"type":"string","description":"A descriptive success message"}}},"ErrorResponse":{"type":"object","description":"Standard error response containing an error message","required":["code","message"],"properties":{"code":{"type":"string","description":"A short, machine-readable error code."},"message":{"type":"string","description":"A descriptive error message."}}}}},"paths":{"/api/v1/orgs/{org_id}/members/{member_id}":{"delete":{"operationId":"removeOrganizationMember","summary":"Remove organization member","description":"Remove a member from an organization","tags":["Organization Members"],"parameters":[{"name":"org_id","description":"Organization ID","in":"path","required":true,"schema":{"type":"string"}},{"name":"member_id","description":"Member User ID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Member removed successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"description":"Invalid organization ID or member user ID format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid authentication token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient permissions to remove organization member.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Organization or member user not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error occurred while removing organization member.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ai.neevcloud.com/api-reference/tenant/organization-members.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
