Get or generate a contact checksum via API?
I have never seen the checksum available in the API.

I have successfully obtained it programmatically though with code similar to:

$cs = CRM_Contact_BAO_Contact_Utils::generateChecksum($contact_id);


(This snippet is adapted from core code in CRM/Utils/Token.php)