AptlyStar

Linq

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

使用方法

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.

ツール

linq_add_participant

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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
chatIdstringはいThe unique identifier of the group chat
handlestringはいPhone number (E.164 format) or email address of the participant to add

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
addressstringはいPhone number (E.164 format) or email address to check
fromstringいいえSender phone number to check from (defaults to an available number)

出力

パラメータ型説明
addressstringThe address that was checked
availablebooleanWhether the address supports iMessage

linq_check_rcs

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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
addressstringはいPhone number (E.164 format) or email address to check
fromstringいいえSender phone number to check from (defaults to an available number)

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
filefileいいえFile to upload (a UserFile from a file-upload field or a previous block)
fileContentstringいいえLegacy base64-encoded file content fallback
filenamestringいいえOverride the file name (defaults to the uploaded file name)
contentTypestringいいえOverride the MIME type (defaults to the uploaded file type)

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
fromstringはいSender phone number in E.164 format (e.g. +14155551234)
toarrayはいRecipient handles (phone numbers in E.164 format or email addresses)
textstringいいえText content of the first message. Optional, but at least one of text, media, attachment, or link is required
mediaUrlstringいいえOptional publicly accessible HTTPS URL of an image, video, or file to attach
attachmentIdstringいいえOptional ID of a pre-uploaded attachment to send instead of a media URL
preferredServicestringいいえPreferred delivery service: iMessage, SMS, or RCS
effectNamestringいいえOptional iMessage effect name (e.g. confetti, fireworks, lasers)
effectTypestringいいえOptional effect type: screen or bubble
replyToMessageIdstringいいえOptional message ID to reply to inline
replyToPartIndexnumberいいえOptional part index of the message being replied to
idempotencyKeystringいいえOptional idempotency key to safely retry the request

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
phoneNumberstringはいPhone number in E.164 format the card applies to
firstNamestringはいFirst name to display
lastNamestringいいえLast name to display
imageUrlstringいいえProfile photo URL

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
targetUrlstringはいHTTPS endpoint that will receive webhook events
subscribedEventsarrayはいEvent types to subscribe to (e.g. message.sent, message.delivered)
phoneNumbersarrayいいえE.164 phone numbers to filter events by (omit for all numbers)

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
attachmentIdstringはいThe unique identifier of the attachment to delete

出力

パラメータ型説明
successbooleanWhether the attachment was deleted

linq_delete_message

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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
messageIdstringはいThe unique identifier of the message to delete

出力

パラメータ型説明
successbooleanWhether the message was deleted

linq_delete_webhook_subscription

Delete a webhook subscription from your account

入力

パラメータ型必須説明
apiKeystringはいLinq API key
subscriptionIdstringはいThe unique identifier of the webhook subscription to delete

出力

パラメータ型説明
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)

入力

パラメータ型必須説明
apiKeystringはいLinq API key
messageIdstringはいThe unique identifier of the message to edit
textstringはいNew text content for the message part
partIndexnumberいいえIndex of the message part to edit (defaults to 0)

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
attachmentIdstringはいThe unique identifier of the attachment

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
chatIdstringはいThe unique identifier of the chat

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
phoneNumberstringいいえE.164 phone number to filter by (omit to return all cards)

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
messageIdstringはいThe unique identifier of the message

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
subscriptionIdstringはいThe unique identifier of the webhook subscription

出力

パラメータ型説明
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)

入力

パラメータ型必須説明
apiKeystringはいLinq API key
chatIdstringはいThe unique identifier of the group chat

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
fromstringいいえFilter by sender phone number in E.164 format
tostringいいえFilter by participant handle (phone number or email)
limitnumberいいえResults per page (default 20, max 100)
cursorstringいいえPagination cursor from a previous response

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
chatIdstringはいThe unique identifier of the chat
limitnumberいいえMaximum number of messages to return
cursorstringいいえPagination cursor from a previous response

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
messageIdstringはいThe ID of any message in the thread
orderstringいいえSort order: asc (oldest first) or desc (newest first)
limitnumberいいえMaximum number of messages to return
cursorstringいいえPagination cursor from a previous response

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key

出力

パラメータ型説明
eventsjsonAvailable webhook event type names
docUrlstringDocumentation URL for webhook events

linq_list_webhook_subscriptions

List all webhook subscriptions on your account

入力

パラメータ型必須説明
apiKeystringはいLinq API key

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
chatIdstringはいThe unique identifier of the chat

出力

パラメータ型説明
successbooleanWhether the chat was marked as read

linq_react_to_message

Add or remove a tapback reaction on a message

入力

パラメータ型必須説明
apiKeystringはいLinq API key
messageIdstringはいThe unique identifier of the message to react to
operationstringはいWhether to add or remove the reaction: add or remove
typestringはいReaction type: love, like, dislike, laugh, emphasize, question, custom, or sticker
customEmojistringいいえEmoji to use when type is custom
partIndexnumberいいえIndex of the message part to react to (defaults to the entire message)

出力

パラメータ型説明
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)

入力

パラメータ型必須説明
apiKeystringはいLinq API key
chatIdstringはいThe unique identifier of the group chat
handlestringはいPhone number (E.164 format) or email address of the participant to remove

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
chatIdstringはいThe unique identifier of the chat
textstringいいえText content of the message. Optional, but at least one of text, media, attachment, or link is required
mediaUrlstringいいえOptional publicly accessible HTTPS URL of an image, video, or file to attach
attachmentIdstringいいえOptional ID of a pre-uploaded attachment to send instead of a media URL
linkUrlstringいいえOptional 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
preferredServicestringいいえPreferred delivery service: iMessage, SMS, or RCS
effectNamestringいいえOptional iMessage effect name (e.g. confetti, fireworks, lasers)
effectTypestringいいえOptional effect type: screen or bubble
replyToMessageIdstringいいえOptional message ID to reply to inline
replyToPartIndexnumberいいえOptional part index of the message being replied to
idempotencyKeystringいいえOptional idempotency key to safely retry the request

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
chatIdstringはいThe unique identifier of the chat
voiceMemoUrlstringいいえPublicly accessible HTTPS URL of the audio file (MP3, M4A, AAC, CAF, WAV, AIFF, AMR)
attachmentIdstringいいえID of a pre-uploaded audio attachment (use instead of voiceMemoUrl)

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
chatIdstringはいThe unique identifier of the chat

出力

パラメータ型説明
successbooleanWhether the contact card was shared

linq_start_typing

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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
chatIdstringはいThe unique identifier of the chat

出力

パラメータ型説明
successbooleanWhether the typing indicator was sent

linq_stop_typing

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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
chatIdstringはいThe unique identifier of the chat

出力

パラメータ型説明
successbooleanWhether the typing indicator was stopped

linq_update_chat

Update chat properties such as group display name and icon

入力

パラメータ型必須説明
apiKeystringはいLinq API key
chatIdstringはいThe unique identifier of the chat
displayNamestringいいえNew display name for the group chat
groupChatIconstringいいえNew group chat icon (publicly accessible image URL)

出力

パラメータ型説明
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

入力

パラメータ型必須説明
apiKeystringはいLinq API key
phoneNumberstringはいPhone number in E.164 format identifying the card to update
firstNamestringいいえNew first name
lastNamestringいいえNew last name
imageUrlstringいいえNew profile photo URL

出力

パラメータ型説明
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)

入力

パラメータ型必須説明
apiKeystringはいLinq API key
subscriptionIdstringはいThe unique identifier of the webhook subscription
targetUrlstringいいえNew HTTPS endpoint that will receive events
subscribedEventsarrayいいえNew set of event types to subscribe to
phoneNumbersarrayいいえNew set of E.164 phone numbers to filter by
isActivebooleanいいえWhether the subscription should be active

出力

パラメータ型説明
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