added profile api
changed api authentication type