In general you should use the sendwithmetadata or sendwithmetadatafrom APIs, putting the hexadecimal value of the hash in the data-hex parameter. There isn't currently a way to search the blockchain for a particular hash, but we're working on a set of APIs to make that use case much easier.