how to match records of create record with the record id from the response?

how to match records of create record with the record id from the response?

I'd like to create several contacts at once and afterwards add some related list items. However, it seems there is not a streight way to match the input data to the id.
Whats your suggestion?