Facebook Pixel
APILinkedIn Messaging

Delete (recall) a message

Recall a message you sent. The message is first recalled on LinkedIn (source of truth); only on success is it soft-deleted locally so a later sync never re-surfaces the recalled tombstone. Other connected clients/tabs are notified via WebSocket. Matching is by the prefix-independent normalized message id, so the stored row is removed even if it was synced under a different mailbox prefix.

DELETE/conversations/{conversationUrn}/messages/{messageUrn}
Authentication requiredConversations

Code Examples

curl -X DELETE 'https://api.connectsafely.ai/linkedin/conversations/<conversationUrn>/messages/<messageUrn>' \
-H 'Authorization: Bearer <your_api_key>'

Recall a message you sent. The message is first recalled on LinkedIn (source of truth); only on success is it soft-deleted locally so a later sync never re-surfaces the recalled tombstone. Other connected clients/tabs are notified via WebSocket. Matching is by the prefix-independent normalized message id, so the stored row is removed even if it was synced under a different mailbox prefix.

Parameters

NameInRequiredTypeDescription
conversationUrnpathYesstringConversation URN (URL-encoded)
messageUrnpathYesstringURN of the message to delete (URL-encoded)
accountIdqueryNostringLinkedIn account ID

Request Body

No request body.

Responses

StatusDescription
200Message deleted
400Recall failed on LinkedIn
401Unauthorized
404Account not found
500Server error

200 Response Parameters

NameTypeDescription
successboolean
messageUrnstring

200 Example

{
  "success": true,
  "messageUrn": "Hello! I would like to connect with you."
}

400 Response Parameters

NameTypeDescription
errorstring

400 Example

{
  "error": "example_value"
}

401 Response Parameters

NameTypeDescription
errorstring

401 Example

{
  "error": "example_value"
}

404 Response Parameters

NameTypeDescription
errorstring

404 Example

{
  "error": "example_value"
}

500 Response Parameters

NameTypeDescription
errorstring

500 Example

{
  "error": "example_value"
}