Skip to content
Andesine

Get published entry content

get

Returns content from a publishing channel or a specific available snapshot. Use channel or snapshotID, never both. The default channel is published. Validates saved content against its recorded schema and returns schema metadata. expectedSchemaHash must match that revision; schema-less content cannot match it. Validation and hash checks run before ETag handling. Supports ETag and If-None-Match; a match returns 304 without a body.

Required API key permissions: read:publishing. Write permissions also grant read access for the same resource.

Authentication

apiKeyhttp, bearer, Andesine API key

Use an Andesine API key as a Bearer token

oauthhttp, bearer, Andesine OAuth access token

Use an OAuth access token with andesine:api scope. Send x-workspace-id for workspace operations. Current user permissions apply.

Query parameters

entryIDstring
pathstring

Decoded content path, such as /Docs/Page or coll_ID/Page. Names are case-sensitive. Do not URL-encode names before passing them to the SDK.

slugPathstring

Decoded derived slug path, such as /docs/getting-started or coll_ID/getting-started. Use the returned slugPath without URL encoding.

expectedSchemaHashstring

Hash of the effective schema definition

channelPublishingChannelCode

Publishing channel, defaults to published

snapshotIDstring

Historical publication snapshot to read

contentFormatstring

Content format of the response; mdx also returns the content as MDX in mdx

One of: "json", "mdx"Default: "json"
x-workspace-idstring

Required for OAuth: ID of the workspace to access. API keys use their own workspace.

Responses

200OKapplication/json

Headers

Cache-Control*string
ETag*string
Bodyobject
15 fields
id*string
path*string
slugPath*string
collectionID*any of
Options

Any of

Option 1string
Option 2null
schema*any of
Options

Any of

ContentSchemaMetadataobject
revisionID*string

Recorded effective schema revision

hash*string

Hash of the effective schema definition

Option 2null
channel*string

Publishing channel used for delivery

snapshotID*string

Publication snapshot used for delivery

expiresAt*any of

Expiry time for a retained historical snapshot

Options

Any of

Option 1string (date-time)
Option 2null
name*string

Entry name stored in the published version

version*EntryVersionSummary
10 fields
id*string

ID of the version

entryID*string

ID of the versioned entry

entryName*string

Entry name stored in the version

hash*string

Hash of the version content

name*any of

Optional name of the version

Options

Any of

Option 1string
Option 2null
reason*string

Reason why the version was created

One of: "auto", "manual", "revert", "schema-migration", "import"
sourceVersionID*any of

Source version used for a revert

Options

Any of

Option 1string
Option 2null
contributorIDs*array of string

Memberships that contributed to the version

createdAt*string

Time when the version was created

updatedAt*string

Time when the version name was last updated

assets*array of PublishedAsset
7 fields
assetID*string
variant*AssetVariant
One of: "thumbnail", "display", "source"
format*AssetFileFormat
One of: "jpeg", "png", "webp"
width*number
height*number
byteSize*number
url*string
content*ContentNode
5 fields
type*string
attrsobject
1 field
{key}any
contentarray of ContentNode
Repeats ContentNode
marksarray of ContentMark
2 fields
type*string
attrsobject
1 field
{key}any
textstring
mdxstring

Content as MDX: the title as H1, properties as elements in place, fragments as elements, and images as asset:; frontmatter properties are also read, and entries.update and versions.create import image URLs

fragments*object
1 field
{key}EntryFragment
2 fields
name*string

Source fragment name

content*ContentNode
5 fields
type*string
attrsobject
1 field
{key}any
contentarray of ContentNode
Repeats ContentNode
marksarray of ContentMark
2 fields
type*string
attrsobject
1 field
{key}any
textstring
properties*object
1 field
{key}EntryProperty
3 fields
name*string

Source property name

type*string

Property type

One of: "text", "number", "checkbox", "date", "url", "select", "multi-select"
value*EntryPropertyValue
Options

Any of

Option 1string
Option 2number
Option 3boolean
Option 4array of string
Option 5null
304Not Modified

Headers

Cache-Control*string
ETag*string
400Bad Requestapplication/json
Bodyone of
Options

One of

Option 1object
defined*constant
Value: true
code*constant
Value: "BAD_REQUEST"
status*constant
Value: 400
message*string
Default: "Bad Request"
dataValidationErrorData
2 fields
hintsarray of string

Suggested next steps. Wording can change; use error codes and structured data for program logic.

issuesarray of ValidationIssue
3 fields
message*string
codestring
patharray of any of
Options

Any of

Option 1string
Option 2number
Option 3object
key*any of
Options

Any of

Option 1string
Option 2number
Option 2object
defined*constant
Value: false
code*string
status*number
message*string
dataany
401Unauthorizedapplication/json
Bodyone of
Options

One of

