Resolve a contact (inbound)

Read the other party’s contact card when the line supports it:
const contact = await space.contact();

if (contact) {
  console.log(contact.fullName, contact.phones, contact.emails);
}

WhatsApp Business contact cards

Send one or more contact cards on a Business line:
import { wa } from "skyline-ts";

await space.send(
  wa.contacts([
    {
      name: { formatted_name: "Alex Chen", first_name: "Alex" },
      phones: [{ phone: "+15551234567", type: "CELL" }],
    },
  ])
);

iMessage contact sharing

Share a contact card to an iMessage conversation through your line’s native contact APIs when running in dedicated mode. Cloud shared-pool lines focus on DM agent traffic — contact-card sharing is available on dedicated deployments.