async def get(self, db: AsyncSession, id: UUID, current_user: User) -> Optional[APIKey]:
        """Get an API key by ID.

        Args:
        ----
            db (AsyncSession): The database session.
            id (str): The ID of the API key to get.
            current_user (User): The current user.

        Returns:
        -------
            Optional[APIKey]: The API key if found.

        """
        # Get API key by ID and organization ID
        query = select(self.model).where(
            self.model.id == id, self.model.organization_id == current_user.organization_id
        )
        result = await db.execute(query)
        return result.scalars().first()
Get an API key by ID.

        Args:
        ----
            db (AsyncSession): The database session.
            id (str): The ID of the API key to get.
            current_user (User): The current user.

        Returns:
        -------
            Optional[APIKey]: The API key if found.

        
backend/airweave/crud/crud_api_key.py