Narrative:

Our flight was cleared for takeoff. I was pilot flying; first officer was pilot monitoring. The event started between 1;500 feet and 2;000 feet; I believe; but I was focused on relative altitude not absolute altitude. After aircraft cleanup; there was a popup TCAS traffic alert for a target at 12 o'clock; 2 miles or less; no altitude reported. Lowest reported cloud layer was scattered at 2;700 feet. Believing that any unreported traffic would likely be below us; I pulled nose up to maintain or slightly decrease airspeed and gain more altitude. Almost immediately after this an altitude report of '00' appeared on the target and an RA for pull up occurred. Simultaneously; the departure controller reported traffic; 12 o'clock; less than a mile. As we passed over the traffic; the greatest relative altitude report I saw was '01'. There was no visual contact probably due to our nose high attitude. The departure controller then asked if the tower had informed us about the helicopter traffic to which we replied; 'negative'.

Google
 

Original NASA ASRS Text

Title: Air carrier flight crew reported experiencing a near miss shortly after takeoff.

Narrative: Our flight was cleared for takeoff. I was pilot flying; FO was pilot monitoring. The event started between 1;500 feet and 2;000 feet; I believe; but I was focused on relative altitude not absolute altitude. After aircraft cleanup; there was a popup TCAS traffic alert for a target at 12 o'clock; 2 miles or less; no altitude reported. Lowest reported cloud layer was scattered at 2;700 feet. Believing that any unreported traffic would likely be below us; I pulled nose up to maintain or slightly decrease airspeed and gain more altitude. Almost immediately after this an altitude report of '00' appeared on the target and an RA for pull up occurred. Simultaneously; the Departure Controller reported traffic; 12 o'clock; less than a mile. As we passed over the traffic; the greatest relative altitude report I saw was '01'. There was no visual contact probably due to our nose high attitude. The Departure Controller then asked if the Tower had informed us about the helicopter traffic to which we replied; 'negative'.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.