Documentation Index
Fetch the complete documentation index at: https://docs.lobstr.io/llms.txt
Use this file to discover all available pages before exploring further.
This endpoint retrieves a paginated list of all connected platform accounts (like Twitter, LinkedIn, Facebook) associated with the authenticated user.
Your API authentication token. Value: Token YOUR_API_KEY
Response Structure
Total number of accounts. Example: 2
Maximum results per page. Example: 50
Current page number. Example: 1
Total number of pages. Example: 1
Starting result index. Example: 1
Ending result index. Example: 3
Array of account objects. Example: [...]
URL for next page (null if last page). Example: null
URL for previous page (null if first page). Example: null
Account Object Fields
Unique account identifier. Example: "6e5f36d27502ec69fda745ec59ead509"
Always “account”. Example: "account"
Platform username. Example: "MisterDebugger"
Account creation timestamp (ISO 8601). Example: "2025-02-11T08:28:14Z"
last_synchronization_time
Last sync timestamp. Example: "2025-02-11T08:28:14Z"
HTTP status code. Example: "200"
Status information. Example: "synchronized"
Human-readable status message. Example: "Success!"
Account type identifier. Example: "facebook-sync"
Account parameters (default and user-specific). Example: {"default": {}, "user": {}}
Last update timestamp. Example: null
Account type identifier hash. Example: "16f5b7f91e8fc533eab88be973273a02"
Array of squids using this account. Example: []
Platform base URL. Example: "https://www.facebook.com"
Required cookie names for authentication. Example: [{"name": "c_user", "required": true}]
Base64 encoded platform icon. Example: "<base64 image data>"
Use this endpoint to check which platform accounts are currently synced and their status before running squids that require authentication.
The squids array shows which squids are currently using each account, helping you manage account usage across your projects.
Check the status_code_info field to identify accounts with expired cookies that need re-synchronization.
Code Examples
curl -X GET "https://api.lobstr.io/v1/accounts" \
-H "Authorization: Token YOUR_API_KEY"
Response
{
"total_results": 2,
"limit": 50,
"page": 1,
"total_pages": 1,
"result_from": 1,
"result_to": 3,
"data": [
{
"id": "6e5f36d27502ec69fda745ec59ead509",
"object": "account",
"username": "MisterDebugger",
"created_at": "2025-02-11T08:28:14Z",
"last_synchronization_time": "2025-02-11T08:28:14Z",
"status": "200",
"status_code_info": "synchronized",
"status_code_description": "Success!",
"type": "facebook-sync",
"params": {
"default": {},
"user": {}
},
"updated_at": null,
"account_type_hash": "16f5b7f91e8fc533eab88be973273a02",
"squids": [],
"baseurl": "https://www.facebook.com",
"cookies": [
{"name": "c_user", "required": true},
{"name": "xs", "required": true}
],
"icon": "<base64 image data>"
},
{
"id": "abfeb440ceccdfab974e8d261836c9d6",
"object": "account",
"username": "MisterDebugger",
"created_at": "2025-02-11T08:28:22Z",
"last_synchronization_time": "2025-02-11T08:28:22Z",
"status": "200",
"status_code_info": "synchronized",
"status_code_description": "Success!",
"type": "twitter-sync",
"params": {
"default": {},
"user": {}
},
"updated_at": null,
"account_type_hash": "9853173fc00a940a33d7a420c176ad3b",
"squids": [],
"baseurl": "https://x.com",
"cookies": [
{"name": "auth_token", "required": true},
{"name": "ct0", "required": true}
],
"icon": "<base64 image data>"
}
],
"next": null,
"previous": null
}
{
"detail": "Invalid token."
}