AptlyStar

Linq

Send iMessage, SMS, and RCS messages and manage conversations with Linq

Instructions d'utilisation

Reach people on iMessage, SMS, and RCS through Linq. Start chats, send messages with media, links, effects, and replies, send voice memos, react with tapbacks, manage group participants, check iMessage/RCS capability, configure contact cards, and subscribe to webhook events — all through a single Linq API key.

Outils

linq_add_participant

Add a participant to a group chat (3+ existing participants)

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
chatIdstringOuiThe unique identifier of the group chat
handlestringOuiPhone number (E.164 format) or email address of the participant to add

Sortie

ParamètreTypeDescription
messagestringHuman-readable status message
statusstringQueued action status
traceIdstringTrace ID for the queued action

linq_check_imessage

Check whether an address (phone number or email) supports iMessage

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
addressstringOuiPhone number (E.164 format) or email address to check
fromstringNonSender phone number to check from (defaults to an available number)

Sortie

ParamètreTypeDescription
addressstringThe address that was checked
availablebooleanWhether the address supports iMessage

linq_check_rcs

Check whether an address (phone number or email) supports RCS

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
addressstringOuiPhone number (E.164 format) or email address to check
fromstringNonSender phone number to check from (defaults to an available number)

Sortie

ParamètreTypeDescription
addressstringThe address that was checked
availablebooleanWhether the address supports RCS

linq_create_attachment

Upload a file to Linq as a reusable attachment (max 100MB) and get an attachment ID to send in messages

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
filefileNonFile to upload (a UserFile from a file-upload field or a previous block)
fileContentstringNonLegacy base64-encoded file content fallback
filenamestringNonOverride the file name (defaults to the uploaded file name)
contentTypestringNonOverride the MIME type (defaults to the uploaded file type)

Sortie

ParamètreTypeDescription
attachmentIdstringReusable attachment ID to reference when sending messages or voice memos
downloadUrlstringURL the attachment can be downloaded from
filenamestringFile name
contentTypestringMIME type of the file
sizeBytesnumberFile size in bytes
statusstringUpload status

linq_create_chat

Start a new iMessage, SMS, or RCS chat and send the first message

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
fromstringOuiSender phone number in E.164 format (e.g. +14155551234)
toarrayOuiRecipient handles (phone numbers in E.164 format or email addresses)
textstringNonText content of the first message. Optional, but at least one of text, media, attachment, or link is required
mediaUrlstringNonOptional publicly accessible HTTPS URL of an image, video, or file to attach
attachmentIdstringNonOptional ID of a pre-uploaded attachment to send instead of a media URL
preferredServicestringNonPreferred delivery service: iMessage, SMS, or RCS
effectNamestringNonOptional iMessage effect name (e.g. confetti, fireworks, lasers)
effectTypestringNonOptional effect type: screen or bubble
replyToMessageIdstringNonOptional message ID to reply to inline
replyToPartIndexnumberNonOptional part index of the message being replied to
idempotencyKeystringNonOptional idempotency key to safely retry the request

Sortie

ParamètreTypeDescription
chatIdstringID of the created chat
displayNamestringDisplay name of the chat
isGroupbooleanWhether the chat is a group chat
servicestringDelivery service used (iMessage, SMS, RCS)
handlesjsonParticipant handles in the chat
healthStatusjsonMessaging line health status
messagejsonThe sent message object with parts and delivery info

linq_create_contact_card

Set up a contact card (Name and Photo Sharing) for a phone number

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
phoneNumberstringOuiPhone number in E.164 format the card applies to
firstNamestringOuiFirst name to display
lastNamestringNonLast name to display
imageUrlstringNonProfile photo URL

Sortie

ParamètreTypeDescription
phoneNumberstringPhone number the card applies to
firstNamestringFirst name
lastNamestringLast name
imageUrlstringProfile photo URL
isActivebooleanWhether the card is active

linq_create_webhook_subscription

Subscribe an HTTPS endpoint to Linq webhook events

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
targetUrlstringOuiHTTPS endpoint that will receive webhook events
subscribedEventsarrayOuiEvent types to subscribe to (e.g. message.sent, message.delivered)
phoneNumbersarrayNonE.164 phone numbers to filter events by (omit for all numbers)

