{"openapi":"3.1.0","info":{"title":"next22 News ingest","version":"1.0.0","description":"Push news items to a next22 News newsroom. Each source has its own endpoint and secret."},"servers":[{"url":"https://news.next22.com"}],"paths":{"/api/v1/ingest/{slug}":{"post":{"operationId":"publishNews","summary":"Send up to 25 news items","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearer":[]},{"hmac":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["items"],"properties":{"items":{"type":"array","minItems":1,"maxItems":25,"items":{"type":"object","required":["title","url","source_name"],"properties":{"title":{"type":"string","minLength":3,"maxLength":300,"description":"Headline as published by the original source."},"url":{"type":"string","format":"uri","description":"Link to the original article. Its domain must be on the newsroom allow-list."},"source_name":{"type":"string","maxLength":120,"description":"Publisher name, e.g. Reuters."},"summary":{"type":"string","maxLength":4000,"description":"Short summary in your own words. Do not paste the full article."},"published_at":{"type":"string","format":"date-time"},"category_hint":{"type":"string","description":"tech, business, aviation, science, world, …"},"image_url":{"type":"string","format":"uri"},"language":{"type":"string","default":"en"},"tags":{"type":"array","items":{"type":"string"},"maxItems":12}}}}}}}}},"responses":{"200":{"description":"Replay of an earlier delivery with the same Idempotency-Key."},"202":{"description":"Accepted; items are processed asynchronously."},"400":{"description":"Invalid JSON or schema."},"401":{"description":"Invalid token or signature."},"403":{"description":"Endpoint disabled."},"413":{"description":"Body larger than 256 KB."},"429":{"description":"Rate limited."}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Endpoint token (auth mode BEARER)."},"hmac":{"type":"apiKey","in":"header","name":"X-News-Signature","description":"sha256=<hex HMAC-SHA256(secret, `${X-News-Timestamp}.${rawBody}`)> (auth mode HMAC)."}}}}