Reader API
  1. Contents
Reader API
  • Welcome to Omerlo
  • Authorization - OAuth 2
    • Client Credentials flow
      POST
    • Authorization Code flow
      POST
    • Refresh Token flow
      POST
    • Verify oauth user
      POST
    • User info
      GET
  • Accounts
    • User info
      GET
    • User entitlements
      GET
  • Announcements
    • Paginated Announcement list
      GET
    • Announcement by id
      GET
  • Categories
    • Paginated categories list
      GET
    • Category by id
      GET
  • Contents
    • Paginated Contents
      GET
    • Content by id
      GET
  • Devices
    • Register a device
      POST
  • Distributions
    • Releases
      • Paginated Release list
      • Release by id
    • Paginated Distribution list
      GET
    • Distribution by id
      GET
  • Issues
    • Issue by id
      GET
    • List Contents in Issue Section
      GET
    • Search Contents in Issue
      GET
    • Issue Section Blocks by section_id
      GET
  • Oauth Providers
    • List providers
  • Mailer
    • Send email
  • Menus
    • Menu by key
  • Sections
    • Section by id
    • Paginated Contents by Section id
  • Topics
    • List topics
    • Subscribe
    • Unsubscribe
  • Webpages
    • Paginated webpages list
    • Webpage by id
  • Media overview
    GET
  • Schemas
    • ReaderHub
      • Distribution
        • Distribution
        • Distribution (summary)
        • Release
        • Release (summary)
      • Issue
        • Issue
        • Issue (summary)
        • Issue Section
        • Issue Section (summary)
        • SectionContent
        • Issue Block
        • Issue BlockConfiguration (summary)
        • IssueType (summary)
      • Profile
        • ProfileType (summary)
        • Profile (summary)
        • Organization (summary)
        • Person (summary)
      • Content
        • Blocks
          • Block kind Data
          • Block kind HTML
          • Block kind Image
          • Block kind Question
          • Block kind Quote
          • Block kind Related Contents
          • Block kind Richtext
          • Block kind Slideshow
          • Block kind Video
        • Author (summary)
        • Content Template (summary)
        • Content Block
        • Content Block Template (summary)
        • Content
        • Content (summary)
      • Media
        • Announcement
        • Announcement (summary)
        • Menu
        • Menu Item
        • Media Block (summary)
        • Media BlockConfiguration (summary)
        • Media Section
        • Media Section (summary)
        • Topic (summary)
        • Webpage
        • Webpage (summary)
        • Media
      • OauthProviderSummary
    • Common
      • Visual
        • Image
        • Slideshow
        • Video
      • PagingMeta
      • Metadata
      • LocalesMetadata
      • Visual
      • Category
      • Category (summary)
  1. Contents

Content by id

GET
https:/omerlo.com/api/media/v1/contents/{content_id}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Header Params

Responses

🟢200Success
application/json
Body

🟠400Missing x-omerlo header
🟠401Authorization
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https/omerlo.com/api/media/v1/contents/{{content_id}}' \
--header 'x-omerlo-media-id: {{omerlo_media_id}}' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "data": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
        "title_html": "string",
        "title_text": "string",
        "lead_html": "string",
        "lead_text": "string",
        "subtitle_html": "string",
        "subtitle_text": "string",
        "canonical_domain": "string",
        "canonical_url": "string",
        "visibility": "free",
        "show_published_at": true,
        "published_at": "2019-08-24T14:15:22Z",
        "author_ids": [
            "497f6eca-6276-4993-bfeb-53cbbbba6f08"
        ],
        "category_ids": [
            "497f6eca-6276-4993-bfeb-53cbbbba6f08"
        ],
        "visual": {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "type": "image",
            "url": "http://example.com",
            "gravity": "center",
            "credit": "string",
            "caption_html": "string",
            "caption_text": "string"
        },
        "seo": {
            "title": "string",
            "description": "string"
        },
        "metadata": [
            {
                "key": "string",
                "value": "string"
            }
        ],
        "blocks": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "kind": "data",
                "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
                "visual": {
                    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                    "type": "image",
                    "url": "http://example.com",
                    "gravity": "center",
                    "credit": "string",
                    "caption_html": "string",
                    "caption_text": "string"
                },
                "content_type": "csv",
                "data": "string"
            }
        ],
        "meta": {
            "locales": {
                "current": "string",
                "available": [
                    "string"
                ]
            }
        },
        "updated_at": "2019-08-24T14:15:22Z"
    },
    "assocs": {
        "categories": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "name": "string",
                "svg_icon": "string",
                "meta": {
                    "locales": {
                        "current": "string",
                        "available": [
                            "string"
                        ]
                    }
                },
                "updated_at": "2019-08-24T14:15:22Z"
            }
        ],
        "content_block_templates": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "key": "string",
                "visual": {
                    "allowed_types": [
                        "none"
                    ],
                    "is_enabled": true
                }
            }
        ],
        "content_templates": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "key": "string",
                "enabled_fields": [
                    "title_html"
                ],
                "metadata": [
                    {
                        "key": "string",
                        "value": "string"
                    }
                ],
                "meta": {
                    "locales": {
                        "current": "string",
                        "available": [
                            "string"
                        ]
                    }
                },
                "updated_at": "2019-08-24T14:15:22Z"
            }
        ],
        "contents": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
                "title_html": "string",
                "title_text": "string",
                "lead_html": "string",
                "lead_text": "string",
                "subtitle_html": "string",
                "subtitle_text": "string",
                "canonical_domain": "string",
                "canonical_url": "string",
                "visibility": "free",
                "show_published_at": true,
                "published_at": "2019-08-24T14:15:22Z",
                "author_ids": [
                    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
                ],
                "category_ids": [
                    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
                ],
                "visual": {
                    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                    "type": "image",
                    "url": "http://example.com",
                    "gravity": "center",
                    "credit": "string",
                    "caption_html": "string",
                    "caption_text": "string"
                },
                "meta": {
                    "locales": {
                        "current": "string",
                        "available": [
                            "string"
                        ]
                    }
                },
                "updated_at": "2019-08-24T14:15:22Z"
            }
        ],
        "profile_types": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "kind": "event",
                "key": "string",
                "name": "string",
                "meta": {
                    "locales": {
                        "current": "string",
                        "available": [
                            "string"
                        ]
                    }
                },
                "updated_at": "2019-08-24T14:15:22Z"
            }
        ],
        "profiles": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "profile_type_id": "fcb02d6f-d919-45dd-b606-b0bf8279ebd8",
                "kind": "person",
                "first_name": "string",
                "last_name": "string",
                "other_name": "string",
                "pronoun": "string",
                "summary_html": "string",
                "summary_text": "string",
                "profile_image_url": "http://example.com",
                "category_ids": [
                    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
                ],
                "meta": {
                    "locales": {
                        "current": "string",
                        "available": [
                            "string"
                        ]
                    }
                },
                "updated_at": "2019-08-24T14:15:22Z"
            }
        ]
    }
}
Previous
Paginated Contents
Next
Register a device
Built with