API reference/Collections
Get a record
Try itOne record, its values (prices in cents) and its page on the live site.
GET
/api/v1/sites/{site_id}/collections/{collection_id}/records/{record_id}Authentication
An API key as Authorization: Bearer or x-api-key. It needs the collections:read scope — read content collections and their records.
collections:readRead onlyMCP tool: get_collection_record
Parameters
Named placeholders go in the path; the rest in the query string.
site_idstringPath · required- The site's id.1 to 100 characters
collection_idstringPath · required- The collection's id.1 to 100 characters
record_idstringPath · required- The record's id.1 to 100 characters
Response
200 with JSON on success (schema on the right). Errors use the standard envelope.
curl -X GET 'https://websites.workflowcorp.com/api/v1/sites/SITE_ID/collections/COLLECTION_ID/records/RECORD_ID' \
-H "Authorization: Bearer $WEBSITEBUDDY_API_KEY"{
"site_id": "SITE_ID",
"collection_id": "COLLECTION_ID",
"record_id": "RECORD_ID"
}{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"collection_id": {
"type": "string"
},
"title": {
"type": "string"
},
"slug": {
"type": "string"
},
"summary": {
"type": "string"
},
"body": {
"type": "string",
"description": "Plain text (blank line = new paragraph)."
},
"image_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"image_alt": {
"type": "string"
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"description": "By field key; price fields in integer cents."
},
"values_words": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
},
"description": "The same values as visitors read them (\"$489,000\")."
},
"link_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"link_label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"position": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"published": {
"type": "boolean"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The record's page on the live site — null while hidden."
},
"is_sample": {
"type": "boolean"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
}
},
"required": [
"id",
"collection_id",
"title",
"slug",
"summary",
"body",
"image_url",
"image_alt",
"values",
"values_words",
"link_url",
"link_label",
"position",
"published",
"url",
"is_sample",
"created_at",
"updated_at"
],
"additionalProperties": false
}