XreplyAIDevelopers
API ReferenceMedia Uploads

Upload a LinkedIn image

Requires scope: `publish:write`. Uploads a base64 image and returns an `asset_urn` for use in a post's metadata. Asset URNs are scoped to the uploading account — pass `social_account_id` when the user has more than one LinkedIn account connected.

POST
/linkedin/image_uploads
AuthorizationBearer <token>

A personal API key created in the dashboard (Starter, Pro, and Team plans).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/linkedin/image_uploads" \  -H "Content-Type: application/json" \  -d '{    "content_type": "string"  }'
{  "asset_urn": "urn:li:image:abc123"}