Adding messages field to the instance api resource