Get a changelog by ID
client.changelogs.retrieve(stringid, ChangelogRetrieveParams { featurebaseVersion } params?, RequestOptionsoptions?): Changelog { id, allowedSegmentIds, availableLocales, 21 more }
GET/v2/changelogs/{id}
Retrieves a single changelog by its unique identifier or slug.
Returns the full changelog object including:
- Title and content (in HTML and markdown formats)
- Featured image
- Publication date
- Categories
- Comment count
- Email notification status
Localization
The changelog content is returned in the organization’s default locale. If the changelog doesn’t exist in the default locale, the first available locale is used.
State
Both published (live) and draft changelogs can be retrieved.
The state field indicates the current publication status.
Get a changelog by ID
import Featurebase from 'featurebase-node';
const client = new Featurebase({
apiKey: process.env['FEATUREBASE_API_KEY'], // This is the default and can be omitted
});
const changelog = await client.changelogs.retrieve('507f1f77bcf86cd799439011');
console.log(changelog.id);{
"id": "6457e3ff70afca5d8c27dccc",
"allowedSegmentIds": [
"string"
],
"availableLocales": [
"en",
"de",
"fr"
],
"categories": [
{
"id": "6438a1efda3640f8feb72121",
"name": "New Features",
"roles": [
"string"
]
}
],
"commentCount": 2,
"content": "<p>Your changelog content in HTML format.</p>",
"createdAt": "2023-12-12T00:00:00.000Z",
"date": "2023-05-07T12:59:59.000Z",
"emailSentToSubscribers": true,
"featuredImage": "https://cdn.example.com/images/feature.png",
"isDraftDiffersFromLive": false,
"isPublished": true,
"locale": "en",
"markdownContent": "Your changelog content in markdown format.",
"notifications": {
"foo": {
"scheduledDate": "2024-01-15T12:00:00.000Z",
"emailSent": true,
"hideFromBoardAndWidgets": false,
"sendEmailNotification": true
}
},
"object": "changelog",
"organization": "myorg",
"publishedLocales": [
"en",
"de"
],
"slug": "your-awesome-changelog",
"slugs": {
"en": "your-awesome-changelog",
"de": "dein-tolles-changelog"
},
"state": "live",
"title": "Your awesome changelog!",
"updatedAt": "2023-12-13T00:00:00.000Z",
"url": "https://myorg.featurebase.app/en/changelog/your-awesome-changelog"
}Returns Examples
{
"id": "6457e3ff70afca5d8c27dccc",
"allowedSegmentIds": [
"string"
],
"availableLocales": [
"en",
"de",
"fr"
],
"categories": [
{
"id": "6438a1efda3640f8feb72121",
"name": "New Features",
"roles": [
"string"
]
}
],
"commentCount": 2,
"content": "<p>Your changelog content in HTML format.</p>",
"createdAt": "2023-12-12T00:00:00.000Z",
"date": "2023-05-07T12:59:59.000Z",
"emailSentToSubscribers": true,
"featuredImage": "https://cdn.example.com/images/feature.png",
"isDraftDiffersFromLive": false,
"isPublished": true,
"locale": "en",
"markdownContent": "Your changelog content in markdown format.",
"notifications": {
"foo": {
"scheduledDate": "2024-01-15T12:00:00.000Z",
"emailSent": true,
"hideFromBoardAndWidgets": false,
"sendEmailNotification": true
}
},
"object": "changelog",
"organization": "myorg",
"publishedLocales": [
"en",
"de"
],
"slug": "your-awesome-changelog",
"slugs": {
"en": "your-awesome-changelog",
"de": "dein-tolles-changelog"
},
"state": "live",
"title": "Your awesome changelog!",
"updatedAt": "2023-12-13T00:00:00.000Z",
"url": "https://myorg.featurebase.app/en/changelog/your-awesome-changelog"
}