{"components":{"schemas":{"Comment":{"additionalProperties":false,"properties":{"post_urn":{"type":"string"},"text":{"maxLength":1250,"type":"string"}},"required":["post_urn","text"],"type":"object"},"Confirmation":{"additionalProperties":false,"properties":{"confirmed":{"description":"True only when this exact external action is intended.","type":"boolean"}},"required":["confirmed"],"type":"object"},"Contact":{"additionalProperties":false,"properties":{"linkedin_url":{"format":"uri","type":"string"},"name":{"type":"string"},"notes":{"type":"string"},"source_url":{"format":"uri","type":"string"},"topic":{"enum":["rust","solana","both","other"],"type":"string"}},"required":["name","linkedin_url","topic"],"type":"object"},"Error":{"properties":{"error":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"}},"type":"object"},"ImportedPost":{"additionalProperties":false,"properties":{"author":{"type":"string"},"text":{"type":"string"},"topic":{"enum":["rust","solana","both","other"],"type":"string"},"url":{"format":"uri","type":"string"}},"required":["url","author","text","topic"],"type":"object"},"NewPost":{"additionalProperties":false,"properties":{"idempotency_key":{"maxLength":128,"minLength":8,"type":"string"},"link_url":{"format":"uri","type":"string"},"text":{"maxLength":3000,"minLength":1,"type":"string"}},"required":["text","idempotency_key"],"type":"object"},"Object":{"additionalProperties":true,"type":"object"},"Schedule":{"additionalProperties":false,"properties":{"confirmed":{"type":"boolean"},"scheduled_at":{"description":"RFC3339 timestamp including timezone; within the next 90 days.","format":"date-time","type":"string"}},"required":["confirmed","scheduled_at"],"type":"object"}},"securitySchemes":{"serverKey":{"description":"Long server key, supplied only in Authorization header.","scheme":"bearer","type":"http"}}},"info":{"description":"Private publishing and research workspace. Check capabilities before external operations. Watchlist entries are not LinkedIn follows; inbox search covers imported content only.","title":"LinkedIn Workspace API","version":"0.1.0"},"openapi":"3.1.0","paths":{"/healthz":{"get":{"description":"Check service health","operationId":"health","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[],"summary":"Check service health","x-openai-isConsequential":false}},"/v1/audit":{"get":{"description":"List the last 100 operation outcomes without tokens or post contents","operationId":"auditEvents","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"List the last 100 operation outcomes without tokens or post contents","x-openai-isConsequential":false}},"/v1/capabilities":{"get":{"description":"Check real LinkedIn permissions and supported actions","operationId":"capabilities","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Check real LinkedIn permissions and supported actions","x-openai-isConsequential":false}},"/v1/comments":{"get":{"description":"List stored comment drafts and send states","operationId":"listCommentDrafts","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"List stored comment drafts and send states","x-openai-isConsequential":false},"post":{"description":"Save a comment draft without sending","operationId":"draftComment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Save a comment draft without sending","x-openai-isConsequential":false}},"/v1/comments/{id}/send":{"post":{"description":"Send an approved comment with granted Community Management access","operationId":"sendComment","parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Confirmation"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Send an approved comment with granted Community Management access","x-openai-isConsequential":true}},"/v1/contacts":{"get":{"description":"List local watchlist; this is not LinkedIn following","operationId":"listContacts","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"List local watchlist; this is not LinkedIn following","x-openai-isConsequential":false},"post":{"description":"Save a local contact without following on LinkedIn","operationId":"saveContact","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Save a local contact without following on LinkedIn","x-openai-isConsequential":false}},"/v1/inbox":{"get":{"description":"Local database search only. Never describe these results as live LinkedIn search or monitoring.","operationId":"searchImportedPosts","parameters":[{"in":"query","name":"q","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Search only explicitly imported posts","x-openai-isConsequential":false},"post":{"description":"Save a post supplied by the user or a permitted source","operationId":"importPost","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportedPost"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Save a post supplied by the user or a permitted source","x-openai-isConsequential":false}},"/v1/linkedin/account":{"get":{"description":"Get connected account status without credentials","operationId":"account","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Get connected account status without credentials","x-openai-isConsequential":false}},"/v1/linkedin/connect":{"post":{"description":"Requires server-side LinkedIn application credentials. Open the returned link in the account owner browser within 10 minutes.","operationId":"connectLinkedIn","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Create a single-use browser authorization link","x-openai-isConsequential":false}},"/v1/linkedin/follow":{"post":{"description":"Currently returns 501 linkedin_follow_not_supported. Does not follow any account.","operationId":"followLinkedIn","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Report whether following members is supported","x-openai-isConsequential":true}},"/v1/linkedin/posts/{urn}":{"get":{"description":"Read a post if restricted read permission was granted","operationId":"readLinkedInPost","parameters":[{"in":"path","name":"urn","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Read a post if restricted read permission was granted","x-openai-isConsequential":false}},"/v1/linkedin/search":{"get":{"description":"Currently returns 501 linkedin_search_not_supported. Does not search the live LinkedIn network.","operationId":"searchLinkedIn","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Report whether live LinkedIn search is supported","x-openai-isConsequential":false}},"/v1/posts":{"get":{"description":"List local posts and publication states","operationId":"listDrafts","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"List local posts and publication states","x-openai-isConsequential":false},"post":{"description":"Always use a stable idempotency_key for retries. Reusing a key with a different body returns 409.","operationId":"createDraft","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewPost"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Save a post draft without publishing","x-openai-isConsequential":false}},"/v1/posts/{id}":{"get":{"description":"Get a local post and its publication result","operationId":"getPost","parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Get a local post and its publication result","x-openai-isConsequential":false}},"/v1/posts/{id}/cancel":{"post":{"description":"Cancel a draft or pending scheduled post","operationId":"cancelPost","parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Cancel a draft or pending scheduled post","x-openai-isConsequential":true}},"/v1/posts/{id}/publish":{"post":{"description":"External publication. Requires w_member_social. No automatic retry after uncertain outcomes; inspect status and LinkedIn first.","operationId":"publishPost","parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Confirmation"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Publish an approved draft to the connected LinkedIn account","x-openai-isConsequential":true}},"/v1/posts/{id}/schedule":{"post":{"description":"Schedule an approved post for publication","operationId":"schedulePost","parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}},"description":"Successful result"},"400":{"description":"Invalid request"},"401":{"description":"Server key missing or invalid"},"403":{"description":"LinkedIn permission missing"},"409":{"description":"Account or resource state prevents this action"},"501":{"description":"Not supported by the available LinkedIn API"}},"security":[{"serverKey":[]}],"summary":"Schedule an approved post for publication","x-openai-isConsequential":true}}},"security":[{"serverKey":[]}],"servers":[{"url":"https://linkedin.id5.dev"}]}