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

Authorization page

GET/oauth/v2/authorization
Base URL: https://linkedin-ads.mimicr.dev · provider: https://www.linkedin.com

Open this URL in the member's browser to start the 3-legged OAuth flow. The member sees the app, the scopes and, in Mimicr, a persona picker (admin, campaign_manager, creative_manager, viewer, no_accounts, cancel_login). Consent is all-or-nothing.

Allow redirects to redirect_uri?code=…&state=…; Cancel redirects with error=user_cancelled_authorize, and the persona cancel_login with error=user_cancelled_login. The code is valid for 30 minutes and can be used once. A member who already granted the same scopes is redirected at once (silent re-consent); the page has a "Esquecer minha autorização" (forget my grant) link.

Authorization

Public route, no token.

Query parameters

response_typestringrequired

Always code.

code
client_idstringrequired

Client id of the developer app.

redirect_uristringrequired

One of the app's redirect URLs (the query string is ignored when matching; no #).

statestring

Your CSRF value, returned unchanged.

scopestringrequired

Scopes, URL-encoded and space-delimited. Only the scopes of the app's products (Advertising, Lead Sync, Conversions) are allowed.

Responses

200The consent page (HTML).
string
302Redirect to redirect_uri with code and state, or with error and error_description.
401Error page: "Client_id doesn't match", "Redirect_uri doesn't match" or "Invalid scope".
string