LinkedIn API
Posting to LinkedIn via RelayAPI — features, limits, and platform-specific settings.
Overview
RelayAPI supports publishing to LinkedIn through the unified API. Connect your LinkedIn account and start posting programmatically.
Getting Started
- Connect your LinkedIn account via the dashboard or Connect Account API
- Use the account ID as a target when creating posts
curl -X POST https://api.relayapi.dev/v1/posts \
-H "Authorization: Bearer rlay_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"content": "Hello from RelayAPI!",
"targets": ["acc_linkedin_123"]
}'Content Limits
| Property | Limit |
|---|---|
| Character limit | 3000 |
| Supported media | Images (9), Video (1), Documents |
| Media size limits | 10 MB images, 200 MB video |
Platform-Specific Settings
Use platform_overrides to customize content for LinkedIn:
{
"content": "Default content for all platforms",
"platform_overrides": {
"linkedin": {
"content": "Custom content for LinkedIn"
}
}
}Rate Limits
LinkedIn enforces its own rate limits. RelayAPI automatically queues and retries posts when platform rate limits are reached. See Rate Limits for details.