Contact cards
- iMessage
Share your line's name and photo, or send a contact card
On iMessage, Share the profile offers your line's name and photo to the person. Without it, they see whatever their own contacts have for your number, usually only the number. To send anyone else's card, see Send someone's contact card.
Share your line's card
Name a one-to-one conversation the person has written in. The payload is empty.
curl -X POST https://api.mapier.ai/v1/commands/profile.share \
-H "Authorization: Bearer $MAPIER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: share-card-4821" \
-H "x-mapier-version: 2026-12-01" \
-d '{
"target": { "conversationId": "a0000000-0000-4000-8000-000000000001" },
"payload": {}
}'The result is succeeded whether or not Messages showed the prompt. Messages often skips it when the person has already seen your card. To change the name or photo first, see Name and photo.
Send someone's contact card
Send the name and number of another person or a business, as a card the person can save to their contacts.
On iMessage, send a .vcf file with message.send and kind: "media". iMessage shows it as a contact card. Serve the file as text/vcard, from BEGIN:VCARD to END:VCARD, in UTF-8.
{ "kind": "media", "url": "https://example.com/team/support.vcf" }It goes out like any other file.
On WhatsApp, kind: "contact" sends one or more cards. Each needs name.formatted_name, and can add phones, emails and the rest of Meta's contact fields. It goes to one person, not a group.
{
"kind": "contact",
"contacts": [
{
"name": { "formatted_name": "Front desk" },
"phones": [{ "phone": "+14155550199", "type": "WORK" }]
}
]
}Errors you may see
Each of these comes back at once, and nothing is sent.
| Error | Means | Fix |
|---|---|---|
422 validation_failed | Not a one-to-one conversation the person has written in | Share in a one-to-one conversation the person has written in |
422 validation_failed | A card has no name | Add name.formatted_name |
404 unsupported_command, not_on_channel | The line's channel does not share contact cards | Send a .vcf file, or the details in a text |