Implements post key api.