Skip to main content

Get me

GET /api/organizations/{org_id}/me

Get the current user's membership record for an organization. Returns the authenticated user's role, status, email, and LLM override fields (with masked API keys) within the specified organization. Args: org_id: Organization ID (UUID) user_id: Authenticated user ID (injected by dependency) Returns: MeResponse: The user's membership data Raises: HTTPException: 404 if user is not a member or org doesn't exist HTTPException: 500 if retrieval fails

Parameters

NameInTypeRequiredDescription
org_idpathstringyes
X-Org-Idheader`stringnull`no

Responses

StatusDescription
200Successful Response
422Validation Error

Response body

FieldTypeRequiredDescription
org_idstringyes
user_idstringyes
emailstringyes
rolestringyes
permissionsstring[]no
llm_api_keystringyes
llm_api_key_for_byor`stringnull`no
agent_settings_diffobjectno
conversation_settings_diffobjectno
status`stringnull`no

Operation ID: get_me_api_organizations__org_id__me_get