# Changelogs

Changelogfy provides an API to you to interact with your changelogs.

# Get changelogs

https://changelogfy.com/api/projects/{api_token}/posts

Params:

api_token - required
page - optional

This method will get changelogs from your project with pagination, 5 posts per page.

# Response:

{
  "current_page": 1,
  "data": [
    {
      "id": 1356,
      "project_id": 2,
      "title": "New Import Source: GitHub Releases 🎊",
      "body": "<p>From now on you can import GitHub releases into Changelogfy.</p><p><br></p><p>This can happen in two ways:</p><p><br></p><ol><li>A simple import.</li><li>Automatic import, this means that every time a new GitHub Release is released it will be automatically imported into your Changelogfy project.</li></ol><p><br></p><p>Warning: For now this feature is only available for public repositories on GitHub.</p><p><br></p><p>Best,</p><p>Paulo</p>",
      "slug": "new-import-source-github-releases",
      "user_id": 2,
      "label_id": 4,
      "published": 1,
      "published_at": "2019-09-11 01:37:00",
      "fixed_on_top": false,
      "override_url": null,
      "read": false,
      "label": {
        "id": 4,
        "name": "New",
        "color": "#32AD03",
        "project_id": 2
      },
      "user": {
        "id": 2,
        "name": "Paulo",
        "avatar": "https://changelogfy.s3.amazonaws.com/users/avatar/73dc66d68677183de1a12db71112c96bffc82db1b68af5611c094afac30e9841.png",
        "job": "Founder"
      }
    },
    {
      "id": 1325,
      "project_id": 2,
      "title": "New JavaScript SDK",
      "body": "<p>Hello,</p><p><br></p><p>Today we release the new fully rewritten javascript SDK, you won't be able to see any major visual changes.</p><p><br></p><p>But this update is very important for Changelogfy because it will support the new updates we are preparing for this month.</p><p><br></p><p><strong>*PS: If you use SPA mode, don't forget change from:</strong></p><pre class=\"ql-syntax\" spellcheck=\"false\">let changelogfy = new changelogfy(config);\r\nlet changelogfy.init();\r\n</pre><p><br></p><p><strong>to:</strong></p><pre class=\"ql-syntax\" spellcheck=\"false\">changelogfy.init(config);\r\n</pre><p><br></p><p>For more info, <a href=\"https://help.changelogfy.com/widget/install-embed-widget\" target=\"_blank\">click here</a>.</p><p><br></p><p><br></p><p>Regards,</p><p>Paulo</p>",
      "slug": "new-javascript-sdk",
      "user_id": 2,
      "label_id": 5,
      "published": 1,
      "published_at": "2019-09-09 01:14:00",
      "fixed_on_top": false,
      "override_url": null,
      "read": false,
      "label": {
        "id": 5,
        "name": "Improvement",
        "color": "#7300FF",
        "project_id": 2
      },
      "user": {
        "id": 2,
        "name": "Paulo",
        "avatar": "https://changelogfy.s3.amazonaws.com/users/avatar/73dc66d68677183de1a12db71112c96bffc82db1b68af5611c094afac30e9841.png",
        "job": "Founder"
      }
    }
  ],
  "first_page_url": "https://changelogfy.com/api/projects/af12f992-0a0c-4cdf-8144-89af158c39e2/posts?page=1",
  "from": 1,
  "last_page": 5,
  "last_page_url": "https://changelogfy.com/api/projects/af12f992-0a0c-4cdf-8144-89af158c39e2/posts?page=5",
  "next_page_url": "https://changelogfy.com/api/projects/af12f992-0a0c-4cdf-8144-89af158c39e2/posts?page=2",
  "path": "https://changelogfy.com/api/projects/af12f992-0a0c-4cdf-8144-89af158c39e2/posts",
  "per_page": 5,
  "prev_page_url": null,
  "to": 5,
  "total": 25
}