extract post_api_key method
extract patch_api_keys method