Skip to content

Konnection API Endpoints

HailanXyouknow edited this page Feb 18, 2021 · 14 revisions

Konnection API Endpoints

Last Updated: Feb 17 2021

Post

/service/author/{AUTHOR_ID}/posts/

  • Methods:
    • GET: get posts made by the author (paginated)
    • POST: create a new post
  • Notes:
    • Currently no pagination is implemented
    • You can only get your own posts or another user's public posts

/service/author/{AUTHOR_ID}/posts/{POST_ID}

  • Methods:
    • GET: get the public post
    • POST: update the post
    • DELETE: remove the post
    • PUT: create a post with that post_id

Current accepted payload:

{
  "title": "Title",
  "source": "http://example.com/source",
  "origin": "http://example.com/origin",
  "description": "A brief description",
  "contentType": "text/html",
  "content": "<h1>hello</h1>",
  "visibility": "PUBLIC",
  "unlisted": False
}
  • Accepted values:
    • contentType: text/markdown, text/plain, text/html, application/base64, image/png;base64, image/jpeg;base64
    • visibility: PUBLIC, FRIENDS