Sortie

ParamètreTypeDescription
idstringSubscription ID
targetUrlstringEndpoint that receives events
subscribedEventsjsonSubscribed event types
phoneNumbersjsonFiltered phone numbers (null = all)
isActivebooleanWhether the subscription is active
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 update timestamp
signingSecretstringHMAC-SHA256 signing secret. Store securely — it cannot be retrieved again

linq_delete_attachment

Permanently delete an attachment owned by your account

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
attachmentIdstringOuiThe unique identifier of the attachment to delete

Sortie

ParamètreTypeDescription
successbooleanWhether the attachment was deleted

linq_delete_message

Delete a message from the Linq API only (does not unsend it; recipients still see it)

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
messageIdstringOuiThe unique identifier of the message to delete

Sortie

ParamètreTypeDescription
successbooleanWhether the message was deleted

linq_delete_webhook_subscription

Delete a webhook subscription from your account

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
subscriptionIdstringOuiThe unique identifier of the webhook subscription to delete

Sortie

ParamètreTypeDescription
successbooleanWhether the subscription was deleted

linq_edit_message

Edit the text of a sent message (up to 5 times, within 15 minutes of sending; iMessage only)

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
messageIdstringOuiThe unique identifier of the message to edit
textstringOuiNew text content for the message part
partIndexnumberNonIndex of the message part to edit (defaults to 0)

Sortie

ParamètreTypeDescription
idstringMessage ID
chatIdstringID of the chat the message belongs to
isFromMebooleanWhether the message was sent by you
isDeliveredbooleanWhether the message was delivered
isReadbooleanWhether the message was read
servicestringDelivery service (iMessage, SMS, RCS)
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 update timestamp
sentAtstringISO 8601 sent timestamp
partsjsonUpdated message parts with reactions
messagejsonThe full updated message object

linq_get_attachment

Retrieve metadata for an attachment, including its download URL and status

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
attachmentIdstringOuiThe unique identifier of the attachment

Sortie

ParamètreTypeDescription
idstringAttachment ID
filenamestringFile name
contentTypestringMIME type of the file
sizeBytesnumberFile size in bytes
statusstringUpload status (pending, complete, failed)
downloadUrlstringURL to download the file
createdAtstringISO 8601 creation timestamp

linq_get_chat

Retrieve a chat by ID, including participants and line health

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
chatIdstringOuiThe unique identifier of the chat

Sortie

ParamètreTypeDescription
idstringChat ID
displayNamestringDisplay name of the chat
isGroupbooleanWhether the chat is a group chat
isArchivedbooleanWhether the chat is archived
servicestringDelivery service (iMessage, SMS, RCS)
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 update timestamp
handlesjsonParticipant handles in the chat
healthStatusjsonMessaging line health status

linq_get_contact_card

Retrieve contact cards, optionally filtered by phone number

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
phoneNumberstringNonE.164 phone number to filter by (omit to return all cards)

Sortie

ParamètreTypeDescription
contactCardsarrayContact cards on the account
↳ phoneNumberstringPhone number in E.164 format
↳ firstNamestringFirst name
↳ lastNamestringLast name
↳ imageUrlstringProfile photo URL
↳ isActivebooleanWhether the card is active

linq_get_message

Retrieve a single message by ID, including parts, reactions, and delivery status

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
messageIdstringOuiThe unique identifier of the message

Sortie

ParamètreTypeDescription
idstringMessage ID
chatIdstringID of the chat the message belongs to
isFromMebooleanWhether the message was sent by you
isDeliveredbooleanWhether the message was delivered
isReadbooleanWhether the message was read
servicestringDelivery service (iMessage, SMS, RCS)
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 update timestamp
sentAtstringISO 8601 sent timestamp
partsjsonMessage parts (text, media, link) with reactions
messagejsonThe full message object

linq_get_webhook_subscription

Retrieve a webhook subscription by ID

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
subscriptionIdstringOuiThe unique identifier of the webhook subscription

Sortie

