Secured the api.