def _get_api_id(self, event_properties):
api_id = event_properties.get("<STR_LIT>")<EOL>if isinstance(api_id, dict) and "<STR_LIT>" in api_id:<EOL><INDENT>api_id = api_id["<STR_LIT>"]<EOL><DEDENT>return api_id<EOL>
Get API logical id from API event properties.

Handles case where API id is not specified or is a reference to a logical id.