Share your contact card with a chat
chats.share_contact_card(strchat_id)
POST/v3/chats/{chatId}/share_contact_card
Share your contact information (Name and Photo Sharing) with a chat.
Note: A contact card must be configured before sharing. You can set up your contact card via the Contact Card API or on the Linq dashboard.
If the sending line has no active contact card, the request is rejected with 404 (error code 2012, “Contact card not found”).
Rate limited per chat: at most 1 share per chat every 5 minutes.
Share your contact card with a chat
import os
from linq import LinqAPIV3
client = LinqAPIV3(
api_key=os.environ.get("LINQ_API_V3_API_KEY"), # This is the default and can be omitted
)
client.chats.share_contact_card(
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
){
"error": {
"status": 401,
"code": 2004,
"message": "Unauthorized - missing or invalid authentication token",
"doc_url": "https://docs.linqapp.com/channel/imessage/error/codes/2xxx/2004/"
},
"success": false
}{
"error": {
"status": 403,
"code": 2005,
"message": "Access denied - insufficient permissions for this resource",
"doc_url": "https://docs.linqapp.com/channel/imessage/error/codes/2xxx/2005/"
},
"success": false
}{
"error": {
"status": 404,
"code": 2001,
"message": "Resource not found",
"doc_url": "https://docs.linqapp.com/channel/imessage/error/codes/2xxx/2001/"
},
"success": false
}{
"error": {
"status": 429,
"code": 1007,
"message": "Rate limited. Try again in 45 seconds.",
"doc_url": "https://docs.linqapp.com/channel/imessage/error/codes/1xxx/1007/",
"retry_after": 45
},
"success": false
}{
"error": {
"status": 500,
"code": 3006,
"message": "Internal server error",
"doc_url": "https://docs.linqapp.com/channel/imessage/error/codes/3xxx/3006/"
},
"success": false
}Returns Examples
{
"error": {
"status": 401,
"code": 2004,
"message": "Unauthorized - missing or invalid authentication token",
"doc_url": "https://docs.linqapp.com/channel/imessage/error/codes/2xxx/2004/"
},
"success": false
}{
"error": {
"status": 403,
"code": 2005,
"message": "Access denied - insufficient permissions for this resource",
"doc_url": "https://docs.linqapp.com/channel/imessage/error/codes/2xxx/2005/"
},
"success": false
}{
"error": {
"status": 404,
"code": 2001,
"message": "Resource not found",
"doc_url": "https://docs.linqapp.com/channel/imessage/error/codes/2xxx/2001/"
},
"success": false
}{
"error": {
"status": 429,
"code": 1007,
"message": "Rate limited. Try again in 45 seconds.",
"doc_url": "https://docs.linqapp.com/channel/imessage/error/codes/1xxx/1007/",
"retry_after": 45
},
"success": false
}{
"error": {
"status": 500,
"code": 3006,
"message": "Internal server error",
"doc_url": "https://docs.linqapp.com/channel/imessage/error/codes/3xxx/3006/"
},
"success": false
}