---
title: "Import RSS sources from an OPML document"
method: POST
path: "/api/sources/import-opml"
tags: ["Sources"]
---

# Import RSS sources from an OPML document

`POST /api/sources/import-opml`

## Request

- Base URL: `https://keep.md`
- URL: `https://keep.md/api/sources/import-opml`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `keep.session_token`

Import RSS sources from an OPML document.

## Headers

- `Keep-API-Version` string

## Request body

- object
  - `opml` string, required
  - `autoSummarize` boolean

## Response `200`

OPML import result

- object
  - `imported` integer, required
  - `skipped` integer, required
  - `failed` integer, required
  - `duplicatesInFile` integer, required
  - `feeds` object[], required

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: The credential lacks access or the plan does not include the feature

---

[API](https://skmtc.dev/keep/apis/keep-api.md) · [All operations](https://skmtc.dev/keep/apis/keep-api/llms.txt) · [OpenAPI document](https://skmtc.dev/keep/apis/keep-api/revisions/a338a455bd0f?raw)
