# search_orgs_users_prompts_retrieve Search and filter AI prompts for a specific user within a tenant. This endpoint extends the base prompt search functionality but filters results to only show prompts that are available to a specific user within a specific organization/tenant. Path Parameters: org (str): The organization/tenant identifier username (str): The username to filter prompts for Query Parameters: Same as PromptSearchView, plus: # Identification parameters (for detail view) id (int, optional): Retrieve a specific prompt by ID Returns: Same format as PromptSearchView, but filtered to only include prompts that the specified user has access to within the specified organization. Error Responses: 400 Bad Request: If the request parameters are invalid 403 Forbidden: If the requested prompt exists but the user doesn't have access 404 Not Found: If the requested prompt doesn't exist 500 Internal Server Error: If an unexpected error occurs Access Control: - Results are filtered based on user's permissions within the organization - Private prompts are only visible to authorized users Endpoint: GET /api/search/orgs/{org}/users/{username}/prompts/ Version: 3.59.0-ai-plus ## Query parameters: - `alphabetical` (boolean) Sort alphabetically - `category` (string) Filter by prompt category - `filter_facet` (boolean) If true, return only facets without results - `language` (string) Filter by prompt language - `limit` (integer) Number of results per page - `mentor` (string) Filter by mentor UUID - `offset` (integer) Starting position for pagination - `order_direction` (string) Sort direction ('asc' or 'desc') - `query` (string) Search term to filter prompts by name or content - `sort_by` (string) Field to sort results by - `style` (string) Filter by prompt style - `tenant` (string) Filter by tenant/organization - `tone` (string) Filter by prompt tone ## Path parameters: - `org` (string, required) - `username` (string, required) ## Response 200 fields (application/json): - `results` (array, required) List of prompts matching the search criteria - `results.id` (integer, required) - `results.mentor` (string) - `results.tone` (string,null) - `results.style` (string) - `results.language` (string) - `results.tags` (array) - `results.is_system` (boolean) - `results.metadata` (any) - `results.category` (string) - `results.prompt` (string, required) - `results.title` (string,null) - `results.description` (string,null) - `results.prompt_visibility` (any,null) - `results.created_at` (string, required) - `results.updated_at` (string, required) - `results.created_by` (string,null) - `results.platform` (integer, required) - `count` (integer, required) Total number of prompts matching the search criteria - `next` (string,null, required) URL for the next page of results - `previous` (string,null, required) URL for the previous page of results - `current_page` (integer, required) Current page number - `num_pages` (integer, required) Total number of pages - `facets` (object) Facet information for filtering