Get an Entry

Entries are used to manage and display content on your website. By retrieving entries via the API, you can dynamically populate your website's pages with content managed through the Cycle.

To get a specific entry, send a GET request to: https://cyclecms.com/api/v1/websites/:website_slug/:environment_name/entries/:entry_slug

Replace the :website_slug, :environment_name and :entry_slug with the appropriate values.

Slugs are auto-generated based on the Entry name. 

  • slug: The unique identifier for the entry.
  • metadata: Contains information about the entry, such as its name, description, and timestamps for creation and publication.
  • content: The actual content of the entry, organized by field. Each field has a value and a field_type, which indicates the type of content (e.g., text, URL, image) (the field_type is determined by the Entry Template).

Here's an example response: 
{
  "entry": {
    "slug": "hero-graphic",
    "metadata": {
      "name": "Hero Graphic",
      "description": "",
      "created_at": "2024-02-29T14:42:34.894-08:00",
      "published_at": null
    },
    "content": {
      "alt": {
        "value": "Road to ES3",
        "field_type": "text"
      },
      "url": {
        "value": "",
        "field_type": "url"
      },
      "image": {
        "name": "APJ SCRIPT1.PNG",
        "sizes": {
            "large": "https://assets.cyclecms.com/ozepRVMxV3Fmj5rZtM5HbU2wBsbl0ygwxOmUSthZqa8/rs:fit:1920:1920/plain/s3://cyclecms/1y2otfwqlerqvx9641egkni3fhf0",
            "small": "https://assets.cyclecms.com/s9yREi3M6ZT57pN5L2NrugEsgDL0v5hvq7UFKxdZ1EQ/rs:fit:480:480/plain/s3://cyclecms/1y2otfwqlerqvx9641egkni3fhf0",
            "medium": "https://assets.cyclecms.com/_7FK7r5srmpIclaGmKVMKqHSMxCFAOrXR2esVzZ1m9k/rs:fit:1024:1024/plain/s3://cyclecms/1y2otfwqlerqvx9641egkni3fhf0",
            "original": "https://assets.cyclecms.com/ewbUtxJ9KKw5JtMm9nnRoBpySKDJYnEY0cbBYPHZzYE/plain/s3://cyclecms/1y2otfwqlerqvx9641egkni3fhf0",
            "thumbnail": "https://assets.cyclecms.com/kyTbHdH8O_edDpKae8Nhm4MEQRBVA8-zO6bdc05v6uU/rs:fill:320:320/plain/s3://cyclecms/1y2otfwqlerqvx9641egkni3fhf0"
        },
        "value": "7",
        "field_type": "image"
      }
    }
  }
}