curl -X GET 'https://api.memchat.io/integrations/int_linkedin_123/status' \
-H 'X-API-Key: YOUR_API_KEY'
import requests
url = "https://api.memchat.io/integrations/int_linkedin_123/status"
headers = {
"X-API-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
status = response.json()
const response = await fetch('https://api.memchat.io/integrations/int_linkedin_123/status', {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY',
},
});
const status = await response.json();
{
"integration_id": "int_linkedin_123",
"type": "social",
"platform": "linkedin",
"status": "processing",
"progress": {
"percentage": 65,
"current_step": "extracting_posts",
"total_steps": 4,
"estimated_completion": "2024-01-15T16:45:00Z"
},
"stats": {
"items_processed": 95,
"items_total": 147,
"memories_created": 67,
"errors_count": 3,
"processing_time": 145
},
"last_activity": "2024-01-15T16:32:15Z",
"created_at": "2024-01-15T16:30:00Z",
"errors": [
{
"error_id": "err_001",
"message": "Failed to parse post content",
"code": "PARSE_ERROR",
"timestamp": "2024-01-15T16:31:30Z",
"item_id": "post_xyz789"
}
]
}
{
"integration_id": "int_linkedin_123",
"type": "social",
"platform": "linkedin",
"status": "completed",
"progress": {
"percentage": 100,
"current_step": "completed",
"total_steps": 4,
"estimated_completion": null
},
"stats": {
"items_processed": 147,
"items_total": 147,
"memories_created": 89,
"errors_count": 6,
"processing_time": 267
},
"last_activity": "2024-01-15T16:34:27Z",
"created_at": "2024-01-15T16:30:00Z",
"completed_at": "2024-01-15T16:34:27Z"
}
Integrations
Integration Status
Get the current status and details of an integration
GET
/
integrations
/
{integration_id}
/
status
curl -X GET 'https://api.memchat.io/integrations/int_linkedin_123/status' \
-H 'X-API-Key: YOUR_API_KEY'
import requests
url = "https://api.memchat.io/integrations/int_linkedin_123/status"
headers = {
"X-API-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
status = response.json()
const response = await fetch('https://api.memchat.io/integrations/int_linkedin_123/status', {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY',
},
});
const status = await response.json();
{
"integration_id": "int_linkedin_123",
"type": "social",
"platform": "linkedin",
"status": "processing",
"progress": {
"percentage": 65,
"current_step": "extracting_posts",
"total_steps": 4,
"estimated_completion": "2024-01-15T16:45:00Z"
},
"stats": {
"items_processed": 95,
"items_total": 147,
"memories_created": 67,
"errors_count": 3,
"processing_time": 145
},
"last_activity": "2024-01-15T16:32:15Z",
"created_at": "2024-01-15T16:30:00Z",
"errors": [
{
"error_id": "err_001",
"message": "Failed to parse post content",
"code": "PARSE_ERROR",
"timestamp": "2024-01-15T16:31:30Z",
"item_id": "post_xyz789"
}
]
}
{
"integration_id": "int_linkedin_123",
"type": "social",
"platform": "linkedin",
"status": "completed",
"progress": {
"percentage": 100,
"current_step": "completed",
"total_steps": 4,
"estimated_completion": null
},
"stats": {
"items_processed": 147,
"items_total": 147,
"memories_created": 89,
"errors_count": 6,
"processing_time": 267
},
"last_activity": "2024-01-15T16:34:27Z",
"created_at": "2024-01-15T16:30:00Z",
"completed_at": "2024-01-15T16:34:27Z"
}
Retrieves the current status, progress, and details of a specific integration.
curl -X GET 'https://api.memchat.io/integrations/int_linkedin_123/status' \
-H 'X-API-Key: YOUR_API_KEY'
import requests
url = "https://api.memchat.io/integrations/int_linkedin_123/status"
headers = {
"X-API-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
status = response.json()
const response = await fetch('https://api.memchat.io/integrations/int_linkedin_123/status', {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY',
},
});
const status = await response.json();
Path Parameters
string
required
The unique identifier of the integration
Query Parameters
boolean
default:"false"
Whether to include processing logs in the response
boolean
default:"true"
Whether to include error details in the response
Response
string
Unique identifier of the integration
string
Integration type:
social, file, chat, apistring
Platform or service name (e.g.,
linkedin, chatgpt, pdf)string
Current status:
pending, processing, completed, failed, cancelledobject
object
string
ISO 8601 timestamp of last processing activity
string
ISO 8601 timestamp when integration was created
string
ISO 8601 timestamp when integration completed (if finished)
array
array
{
"integration_id": "int_linkedin_123",
"type": "social",
"platform": "linkedin",
"status": "processing",
"progress": {
"percentage": 65,
"current_step": "extracting_posts",
"total_steps": 4,
"estimated_completion": "2024-01-15T16:45:00Z"
},
"stats": {
"items_processed": 95,
"items_total": 147,
"memories_created": 67,
"errors_count": 3,
"processing_time": 145
},
"last_activity": "2024-01-15T16:32:15Z",
"created_at": "2024-01-15T16:30:00Z",
"errors": [
{
"error_id": "err_001",
"message": "Failed to parse post content",
"code": "PARSE_ERROR",
"timestamp": "2024-01-15T16:31:30Z",
"item_id": "post_xyz789"
}
]
}
{
"integration_id": "int_linkedin_123",
"type": "social",
"platform": "linkedin",
"status": "completed",
"progress": {
"percentage": 100,
"current_step": "completed",
"total_steps": 4,
"estimated_completion": null
},
"stats": {
"items_processed": 147,
"items_total": 147,
"memories_created": 89,
"errors_count": 6,
"processing_time": 267
},
"last_activity": "2024-01-15T16:34:27Z",
"created_at": "2024-01-15T16:30:00Z",
"completed_at": "2024-01-15T16:34:27Z"
}
Status Types
Pending
Pending
Integration is queued and waiting to start processing.
Processing
Processing
Integration is currently being processed. Check progress for details.
Completed
Completed
Integration has finished successfully. All processable items have been handled.
Failed
Failed
Integration failed due to a critical error. Check errors array for details.
Cancelled
Cancelled
Integration was cancelled by the user or system before completion.
Processing Steps
Different integration types have different processing steps:Social Media Integration
Social Media Integration
- authentication - Validating access tokens
- discovery - Finding available content
- extraction - Downloading content
- processing - Creating memories from content
File Integration
File Integration
- upload - Receiving and storing file
- parsing - Extracting text content
- chunking - Breaking content into chunks
- memory_creation - Creating memories from chunks
Chat Integration
Chat Integration
- validation - Validating chat data format
- conversation_detection - Identifying conversations
- content_extraction - Extracting meaningful content
- memory_creation - Creating memories from conversations
Error Responses
object
Integration not found
{
"error": "Integration not found",
"code": "INTEGRATION_NOT_FOUND",
"integration_id": "int_invalid_123"
}
object
Unauthorized access
{
"error": "Invalid or expired token",
"code": "UNAUTHORIZED"
}
Real-time Updates
For real-time status updates, consider using:- Webhooks: Configure webhook endpoints to receive status updates
- Polling: Poll this endpoint every 10-30 seconds during processing
- WebSocket: Connect to the WebSocket endpoint for live updates (coming soon)

