Add user_id to token conversion in api/:type