ParamètreTypeDescription
idstringSubscription ID
targetUrlstringEndpoint that receives events
subscribedEventsjsonSubscribed event types
phoneNumbersjsonFiltered phone numbers (null = all)
isActivebooleanWhether the subscription is active
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 update timestamp

linq_leave_chat

Leave an iMessage group chat (4+ active participants; not supported for direct chats)

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
chatIdstringOuiThe unique identifier of the group chat

Sortie

ParamètreTypeDescription
messagestringHuman-readable status message
statusstringQueued action status (e.g. accepted)
traceIdstringTrace ID for the queued action

linq_list_chats

List chats, optionally filtered by sender or participant handle

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
fromstringNonFilter by sender phone number in E.164 format
tostringNonFilter by participant handle (phone number or email)
limitnumberNonResults per page (default 20, max 100)
cursorstringNonPagination cursor from a previous response

Sortie

ParamètreTypeDescription
chatsjsonArray of chat objects
nextCursorstringCursor for the next page, or null if there are no more results

linq_list_messages

List messages in a chat with pagination

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
chatIdstringOuiThe unique identifier of the chat
limitnumberNonMaximum number of messages to return
cursorstringNonPagination cursor from a previous response

Sortie

ParamètreTypeDescription
messagesjsonArray of message objects with parts and reactions
nextCursorstringCursor for the next page, or null if there are no more results

linq_list_phone_numbers

List all phone numbers assigned to your partner account, with line health

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key

Sortie

ParamètreTypeDescription
phoneNumbersarrayPhone numbers assigned to the account
↳ idstringPhone number ID
↳ phoneNumberstringPhone number in E.164 format
↳ healthStatusjsonLine health status (status, doc_url)

linq_list_thread

List all messages in the thread that contains a given message

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
messageIdstringOuiThe ID of any message in the thread
orderstringNonSort order: asc (oldest first) or desc (newest first)
limitnumberNonMaximum number of messages to return
cursorstringNonPagination cursor from a previous response

Sortie

ParamètreTypeDescription
messagesjsonArray of message objects in the thread
nextCursorstringCursor for the next page, or null if there are no more results

linq_list_webhook_events

List all webhook event types available to subscribe to

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key

Sortie

ParamètreTypeDescription
eventsjsonAvailable webhook event type names
docUrlstringDocumentation URL for webhook events

linq_list_webhook_subscriptions

List all webhook subscriptions on your account

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key

Sortie

ParamètreTypeDescription
subscriptionsarrayWebhook subscriptions
↳ idstringSubscription ID
↳ targetUrlstringEndpoint that receives events
↳ subscribedEventsjsonSubscribed event types
↳ phoneNumbersjsonFiltered phone numbers (null = all)
↳ isActivebooleanWhether the subscription is active
↳ createdAtstringISO 8601 creation timestamp
↳ updatedAtstringISO 8601 update timestamp

linq_mark_chat_read

Mark all messages in a chat as read

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
chatIdstringOuiThe unique identifier of the chat

Sortie

ParamètreTypeDescription
successbooleanWhether the chat was marked as read

linq_react_to_message

Add or remove a tapback reaction on a message

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
messageIdstringOuiThe unique identifier of the message to react to
operationstringOuiWhether to add or remove the reaction: add or remove
typestringOuiReaction type: love, like, dislike, laugh, emphasize, question, custom, or sticker
customEmojistringNonEmoji to use when type is custom
partIndexnumberNonIndex of the message part to react to (defaults to the entire message)

Sortie

ParamètreTypeDescription
messagestringHuman-readable status message
statusstringQueued action status
traceIdstringTrace ID for the queued action

linq_remove_participant

Remove a participant from a group chat (minimum 3 participants must remain)

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
chatIdstringOuiThe unique identifier of the group chat
handlestringOuiPhone number (E.164 format) or email address of the participant to remove

Sortie

ParamètreTypeDescription
messagestringHuman-readable status message
statusstringQueued action status
traceIdstringTrace ID for the queued action

linq_send_message

