API Reference
Image upload (www.linkedin.com)PUTUpload the image bytesGETDownload an image
Image upload (www.linkedin.com)

Upload the image bytes

PUT/dms-uploads/{id}/uploaded-image/0
Base URL: https://linkedin-ads.mimicr.dev · provider: https://www.linkedin.com

The uploadUrl of initializeUpload, with its query string, and the same bearer token. JPG, PNG or GIF. The image is PROCESSING and becomes AVAILABLE after about 5 seconds, or PROCESSING_FAILED for a file that isn't an image.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

idstringrequired

Image id (the part of the URN after urn:li:image:).

Query parameters

utstringrequired

Upload token of the uploadUrl.

Body

application/octet-stream
string<binary>required

Responses

201Uploaded.
401Missing token (Empty oauth2_access_token), invalid token (65600 INVALID_ACCESS_TOKEN), revoked (65601 REVOKED_ACCESS_TOKEN) or expired (65602 EXPIRED_ACCESS_TOKEN).
statusinteger

HTTP status.

serviceErrorCodeinteger

Service error code (100, 401, 65600…).

codestring

Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).

messagestring

Error message.