once a lead or a deal is converted, it is marked as deleted and a usual 30-day period starts after which it is permanently removed. During this period, the deal/lead is not accessible via API. However, if the entity is converted back, It will have the same original id.