{"openapi":"3.1.0","info":{"title":"X Aligne API","version":"1.0.0","description":"Create, schedule, and explicitly publish X content from X Aligne."},"servers":[{"url":"https://www.xaligne.com"}],"security":[{"bearerAuth":[]}],"paths":{"/api/v1/me":{"get":{"summary":"Get workspace and entitlements","responses":{"200":{"description":"Workspace"}}}},"/api/v1/posts":{"get":{"summary":"List posts","responses":{"200":{"description":"Post collection"}}},"post":{"summary":"Create, schedule, or publish a post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostInput"}}}},"responses":{"201":{"description":"Created"}}}},"/api/v1/signals":{"get":{"summary":"List saved signals","responses":{"200":{"description":"Signal collection"}}},"post":{"summary":"Save a signal","responses":{"201":{"description":"Created"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"X Aligne API key"}},"schemas":{"PostInput":{"type":"object","required":["posts"],"properties":{"posts":{"type":"array","minItems":1,"maxItems":25,"items":{"type":"string","maxLength":280}},"scheduledFor":{"type":"string","format":"date-time"},"publishNow":{"type":"boolean","default":false},"confirm":{"type":"boolean","description":"Must be true for immediate publishing."}}}}}}