curl -X POST 'https://api.memchat.io/integrations/social' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"platform": "linkedin",
"auth_token": "linkedin_access_token_here",
"import_settings": {
"posts": true,
"connections": true,
"activities": false
}
}'
import requests
url = "https://api.memchat.io/integrations/social"
headers = {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"platform": "linkedin",
"auth_token": "linkedin_access_token_here",
"import_settings": {
"posts": True,
"connections": True,
"activities": False
}
}
response = requests.post(url, headers=headers, json=data)
integration = response.json()
const response = await fetch('https://api.memchat.io/integrations/social', {
method: 'POST',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
platform: 'linkedin',
auth_token: 'linkedin_access_token_here',
import_settings: {
posts: true,
connections: true,
activities: false
}
}),
});
const integration = await response.json();
{
"integration_id": "int_linkedin_123",
"platform": "linkedin",
"status": "syncing",
"import_stats": {
"total_items": 147,
"imported_memories": 89,
"skipped_items": 52,
"errors": 6
},
"last_sync": "2024-01-15T16:30:00Z",
"next_sync": "2024-01-16T16:30:00Z"
}
Integrations
Social Media Integration
Connect and sync memories from social media platforms
POST
/
integrations
/
social
curl -X POST 'https://api.memchat.io/integrations/social' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"platform": "linkedin",
"auth_token": "linkedin_access_token_here",
"import_settings": {
"posts": true,
"connections": true,
"activities": false
}
}'
import requests
url = "https://api.memchat.io/integrations/social"
headers = {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"platform": "linkedin",
"auth_token": "linkedin_access_token_here",
"import_settings": {
"posts": True,
"connections": True,
"activities": False
}
}
response = requests.post(url, headers=headers, json=data)
integration = response.json()
const response = await fetch('https://api.memchat.io/integrations/social', {
method: 'POST',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
platform: 'linkedin',
auth_token: 'linkedin_access_token_here',
import_settings: {
posts: true,
connections: true,
activities: false
}
}),
});
const integration = await response.json();
{
"integration_id": "int_linkedin_123",
"platform": "linkedin",
"status": "syncing",
"import_stats": {
"total_items": 147,
"imported_memories": 89,
"skipped_items": 52,
"errors": 6
},
"last_sync": "2024-01-15T16:30:00Z",
"next_sync": "2024-01-16T16:30:00Z"
}
Connects social media accounts to automatically import memories from posts, interactions, and activities.
curl -X POST 'https://api.memchat.io/integrations/social' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"platform": "linkedin",
"auth_token": "linkedin_access_token_here",
"import_settings": {
"posts": true,
"connections": true,
"activities": false
}
}'
import requests
url = "https://api.memchat.io/integrations/social"
headers = {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"platform": "linkedin",
"auth_token": "linkedin_access_token_here",
"import_settings": {
"posts": True,
"connections": True,
"activities": False
}
}
response = requests.post(url, headers=headers, json=data)
integration = response.json()
const response = await fetch('https://api.memchat.io/integrations/social', {
method: 'POST',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
platform: 'linkedin',
auth_token: 'linkedin_access_token_here',
import_settings: {
posts: true,
connections: true,
activities: false
}
}),
});
const integration = await response.json();
Request Body
string
required
Social media platform to integrate. Supported:
linkedin, twitter, redditstring
required
OAuth access token for the platform
object
Configuration for what data to import
Show Import Settings
Show Import Settings
boolean
default:"true"
Import user’s posts and updates
boolean
default:"true"
Import connections and network information
boolean
default:"false"
Import likes, comments, and other activities
boolean
default:"false"
Import direct messages (if available)
object
Date range for import (defaults to last 6 months)
boolean
default:"true"
Whether to automatically sync new content
object
Category mapping for imported content
Response
string
Unique identifier for the integration
string
Social media platform that was connected
string
Current status:
connected, syncing, error, disconnectedobject
string
ISO 8601 timestamp of last successful sync
string
ISO 8601 timestamp of next scheduled sync
{
"integration_id": "int_linkedin_123",
"platform": "linkedin",
"status": "syncing",
"import_stats": {
"total_items": 147,
"imported_memories": 89,
"skipped_items": 52,
"errors": 6
},
"last_sync": "2024-01-15T16:30:00Z",
"next_sync": "2024-01-16T16:30:00Z"
}
Supported Platforms
LinkedIn
- Posts: Professional updates, articles, shares
- Connections: Network connections and introductions
- Activities: Likes, comments on professional content
- Categories: Primarily
career,relationships,learning
Twitter
- Posts: Tweets, retweets, quoted tweets
- Connections: Followers, following, lists
- Activities: Likes, replies, mentions
- Categories:
interests,relationships,identity
Reddit
- Posts: Submissions, comments, saved posts
- Connections: Followed users and communities
- Activities: Upvotes, subscriptions
- Categories:
interests,learning,identity

