fix: response types for removing an api key, and removing a contact from a segment (#1003)