Pass the key to get_identity_document() Rename the file to 'send_identity' for consistency with the other files