Send a message to an existing chat, with optional media, link, effect, or reply

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
chatIdstringOuiThe unique identifier of the chat
textstringNonText content of the message. Optional, but at least one of text, media, attachment, or link is required
mediaUrlstringNonOptional publicly accessible HTTPS URL of an image, video, or file to attach
attachmentIdstringNonOptional ID of a pre-uploaded attachment to send instead of a media URL
linkUrlstringNonOptional URL to send as a rich link preview. Linq requires a link to be its own message, so when set, text and media are ignored
preferredServicestringNonPreferred delivery service: iMessage, SMS, or RCS
effectNamestringNonOptional iMessage effect name (e.g. confetti, fireworks, lasers)
effectTypestringNonOptional effect type: screen or bubble
replyToMessageIdstringNonOptional message ID to reply to inline
replyToPartIndexnumberNonOptional part index of the message being replied to
idempotencyKeystringNonOptional idempotency key to safely retry the request

Sortie

ParamètreTypeDescription
chatIdstringID of the chat the message was sent to
messageIdstringID of the sent message
deliveryStatusstringDelivery status (pending, queued, sent, delivered, failed)
sentAtstringISO 8601 timestamp the message was sent
servicestringDelivery service (iMessage, SMS, RCS)
messagejsonThe full sent message object with parts

linq_send_voice_memo

Send a voice memo to a chat from a URL or a pre-uploaded attachment

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
chatIdstringOuiThe unique identifier of the chat
voiceMemoUrlstringNonPublicly accessible HTTPS URL of the audio file (MP3, M4A, AAC, CAF, WAV, AIFF, AMR)
attachmentIdstringNonID of a pre-uploaded audio attachment (use instead of voiceMemoUrl)

Sortie

ParamètreTypeDescription
idstringID of the sent voice memo message
statusstringDelivery status
fromstringSender handle
tojsonRecipient handles
servicestringDelivery service (iMessage, SMS, RCS)
voiceMemojsonAudio file metadata (id, filename, mime_type, size_bytes, url, duration_ms)

linq_share_contact_card

Share your configured contact card (Name and Photo Sharing) with a chat

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
chatIdstringOuiThe unique identifier of the chat

Sortie

ParamètreTypeDescription
successbooleanWhether the contact card was shared

linq_start_typing

Show a typing indicator in a one-on-one chat (iMessage only, not group chats)

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
chatIdstringOuiThe unique identifier of the chat

Sortie

ParamètreTypeDescription
successbooleanWhether the typing indicator was sent

linq_stop_typing

Stop the typing indicator in a one-on-one chat (iMessage only, not group chats)

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
chatIdstringOuiThe unique identifier of the chat

Sortie

ParamètreTypeDescription
successbooleanWhether the typing indicator was stopped

linq_update_chat

Update chat properties such as group display name and icon

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
chatIdstringOuiThe unique identifier of the chat
displayNamestringNonNew display name for the group chat
groupChatIconstringNonNew group chat icon (publicly accessible image URL)

Sortie

ParamètreTypeDescription
chatIdstringID of the updated chat
statusstringStatus of the queued update

linq_update_contact_card

Partially update an existing active contact card for a phone number

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
phoneNumberstringOuiPhone number in E.164 format identifying the card to update
firstNamestringNonNew first name
lastNamestringNonNew last name
imageUrlstringNonNew profile photo URL

Sortie

ParamètreTypeDescription
phoneNumberstringPhone number the card applies to
firstNamestringFirst name
lastNamestringLast name
imageUrlstringProfile photo URL
isActivebooleanWhether the card is active

linq_update_webhook_subscription

Update a webhook subscription (target URL, events, phone filter, or active state)

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiLinq API key
subscriptionIdstringOuiThe unique identifier of the webhook subscription
targetUrlstringNonNew HTTPS endpoint that will receive events
subscribedEventsarrayNonNew set of event types to subscribe to
phoneNumbersarrayNonNew set of E.164 phone numbers to filter by
isActivebooleanNonWhether the subscription should be active

Sortie

ParamètreTypeDescription
idstringSubscription ID
targetUrlstringEndpoint that receives events
subscribedEventsjsonSubscribed event types
phoneNumbersjsonFiltered phone numbers (null = all)
isActivebooleanWhether the subscription is active
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 update timestamp

On this page