{"openapi":"3.1.0","info":{"title":"MyFeedIn API","version":"1.0.0","description":"Read your LinkedIn posts, analytics, comments, feeds and saved people, write and schedule posts, and drive outreach campaigns. Authenticate with an API key from Settings > MCP & API. Docs: https://myfeedin.co/documentation/api"},"servers":[{"url":"https://myfeedin.co/api/v1"}],"security":[{"bearer":[]}],"tags":[{"name":"Account"},{"name":"Posts"},{"name":"Analytics"},{"name":"Comments"},{"name":"People"},{"name":"Workspace"},{"name":"Feeds"},{"name":"Publishing"},{"name":"Campaigns"}],"paths":{"/me":{"get":{"operationId":"me","summary":"Current key","description":"The calling key's user id, workspace, and granted scopes. No scope required.","tags":["Account"],"parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"}}}},"/posts":{"get":{"operationId":"posts","summary":"List posts","description":"Published LinkedIn posts, newest first or ranked by engagement. Requires the `posts:read` scope.","tags":["Posts"],"x-required-scope":"posts:read","parameters":[{"name":"q","in":"query","required":false,"description":"Case-insensitive search across the post body.","schema":{"type":"string","description":"Case-insensitive search across the post body."}},{"name":"sort","in":"query","required":false,"description":"Default recent.","schema":{"type":"string","enum":["recent","impressions","comments","reactions"],"description":"Default recent."}},{"name":"period","in":"query","required":false,"description":"Window. Default 90d for ranked sorts, unbounded otherwise.","schema":{"type":"string","enum":["30d","90d","365d","all"],"description":"Window. Default 90d for ranked sorts, unbounded otherwise."}},{"name":"since","in":"query","required":false,"description":"Earliest published_at, ISO 8601.","schema":{"type":"string","description":"Earliest published_at, ISO 8601."}},{"name":"until","in":"query","required":false,"description":"Latest published_at, ISO 8601.","schema":{"type":"string","description":"Latest published_at, ISO 8601."}},{"name":"member","in":"query","required":false,"description":"Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member.","schema":{"type":"string","description":"Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member."}},{"name":"limit","in":"query","required":false,"description":"1 to 100. Default 20.","schema":{"type":"integer","description":"1 to 100. Default 20."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"}}}},"/posts/{id}":{"get":{"operationId":"postGet","summary":"Get a post","description":"One post with its full body and media. Requires the `posts:read` scope.","tags":["Posts"],"x-required-scope":"posts:read","parameters":[{"name":"id","in":"path","required":true,"description":"Post id.","schema":{"type":"string","description":"Post id."}},{"name":"member","in":"query","required":false,"description":"Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member.","schema":{"type":"string","description":"Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}}},"/analytics":{"get":{"operationId":"analytics","summary":"Aggregate analytics","description":"Totals and averages over a period; workspace keys also get by_member. Requires the `posts:read` scope.","tags":["Analytics"],"x-required-scope":"posts:read","parameters":[{"name":"period","in":"query","required":false,"description":"Window. Default 30d.","schema":{"type":"string","enum":["30d","90d","365d","all"],"description":"Window. Default 30d."}},{"name":"compare_to","in":"query","required":false,"description":"Also return the preceding window and the percent deltas.","schema":{"type":"string","enum":["previous"],"description":"Also return the preceding window and the percent deltas."}},{"name":"member","in":"query","required":false,"description":"Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member.","schema":{"type":"string","description":"Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"}}}},"/analytics/patterns":{"get":{"operationId":"analyticsPatterns","summary":"Engagement patterns","description":"Best day, best hour and engagement by post length, from your own history. Requires the `posts:read` scope.","tags":["Analytics"],"x-required-scope":"posts:read","parameters":[{"name":"period","in":"query","required":false,"description":"Window. Default 365d.","schema":{"type":"string","enum":["30d","90d","365d","all"],"description":"Window. Default 365d."}},{"name":"timezone","in":"query","required":false,"description":"IANA zone for the best day and hour. Default UTC.","schema":{"type":"string","description":"IANA zone for the best day and hour. Default UTC."}},{"name":"member","in":"query","required":false,"description":"Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member.","schema":{"type":"string","description":"Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"}}}},"/comments":{"get":{"operationId":"comments","summary":"List comments","description":"Comments you left on other people's posts, newest first. Requires the `comments:read` scope.","tags":["Comments"],"x-required-scope":"comments:read","parameters":[{"name":"q","in":"query","required":false,"description":"Case-insensitive search across the comment body.","schema":{"type":"string","description":"Case-insensitive search across the comment body."}},{"name":"since","in":"query","required":false,"description":"Earliest comment date, ISO 8601.","schema":{"type":"string","description":"Earliest comment date, ISO 8601."}},{"name":"member","in":"query","required":false,"description":"Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member.","schema":{"type":"string","description":"Workspace keys only. A member's name, email or id (see /workspace/members). Omit to cover every member."}},{"name":"limit","in":"query","required":false,"description":"1 to 100. Default 20.","schema":{"type":"integer","description":"1 to 100. Default 20."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"}}}},"/people":{"get":{"operationId":"people","summary":"Search saved people","description":"Everyone saved across your feeds, by name or headline. Requires the `feeds:read` scope.","tags":["People"],"x-required-scope":"feeds:read","parameters":[{"name":"q","in":"query","required":true,"description":"Name or headline keyword.","schema":{"type":"string","description":"Name or headline keyword."}},{"name":"limit","in":"query","required":false,"description":"1 to 100. Default 20.","schema":{"type":"integer","description":"1 to 100. Default 20."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"}}}},"/workspace/members":{"get":{"operationId":"workspaceMembers","summary":"List workspace members","description":"Who the key can read, for the `member` parameter. Empty roster on a personal key. No scope required.","tags":["Workspace"],"parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"}}}},"/feeds":{"get":{"operationId":"feedsList","summary":"List feeds","description":"Requires the `feeds:read` scope.","tags":["Feeds"],"x-required-scope":"feeds:read","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"}}},"post":{"operationId":"feedsCreate","summary":"Create feed","description":"Requires the `feeds:write` scope.","tags":["Feeds"],"x-required-scope":"feeds:write","parameters":[],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Feed name, max 120 characters."}},"required":["name"]}}}}}},"/feeds/{id}/people":{"get":{"operationId":"feedPeople","summary":"List people in a feed","description":"Requires the `feeds:read` scope.","tags":["Feeds"],"x-required-scope":"feeds:read","parameters":[{"name":"id","in":"path","required":true,"description":"Feed id.","schema":{"type":"string","description":"Feed id."}},{"name":"limit","in":"query","required":false,"description":"1 to 200. Default 100.","schema":{"type":"integer","description":"1 to 200. Default 100."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}},"post":{"operationId":"feedPeopleAdd","summary":"Add people to a feed","description":"Resolves each URL through your connected LinkedIn account, then adds it to the feed. Requires the `feeds:write` scope. Requires the Growth plan.","tags":["Feeds"],"x-required-scope":"feeds:write","parameters":[{"name":"id","in":"path","required":true,"description":"Feed id.","schema":{"type":"string","description":"Feed id."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"linkedin_url":{"type":"string","description":"A single LinkedIn profile URL."},"linkedin_urls":{"type":"array","items":{"type":"string"},"description":"Up to 25 profile URLs, instead of linkedin_url."}},"required":[]}}}}}},"/feeds/{id}/people/{personId}":{"delete":{"operationId":"feedPersonRemove","summary":"Remove person from feed","description":"Requires the `feeds:write` scope.","tags":["Feeds"],"x-required-scope":"feeds:write","parameters":[{"name":"id","in":"path","required":true,"description":"Feed id.","schema":{"type":"string","description":"Feed id."}},{"name":"personId","in":"path","required":true,"description":"Person id, from the list endpoint.","schema":{"type":"string","description":"Person id, from the list endpoint."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}}},"/drafts":{"get":{"operationId":"draftsList","summary":"List calendar posts","description":"Posts written in MyFeedIn's Content calendar: drafts, scheduled, failed, and published ones from the last 60 days. Requires the `posts:write` scope.","tags":["Publishing"],"x-required-scope":"posts:write","parameters":[{"name":"status","in":"query","required":false,"description":"Default all.","schema":{"type":"string","enum":["all","draft","scheduled","published","failed"],"description":"Default all."}},{"name":"since","in":"query","required":false,"description":"On or after this slot or publication date.","schema":{"type":"string","description":"On or after this slot or publication date."}},{"name":"until","in":"query","required":false,"description":"On or before this slot or publication date.","schema":{"type":"string","description":"On or before this slot or publication date."}},{"name":"limit","in":"query","required":false,"description":"1 to 200. Default 50.","schema":{"type":"integer","description":"1 to 200. Default 50."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"}}},"post":{"operationId":"draftsCreate","summary":"Create a draft","description":"Saves a post as a draft. Nothing reaches LinkedIn until it is scheduled. Requires the `posts:write` scope.","tags":["Publishing"],"x-required-scope":"posts:write","parameters":[],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"422":{"$ref":"#/components/responses/Error422"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"The post, plain text. The first link becomes the preview."},"first_comment":{"type":"string","description":"Comment posted under the post about 2 minutes after it goes live."},"scheduled_at":{"type":"string","description":"Places the draft on a day without scheduling it. ISO 8601 with an offset (2026-10-14T08:30:00+02:00), or a local YYYY-MM-DDTHH:mm read in `timezone`. A bare date is refused."},"timezone":{"type":"string","description":"IANA zone for a local scheduled_at. Defaults to the timezone saved in Settings > Publishing."},"image_urls":{"type":"array","items":{"type":"string"},"description":"Public https image URLs (JPEG, PNG, GIF, WebP, 20 MB each, up to 20). Downloaded and attached; one that fails is listed in media_errors and the draft is saved anyway."}},"required":["text"]}}}}}},"/drafts/{id}":{"get":{"operationId":"draftGet","summary":"Get a calendar post","description":"Requires the `posts:write` scope.","tags":["Publishing"],"x-required-scope":"posts:write","parameters":[{"name":"id","in":"path","required":true,"description":"Post id.","schema":{"type":"string","description":"Post id."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}},"patch":{"operationId":"draftUpdate","summary":"Edit a draft","description":"Edits a draft, scheduled or failed post. A scheduled post stays scheduled with the new version. Requires the `posts:write` scope.","tags":["Publishing"],"x-required-scope":"posts:write","parameters":[{"name":"id","in":"path","required":true,"description":"Post id.","schema":{"type":"string","description":"Post id."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"422":{"$ref":"#/components/responses/Error422"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"New text."},"first_comment":{"type":"string","description":"New first comment; empty string or null removes it."},"scheduled_at":{"type":"string","description":"Moves the draft's day. ISO 8601 with an offset (2026-10-14T08:30:00+02:00), or a local YYYY-MM-DDTHH:mm read in `timezone`. A bare date is refused."},"timezone":{"type":"string","description":"IANA zone for a local scheduled_at. Defaults to the timezone saved in Settings > Publishing."}},"required":[]}}}}}},"/drafts/{id}/media":{"post":{"operationId":"draftMedia","summary":"Add images to a post","description":"Adds images after the post's current ones. Send the files as multipart/form-data `file` fields (4.5 MB per request), JSON with `url` or `urls` for public images MyFeedIn downloads (20 MB each), or JSON `upload_ids` for bigger files sent through /drafts/{id}/media/upload-url. JPEG, PNG, GIF or WebP, up to 20 per post. An image that fails is listed in media_errors. Requires the `posts:write` scope.","tags":["Publishing"],"x-required-scope":"posts:write","parameters":[{"name":"id","in":"path","required":true,"description":"Post id.","schema":{"type":"string","description":"Post id."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"422":{"$ref":"#/components/responses/Error422"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"One public https image URL (JSON body)."},"urls":{"type":"array","items":{"type":"string"},"description":"Several image URLs (JSON body)."},"upload_ids":{"type":"array","items":{"type":"string"},"description":"Files already PUT on URLs from /drafts/{id}/media/upload-url (JSON body)."}},"required":[]}}}}}},"/drafts/{id}/media/upload-url":{"post":{"operationId":"draftMediaUploadUrl","summary":"Get an upload URL for an image","description":"For image files over 4.5 MB (up to 20 MB). PUT the raw file on `upload_url` with the returned Content-Type header within 15 minutes, then attach it with POST /drafts/{id}/media and `upload_ids`. Requires the `posts:write` scope.","tags":["Publishing"],"x-required-scope":"posts:write","parameters":[{"name":"id","in":"path","required":true,"description":"Post id.","schema":{"type":"string","description":"Post id."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"422":{"$ref":"#/components/responses/Error422"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file_name":{"type":"string","description":"The file name with its extension (.jpg, .png, .gif, .webp)."},"content_type":{"type":"string","description":"image/jpeg, image/png, image/gif or image/webp, when the extension says nothing."}},"required":["file_name"]}}}}}},"/drafts/{id}/schedule":{"post":{"operationId":"draftSchedule","summary":"Schedule a post","description":"MyFeedIn publishes the post on your LinkedIn account at the slot. Needs a connected LinkedIn account and a plan that allows scheduling; the error `code` says which is missing. Requires the `posts:write` scope.","tags":["Publishing"],"x-required-scope":"posts:write","parameters":[{"name":"id","in":"path","required":true,"description":"Post id.","schema":{"type":"string","description":"Post id."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"422":{"$ref":"#/components/responses/Error422"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduled_at":{"type":"string","description":"ISO 8601 with an offset (2026-10-14T08:30:00+02:00), or a local YYYY-MM-DDTHH:mm read in `timezone`. A bare date is refused."},"timezone":{"type":"string","description":"IANA zone for a local scheduled_at. Defaults to the timezone saved in Settings > Publishing."},"randomize":{"type":"boolean","description":"Spread the publish time within ±4 minutes. Default: your publishing setting."}},"required":["scheduled_at"]}}}}},"delete":{"operationId":"draftUnschedule","summary":"Unschedule a post","description":"Puts a scheduled post back to draft. Nothing goes out. Requires the `posts:write` scope.","tags":["Publishing"],"x-required-scope":"posts:write","parameters":[{"name":"id","in":"path","required":true,"description":"Post id.","schema":{"type":"string","description":"Post id."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"429":{"$ref":"#/components/responses/Error429"}}}},"/campaigns":{"get":{"operationId":"campaignsList","summary":"List campaigns","description":"Requires the `campaigns:read` scope. Requires the Growth plan.","tags":["Campaigns"],"x-required-scope":"campaigns:read","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"}}},"post":{"operationId":"campaignsCreate","summary":"Create campaign","description":"Creates a draft campaign on your connected LinkedIn account. Requires the `campaigns:write` scope. Requires the Growth plan.","tags":["Campaigns"],"x-required-scope":"campaigns:write","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Default Untitled campaign."},"icon":{"type":"string","description":"Default Megaphone."}},"required":[]}}}}}},"/campaigns/{id}":{"get":{"operationId":"campaignGet","summary":"Get campaign","description":"Requires the `campaigns:read` scope. Requires the Growth plan.","tags":["Campaigns"],"x-required-scope":"campaigns:read","parameters":[{"name":"id","in":"path","required":true,"description":"Campaign id.","schema":{"type":"string","description":"Campaign id."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}}},"/campaigns/{id}/profiles":{"post":{"operationId":"campaignProfiles","summary":"Add profiles by URL","description":"Requires the `campaigns:write` scope. Requires the Growth plan.","tags":["Campaigns"],"x-required-scope":"campaigns:write","parameters":[{"name":"id","in":"path","required":true,"description":"Campaign id.","schema":{"type":"string","description":"Campaign id."}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"linkedin_url":{"type":"string","description":"A single LinkedIn profile URL."},"linkedin_urls":{"type":"array","items":{"type":"string"},"description":"Up to 25 profile URLs, instead of linkedin_url."}},"required":[]}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key (mfi_live_...). Scopes: posts:read (Read your published posts and their analytics); posts:write (Write drafts and schedule posts on LinkedIn); comments:read (Read the comments you left on other people's posts); feeds:read (List feeds and the people in them); feeds:write (Create feeds and manage the people in them); campaigns:read (List campaigns and their stats); campaigns:write (Create campaigns and add profiles); linkedin:read (Search LinkedIn and read profiles and posts with your account (daily limits apply)); prospects:read (Read your prospect lists); prospects:write (Create prospect lists and save prospects); agent:write (Queue people with their own steps in agent campaigns)."}},"responses":{"Error400":{"description":"Missing or malformed parameters.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"problems":{"type":"array","items":{"type":"string"}},"retry_after":{"type":"integer"}},"required":["error"]}}}},"Error401":{"description":"Missing, invalid or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"problems":{"type":"array","items":{"type":"string"}},"retry_after":{"type":"integer"}},"required":["error"]}}}},"Error402":{"description":"Subscription inactive.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"problems":{"type":"array","items":{"type":"string"}},"retry_after":{"type":"integer"}},"required":["error"]}}}},"Error403":{"description":"Key lacks the required scope or plan, or the action needs a connected LinkedIn account.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"problems":{"type":"array","items":{"type":"string"}},"retry_after":{"type":"integer"}},"required":["error"]}}}},"Error404":{"description":"Resource does not exist in this key's scope.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"problems":{"type":"array","items":{"type":"string"}},"retry_after":{"type":"integer"}},"required":["error"]}}}},"Error409":{"description":"The resource is in a state that does not allow this action.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"problems":{"type":"array","items":{"type":"string"}},"retry_after":{"type":"integer"}},"required":["error"]}}}},"Error422":{"description":"Validation failed; see `error`, `code` and `problems`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"problems":{"type":"array","items":{"type":"string"}},"retry_after":{"type":"integer"}},"required":["error"]}}}},"Error429":{"description":"Rate limit exceeded; see `retry_after`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"problems":{"type":"array","items":{"type":"string"}},"retry_after":{"type":"integer"}},"required":["error"]}}}}}}}