How to create contact with label

First of all, here is my labels list.


And I tried to use contacts.queryLabels() to get all my info of labels as below:


And now I want to create contact with label defined, here is my code:
export function resentActivation ( email ) {
let contactInfo = {
“emails” : [{
tag : “WORK” ,
email : email
}],
“labels” : [ “Resend Activation Form” ]
}
return contacts . createContact ( contactInfo )
. then (( contact ) => {
const contactId = contact . _id ;
console . log ( “create contact” , contact )

  **return**  contact ; 
}) 
. catch (( error ) => { 
  console . error ( "error" ,  error ); 
}); 

It was successfully created contact but it didn’t attach with labels.


Can anyone help on this? Here is the wix velo API link but it didn’t stated clearly on how to define the label when creating contact.
https://www.wix.com/velo/reference/wix-crm-backend/createcontact

Figured you might have solved this already, but to solve this issue, replace label with the following:

labelKeys: ['custom.resend-activation-form']

Your label should be the key “custom.resend-activation-form” for a label you created in the contact list. Meaning, go to your contact list in Wix dashboard and create a new label “Resend Activation Form”

The code below will now add the label key to the contact you created.

export function resentActivation(email) {
let contactInfo = {    
 emails: [{tag: "WORK",email: email}],
 labelKeys: ['custom.resend-activation-form']
            }
return contacts.createContact(contactInfo).then((contact) => {const contactId = contact._id;console.log("create contact", contact)return contact;}).catch((error) => {console.error("error", error);});