Yes you can define a class, instance it as a object and send it back to the client-side program. The WebAPI will Jason serialize the object and send it. The client program will have to deserialize the Jason object back into a .NET object.The class must be known by the client program and WebAPI.
I can't say that what you have implemented in a WCF solution is applicable to a WebAPI.