the title says it all. I just want to be able to do different thing depending on how the contact is created.
I looked through the $bean object and couldn't find anything that is already passed through that you can use. A workaround that may do the trick would be to create a custom checkbox on the module, but omit it from the Record View layout. When creating a record in the API, be sure to mark this box as checked. Then you can check in your logic hook whether the checkbox is checked - if it is, you know it's coming in through the API. Not ideal, but hopefully something that will work for your use case.
Okay thanks Alan, I just wanted to confirm that I am not missing anything. I didn't see anything in bean that would indicate this either.
Retrieving data ...