Option 1object
defined*constant
Value: true
code*constant
Value: "UNAUTHORIZED"
status*constant
Value: 401
message*string
Default: "Unauthorized"
dataErrorData
1 field
hintsarray of string

Suggested next steps. Wording can change; use error codes and structured data for program logic.

Option 2object
defined*constant
Value: false
code*string
status*number
message*string
dataany
403Forbiddenapplication/json
Bodyone of
Options

One of

Option 1object
defined*constant
Value: true
code*constant
Value: "FORBIDDEN"
status*constant
Value: 403
message*string
Default: "Forbidden"
dataForbiddenErrorData
4 fields
hintsarray of string

Suggested next steps. Wording can change; use error codes and structured data for program logic.

missingPermissionsarray of string
requiredPlanconstant
Value: "pro"
actionstring

The requested action that was denied

Option 2object
defined*constant
Value: false
code*string
status*number
message*string
dataany
404Not Foundapplication/json
Bodyone of
Options

One of

Option 1object
defined*constant
Value: true
code*constant
Value: "NOT_FOUND"
status*constant
Value: 404
message*string
Default: "Not Found"
dataErrorData
1 field
hintsarray of string

Suggested next steps. Wording can change; use error codes and structured data for program logic.

Option 2object
defined*constant
Value: false
code*string
status*number
message*string
dataany
409Conflictapplication/json
Bodyone of
Options

One of

Option 1object
defined*constant
Value: true
code*constant
Value: "CONFLICT"
status*constant
Value: 409
message*string
Default: "Conflict"
dataErrorData
1 field
hintsarray of string

Suggested next steps. Wording can change; use error codes and structured data for program logic.

Option 2object
defined*constant
Value: true
code*constant
Value: "CONTENT_SCHEMA_MISMATCH"
status*constant
Value: 409
message*string
Default: "CONTENT_SCHEMA_MISMATCH"
data*ContentSchemaMismatchErrorData
3 fields
hintsarray of string

Suggested next steps. Wording can change; use error codes and structured data for program logic.

expectedHash*string

Hash of the effective schema definition

actualSchema*any of
Options

Any of

ContentSchemaMetadataobject
revisionID*string

Recorded effective schema revision

hash*string

Hash of the effective schema definition

Option 2null
Option 3object
defined*constant
Value: false
code*string
status*number
message*string
dataany
429Too Many Requestsapplication/json
Bodyone of
Options

One of

Option 1object
defined*constant
Value: true
code*constant
Value: "TOO_MANY_REQUESTS"
status*constant
Value: 429
message*string
Default: "Too Many Requests"
dataRateLimitErrorData
3 fields
hintsarray of string

Suggested next steps. Wording can change; use error codes and structured data for program logic.

limitstring

The limit that was reached: a short-term rate limit, or a monthly API call, AI credit, or spending limit

One of: "rate", "api-calls", "ai-credits", "spending"
retryAfterSecondsnumber

Minimum delay before another attempt, in seconds. Also sent in Retry-After.

Option 2object
defined*constant
Value: false
code*string
status*number
message*string
dataany
500Internal Server Errorapplication/json
Bodyone of
Options

One of

Option 1object
defined*constant
Value: true
code*constant
Value: "INTERNAL_SERVER_ERROR"
status*constant
Value: 500
message*string
Default: "Internal Server Error"
dataErrorData
1 field
hintsarray of string

Suggested next steps. Wording can change; use error codes and structured data for program logic.

Option 2object
defined*constant
Value: true
code*constant
Value: "CONTENT_SCHEMA_INVALID"
status*constant
Value: 500
message*string
Default: "CONTENT_SCHEMA_INVALID"
data*ContentSchemaInvalidErrorData
5 fields
hintsarray of string

Suggested next steps. Wording can change; use error codes and structured data for program logic.

entryIDstring
versionIDstring
revisionID*any of
Options

Any of

Option 1string
Option 2null
issues*array of ContentSchemaIssue
4 fields
code*string
One of: "invalid_schema", "invalid_structure", "missing_field", "unknown_field", "duplicate_field", "field_kind_mismatch", "field_key_mismatch", "property_type_mismatch", "invalid_property_value", "invalid_field_options", "invalid_allowed_blocks", "invalid_fragment_content"
message*string
path*array of any of
Options

Any of

Option 1string
Option 2number
fieldIDstring
Option 3object
defined*constant
Value: false
code*string
status*number
message*string
dataany
503Service Unavailableapplication/json
Bodyone of
Options

One of

Option 1object
defined*constant
Value: true
code*constant
Value: "SERVICE_UNAVAILABLE"
status*constant
Value: 503
message*string
Default: "Service Unavailable"
dataErrorData
1 field
hintsarray of string

Suggested next steps. Wording can change; use error codes and structured data for program logic.

Option 2object
defined*constant
Value: false
code*string
status*number
message*string
dataany
AndesinePowered byPages