Facebook Pixel
APILinkedIn Posts

Check document (PDF) processing status

After PUTting a document to the pre-signed URL from /posts/upload/init, poll this until status is READY. LinkedIn rasterizes each page into preview images first; the document cannot be posted until it is READY. Only needed for mediaType=document.

GET/posts/upload/document-status
Authentication requiredPosts

Code Examples

curl -X GET 'https://api.connectsafely.ai/linkedin/posts/upload/document-status' \
-H 'Authorization: Bearer <your_api_key>'

After PUTting a document to the pre-signed URL from /posts/upload/init, poll this until status is READY. LinkedIn rasterizes each page into preview images first; the document cannot be posted until it is READY. Only needed for mediaType=document.

Parameters

NameInRequiredTypeDescription
assetUrnqueryYesstringDocument asset URN from /posts/upload/init.
accountIdqueryNostringLinkedIn account ID. If omitted, uses the default account.

Request Body

No request body.

Responses

StatusDescription
200Current processing status.
401Unauthorized
500Server error

200 Response Parameters

NameTypeDescription
successboolean
statusstring
readybooleantrue when status is READY (safe to call /posts/create).

200 Example

{
  "success": true,
  "status": "active",
  "ready": true
}

401 Response Parameters

NameTypeDescription
errorstring

401 Example

{
  "error": "example_value"
}

500 Response Parameters

NameTypeDescription
errorstring

500 Example

{
  "error": "example_value"
}