Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Platforms that have support for blocking users natively can do so using the Block User endpoint in the Social25 API. For an up-to-date list of platforms that support this please check out the Channel Support page.

Unblocking conversations

If a platform supports blocking users you can call the block endpoint again in the same manner as described in the previous section, this will request the user to be unblocked with the platform.

Blocking Conversations using conversation state

...

Code Block
languagebash
curl -X PUT \
  https://social25.herokuapp.com/api/<VERSION>/tenants/<TENANT_ID>/conversations/<CONVERSATION_ID>/details/ \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer yoursocial25token' \
  -d '{
    "action": "change_state",
    "state": 4
  }'

Unblocking conversations

To unblock a specific contact you can call the Update Conversation Details endpoint again with the status OPEN. This will make sure all future messages are synced again to Salesforce.

Please refer to this table for the several states that are available:

...