Socials

Send a direct message

Changed on

Sends a direct message into an existing thread as the connected account. Instagram and Facebook only allow a reply within 24 hours of the person's last message.

post/socials/conversations/{conversation_id}/messages

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

conversation_id, string required

Conversation ID from GET /socials/conversations

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

object required
account_id, string required

Connected account to act as (sacct_ prefix id), from the list response's account_id.

message, string required
attachment_url, string

Public URL of an image, video or file to send with the message.

Response

Message sent

object required
object, 'social_message'
conversation_id, string

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision