Skip to main content
PATCH
posts
/
{post}
/
contact-collection
curl -X PATCH "https://postsyncer.com/api/v1/posts/123/contact-collection" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "settings": {
      "mode": "keyword_rules",
      "keyword_rules": [
        { "keyword": "demo", "list_id": 10 }
      ],
      "keyword_case_sensitive": false
    }
  }'

Documentation Index

Fetch the complete documentation index at: https://docs.postsyncer.com/llms.txt

Use this file to discover all available pages before exploring further.

Update post contact collection

Configures contact_collection_settings so replies can be added to workspace CRM lists: either keyword rules (each keyword maps to a list) or add all (single list). List IDs must belong to the post’s workspace. Requires bearer token with the posts ability. Returns the full post object (same shape as GET /posts/{post}).

Request

post
integer
required
Post ID
enabled
boolean
required
false stores collection as disabled.
settings
object
Required when enabled is true.
curl -X PATCH "https://postsyncer.com/api/v1/posts/123/contact-collection" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "settings": {
      "mode": "keyword_rules",
      "keyword_rules": [
        { "keyword": "demo", "list_id": 10 }
      ],
      "keyword_case_sensitive": false
    }
  }'
For add all mode, use "mode": "add_all" and "list_id": <crm_list_id> in settings (no keyword_rules).

Response

200 — full post resource including contact_collection_settings. 404 — post not found or not accessible. 422 — validation error. See also: Auto plug, Comment moderation.