Skip to main content

Management Endpoints

The AnySite Management API enables you to interact with your own LinkedIn account programmatically. These endpoints allow you to manage posts, connections, conversations, and access your profile data securely.
Account Security First: We never use user accounts for data collection. Our management endpoints are designed with robust anti-blocking protection to safeguard your LinkedIn account.

Available Management Endpoints

Profile Management

  • Get Own Profile - Access your complete LinkedIn profile information
  • Company Mentions - Monitor mentions of your company or brand

Content Management

  • Create/Manage Posts - Publish and manage your LinkedIn posts
  • Manage Comments - Respond to and manage comments on your posts

Networking

  • View Connections - Access your LinkedIn connection list
  • Manage Connections - Handle connection requests and manage relationships
  • Manage Conversations - Send and manage LinkedIn messages

Account Connection Methods

To use the management endpoints, you need to connect your LinkedIn account using one of two secure methods:

Method 1: Username & Password

Connect your LinkedIn account by providing your login credentials directly in the Accounts Dashboard. For enhanced security, use cookie-based authentication:

Prerequisites

Step-by-Step Instructions

  1. Install Cookie Editor Extension
    • Go to the Chrome Web Store and install the Cookie Editor extension
  2. Log in to LinkedIn
    • Open LinkedIn.com in your browser and sign in to your LinkedIn account
  3. Export Your LinkedIn Cookies
    • Click on the Cookie Editor extension icon in your browser
    • In the Cookie Editor panel, click the “Export” button
    • Select “JSON” format from the export options
  4. Add the LinkedIn Account in the Dashboard
    • Navigate to the Accounts section
    • Click “Add Account” button
    • Paste the JSON cookies you exported from LinkedIn into the text field
    • Click “Save” to add your account

Important Notes

  • Do not click the ‘Logout’ button on LinkedIn after exporting cookies
  • Simply close your browser instead
  • Your Account ID will appear in the accounts table after successful addition

Verification

  • Check that your account appears in the accounts list
  • Your account is now ready to use for LinkedIn management operations

Integration Options

MCP Server Integration

Use management endpoints through the MCP server for AI-powered LinkedIn automation:
{
  "mcpServers": {
    "hdw": {
      "command": "npx",
      "args": ["@horizondatawave/mcp-server"],
      "env": {
        "HDW_API_KEY": "your-api-key",
        "HDW_ACCOUNT_ID": "your-linkedin-account-id"
      }
    }
  }
}

n8n Workflow Automation

Integrate management endpoints into n8n workflows for automated LinkedIn management:
  1. Install the AnySite LinkedIn Management node
  2. Configure your API key and account ID
  3. Create workflows for automated posting, connection management, and engagement

API Usage Examples

Get Your Profile Information

curl -X POST "https://api.anysite.io/api/linkedin/management/me" \
  -H "access-token: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"account_id": "your_account_id"}'

Create a LinkedIn Post

curl -X POST "https://api.anysite.io/api/linkedin/management/post" \
  -H "access-token: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "account_id": "your_account_id",
    "content": "Your post content here",
    "visibility": "public"
  }'

Manage Connections

curl -X POST "https://api.anysite.io/api/linkedin/management/user/connections" \
  -H "access-token: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"account_id": "your_account_id"}'

Get Company Mentions

curl -X GET "https://api.anysite.io/api/linkedin/management/company/mentions" \
  -H "access-token: YOUR_API_KEY"

Security & Account Protection

Account Safety Measures

  • Never Used for Data Collection: Your connected accounts are exclusively for your management operations
  • Anti-Blocking Protection: Advanced algorithms protect your account from LinkedIn’s automation detection
  • Secure Authentication: Cookie-based authentication provides enhanced security
  • Rate Limiting: Built-in rate limiting prevents excessive API usage that could trigger blocks

Best Practices

  • Use cookie authentication when possible for better security
  • Monitor your account activity through the dashboard
  • Set appropriate rate limits for your use case
  • Keep your API keys secure and rotate them regularly

Privacy Guarantees

  • Your account credentials are encrypted and stored securely
  • We never access your account for our own data collection purposes
  • All management operations are performed on your behalf only
  • Full transparency in all account activities through audit logs

Use Cases

Content Creation & Management

  • Automate LinkedIn posting schedules
  • Manage post comments and engagement
  • Monitor content performance

Network Growth

  • Automate connection requests with personalized messages
  • Manage incoming connection requests
  • Track networking activities

Lead Generation

  • Monitor company mentions for business opportunities
  • Engage with prospects through automated messaging
  • Track conversation histories

Brand Management

  • Monitor brand mentions across LinkedIn
  • Respond to comments and messages promptly
  • Maintain consistent brand presence

Getting Started

  1. Get Your API Key: Sign up at AnySite Dashboard
  2. Connect Your Account: Use the cookie method for secure account connection
  3. Test Integration: Start with simple profile retrieval to verify setup
  4. Explore Endpoints: Use the interactive API documentation to explore capabilities
  5. Build Workflows: Create automated workflows using MCP server or n8n nodes
Need help getting started? Check our Quickstart Guide or contact our support team.
I