younifyd
Menu

Get Content By Id

Get a single content entry by ID

GET/content/{model}/{id}

Use it in a workflow

  1. Add a step and choose the Builder.io connector.
  2. Pick the Get Content By Id action (under Content API).
  3. Fill in the fields below, then reference the result from later steps as {{getContentById.response.data}}.

Request

Path parameters

modelstringrequired

The name of the Builder.io content model.

idstringrequired

The unique ID of the content entry.

Query parameters

apiKeystringrequired

Your public Builder.io API key.

enrichboolean

When true, enriches referenced content inline.

Default false

Response

Returns 200 with an object. Read it in later steps with {{getContentById.response.data.<field>}}.

@versioninteger

Schema version of the content entry.

idstring

Unique identifier for the content entry.

namestring

Human-readable name of the content entry.

publishedstring

Publication status of the content entry.

One ofpublisheddraftarchived

modelIdstring

The model type identifier for this content.

prioritynumber

Sort priority used when multiple entries match a query.

firstPublishedinteger

Unix timestamp (milliseconds) when first published.

lastUpdatedinteger

Unix timestamp (milliseconds) of the last update.

startDateinteger

Unix timestamp (milliseconds) after which the entry becomes active. Used for scheduled publishing.

endDateinteger

Unix timestamp (milliseconds) after which the entry is no longer served.

variationsobject

Map of variation IDs to variation data for A/B testing.

testVariationIdstring

ID of the winning or current test variation.

testVariationNamestring

Name of the current test variation.

dataobject

The model-specific field data for this content entry. Structure varies by model definition.

blocksarray<object>12 fields

Array of Builder visual editor block elements.

titlestring

Page or content title field.

urlstring

URL path associated with this content entry.

json
{
  "@version": 2,
  "id": "abc123def456abc123def456abc12345",
  "name": "Home Page",
  "published": "published",
  "modelId": "page",
  "priority": 0,
  "firstPublished": 1700000000000,
  "lastUpdated": 1717000000000,
  "startDate": 1717000000000,
  "endDate": 1719600000000,
  "variations": {},
  "testVariationId": "string"
}

Need more? See the Builder.io guide for connection setup and behaviour shared by every action.

Was this page helpful?