XreplyAIDevelopers
API ReferenceMedia Uploads

Upload a LinkedIn document

Requires scope: `publish:write`. Uploads a base64 document and returns a `document_urn` for use in a carousel post's metadata.

POST
/linkedin/document_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/document_uploads" \  -H "Content-Type: application/json" \  -d '{    "content_type": "string",    "document": "string"  }'
{  "document_urn": "urn:li:document:abc123"}