# RSS Import

API for managing rss import

## Create an RSS Import

<mark style="color:green;">`POST`</mark> `https://www.magloft.com/api/portal/v1/rss_imports/:app_id`

This endpoint **creates** a new `RSS Import` and **returns** the saved `RSS Import`

#### Path Parameters

| Name    | Type   | Description                                     |
| ------- | ------ | ----------------------------------------------- |
| app\_id | String | App ID (Publication) to scope this request for. |

#### Request Body

| Name | Type   | Description                               |
| ---- | ------ | ----------------------------------------- |
| url  | String | External Blog URL to import articles from |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "id": 1234,
  "message_id": "123412341234",
  "url": "https://blog.magloft.com/feed/",
  "status": "pending",
  "created_at": "2018-01-24 10:55:35",
  "updated_at": "2018-01-24 10:55:35",
  "total": 14,
  "imported": 3
}
```

{% endtab %}
{% endtabs %}

## Get RSS Import

<mark style="color:blue;">`GET`</mark> `https://www.magloft.com/api/portal/v1/rss_imports/:app_id/:id`

This endpoint **returns** a specific `rss import` by `id`

#### Path Parameters

| Name    | Type    | Description                                     |
| ------- | ------- | ----------------------------------------------- |
| app\_id | String  | App ID (Publication) to scope this request for. |
| id      | Integer | RSS Import ID                                   |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "id": 1234,
  "message_id": "123412341234",
  "url": "https://blog.magloft.com/feed/",
  "status": "pending",
  "created_at": "2018-01-24 10:55:35",
  "updated_at": "2018-01-24 10:55:35",
  "total": 14,
  "imported": 3
}
```

{% endtab %}
{% endtabs %}
