For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://modelgates.ai/docs/_mcp/server.
List organization members
GET https://modelgates.ai/api/v1/organization/members
List all members of the organization associated with the authenticated management key. Management key required.
Reference: https://modelgates.ai/docs/api/api-reference/organization/list-organization-members
OpenAPI Specification
yaml
openapi: 3.1.0info: title: ModelGates API version: 1.0.0paths: /organization/members: get: operationId: list-organization-members summary: List organization members description: >- List all members of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required. tags: - subpackage_organization parameters: - name: offset in: query description: Number of records to skip for pagination required: false schema: type: integer - name: limit in: query description: Maximum number of records to return (max 100) required: false schema: type: integer - name: Authorization in: header description: API key as bearer token in Authorization header required: true schema: type: string responses: '200': description: List of organization members content: application/json: schema: $ref: >- #/components/schemas/Organization_listOrganizationMembers_Response_200 '401': description: Unauthorized - Authentication required or invalid credentials content: application/json: schema: $ref: '#/components/schemas/UnauthorizedResponse' '404': description: Not Found - Resource does not exist content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' '500': description: Internal Server Error - Unexpected server error content: application/json: schema: $ref: '#/components/schemas/InternalServerResponse'servers: - url: https://modelgates.ai/api/v1components: schemas: OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole: type: string enum: - org:admin - org:member description: Role of the member in the organization title: OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems: type: object properties: email: type: string description: Email address of the member first_name: type: - string - 'null' description: First name of the member id: type: string description: User ID of the organization member last_name: type: - string - 'null' description: Last name of the member role: $ref: >- #/components/schemas/OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole description: Role of the member in the organization required: - email - first_name - id - last_name - role title: OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems Organization_listOrganizationMembers_Response_200: type: object properties: data: type: array items: $ref: >- #/components/schemas/OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems description: List of organization members total_count: type: integer description: Total number of members in the organization required: - data - total_count title: Organization_listOrganizationMembers_Response_200 UnauthorizedResponseErrorData: type: object properties: code: type: integer message: type: string metadata: type: - object - 'null' additionalProperties: description: Any type required: - code - message description: Error data for UnauthorizedResponse title: UnauthorizedResponseErrorData UnauthorizedResponse: type: object properties: error: $ref: '#/components/schemas/UnauthorizedResponseErrorData' modelgates_metadata: type: - object - 'null' additionalProperties: description: Any type user_id: type: - string - 'null' required: - error description: Unauthorized - Authentication required or invalid credentials title: UnauthorizedResponse NotFoundResponseErrorData: type: object properties: code: type: integer message: type: string metadata: type: - object - 'null' additionalProperties: description: Any type required: - code - message description: Error data for NotFoundResponse title: NotFoundResponseErrorData NotFoundResponse: type: object properties: error: $ref: '#/components/schemas/NotFoundResponseErrorData' modelgates_metadata: type: - object - 'null' additionalProperties: description: Any type user_id: type: - string - 'null' required: - error description: Not Found - Resource does not exist title: NotFoundResponse InternalServerResponseErrorData: type: object properties: code: type: integer message: type: string metadata: type: - object - 'null' additionalProperties: description: Any type required: - code - message description: Error data for InternalServerResponse title: InternalServerResponseErrorData InternalServerResponse: type: object properties: error: $ref: '#/components/schemas/InternalServerResponseErrorData' modelgates_metadata: type: - object - 'null' additionalProperties: description: Any type user_id: type: - string - 'null' required: - error description: Internal Server Error - Unexpected server error title: InternalServerResponse securitySchemes: apiKey: type: http scheme: bearer description: API key as bearer token in Authorization headerSDK Code Examples
python
import requests url = "https://modelgates.ai/api/v1/organization/members" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.json())