curl -X POST \
'https://api.appcharge.com/v1/portal-content' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"title": "Welcome to Our Game",
"subTitle": "Everything you need to know",
"bodyText": "This is the main content body with detailed information about getting started...",
"headerImage": "https://cdn.example.com/images/header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["tutorial", "beginner"],
"state": "visible",
"contentType": "article",
"slug": "welcome-to-our-game",
"visibility": "public",
"tag": "spring2025",
"translations": [
{
"isoCode": "fr-FR",
"title": "Bienvenue dans notre jeu",
"subTitle": "Tout ce que vous devez savoir",
"bodyText": "Ceci est le contenu principal de l'\''article en français...",
"headerImage": "https://cdn.example.com/images/header-fr.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["tutoriel", "débutant"]
}
],
"pages": ["6850249eb5bd5c59b9bab7e2", "692eb70d0293e07ab4895518"]
}'
curl -X POST \
'https://api.appcharge.com/v1/portal-content' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"title": "New Feature Release",
"subTitle": "Check out the latest updates",
"bodyText": "We are excited to announce new features...",
"headerImage": "https://cdn.example.com/images/news-header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["news", "updates"],
"contentType": "news",
"visibility": "public",
"tag": "spring2025"
}'
curl -X POST \
'https://api.appcharge.com/v1/portal-content' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"title": "Halloween Event Announcement",
"subTitle": "Special event coming soon",
"bodyText": "Get ready for our spooky Halloween event...",
"headerImage": "https://cdn.example.com/images/halloween-header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["event", "halloween"],
"state": "scheduled",
"contentType": "article",
"publishDate": "2025-10-31T00:00:00.000Z",
"visibility": "public",
"tag": "halloween2025",
"pages": ["6850249eb5bd5c59b9bab7e2"]
}'
{
"id": "507f1f77bcf86cd799439011",
"title": "Welcome to Our Game",
"subTitle": "Everything you need to know",
"bodyText": "This is the main content body with detailed information...",
"headerImage": "https://cdn.example.com/images/header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["tutorial", "beginner"],
"state": "visible",
"contentType": "article",
"slug": "welcome-to-our-game",
"visibility": "public",
"tag": "spring2025",
"createdAt": "2025-10-20T10:30:00.000Z",
"updatedAt": "2025-10-20T10:30:00.000Z",
"translations": [
{
"isoCode": "fr-FR",
"title": "Bienvenue dans notre jeu",
"subTitle": "Tout ce que vous devez savoir",
"bodyText": "Ceci est le contenu principal de l'article en français...",
"headerImage": "https://cdn.example.com/images/header-fr.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["tutoriel", "débutant"]
}
],
"pages": [
{
"id": "6850249eb5bd5c59b9bab7e2",
"pageName": "FAQs"
},
{
"id": "692eb70d0293e07ab4895518",
"pageName": "Events"
}
]
}
{
"id": "507f1f77bcf86cd799439012",
"title": "New Feature Release",
"subTitle": "Check out the latest updates",
"bodyText": "We are excited to announce new features...",
"headerImage": "https://cdn.example.com/images/news-header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["news", "updates"],
"state": "hidden",
"contentType": "news",
"tag": "spring2025",
"visibility": "public",
"createdAt": "2025-10-20T10:35:00.000Z",
"updatedAt": "2025-10-20T10:35:00.000Z",
"translations": [],
"pages": []
}
{
"id": "507f1f77bcf86cd799439013",
"title": "Halloween Event Announcement",
"subTitle": "Special event coming soon",
"bodyText": "Get ready for our spooky Halloween event...",
"headerImage": "https://cdn.example.com/images/halloween-header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["event", "halloween"],
"state": "scheduled",
"contentType": "article",
"publishDate": "2025-10-31T00:00:00.000Z",
"slug": "halloween-event-announcement",
"visibility": "public",
"tag": "halloween2025",
"createdAt": "2025-10-20T10:40:00.000Z",
"updatedAt": "2025-10-20T10:40:00.000Z",
"translations": [],
"pages": [
{
"id": "6850249eb5bd5c59b9bab7e2",
"pageName": "FAQs"
}
]
}
{
"message": "BAD_REQUEST",
"requestUrl": "/v1/portal-content",
"body": "Invalid request body or validation error."
}
{
"message": "UNAUTHORIZED",
"requestUrl": "/v1/portal-content",
"body": "Invalid or missing publisher token."
}
{
"message": "CONFLICT",
"requestUrl": "/v1/portal-content",
"body": "Slug already exists."
}
{
"message": "INTERNAL_SERVER_ERROR",
"requestUrl": "/v1/portal-content",
"body": "Server error."
}
Create Content
Creates a new content item.
curl -X POST \
'https://api.appcharge.com/v1/portal-content' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"title": "Welcome to Our Game",
"subTitle": "Everything you need to know",
"bodyText": "This is the main content body with detailed information about getting started...",
"headerImage": "https://cdn.example.com/images/header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["tutorial", "beginner"],
"state": "visible",
"contentType": "article",
"slug": "welcome-to-our-game",
"visibility": "public",
"tag": "spring2025",
"translations": [
{
"isoCode": "fr-FR",
"title": "Bienvenue dans notre jeu",
"subTitle": "Tout ce que vous devez savoir",
"bodyText": "Ceci est le contenu principal de l'\''article en français...",
"headerImage": "https://cdn.example.com/images/header-fr.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["tutoriel", "débutant"]
}
],
"pages": ["6850249eb5bd5c59b9bab7e2", "692eb70d0293e07ab4895518"]
}'
curl -X POST \
'https://api.appcharge.com/v1/portal-content' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"title": "New Feature Release",
"subTitle": "Check out the latest updates",
"bodyText": "We are excited to announce new features...",
"headerImage": "https://cdn.example.com/images/news-header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["news", "updates"],
"contentType": "news",
"visibility": "public",
"tag": "spring2025"
}'
curl -X POST \
'https://api.appcharge.com/v1/portal-content' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"title": "Halloween Event Announcement",
"subTitle": "Special event coming soon",
"bodyText": "Get ready for our spooky Halloween event...",
"headerImage": "https://cdn.example.com/images/halloween-header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["event", "halloween"],
"state": "scheduled",
"contentType": "article",
"publishDate": "2025-10-31T00:00:00.000Z",
"visibility": "public",
"tag": "halloween2025",
"pages": ["6850249eb5bd5c59b9bab7e2"]
}'
{
"id": "507f1f77bcf86cd799439011",
"title": "Welcome to Our Game",
"subTitle": "Everything you need to know",
"bodyText": "This is the main content body with detailed information...",
"headerImage": "https://cdn.example.com/images/header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["tutorial", "beginner"],
"state": "visible",
"contentType": "article",
"slug": "welcome-to-our-game",
"visibility": "public",
"tag": "spring2025",
"createdAt": "2025-10-20T10:30:00.000Z",
"updatedAt": "2025-10-20T10:30:00.000Z",
"translations": [
{
"isoCode": "fr-FR",
"title": "Bienvenue dans notre jeu",
"subTitle": "Tout ce que vous devez savoir",
"bodyText": "Ceci est le contenu principal de l'article en français...",
"headerImage": "https://cdn.example.com/images/header-fr.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["tutoriel", "débutant"]
}
],
"pages": [
{
"id": "6850249eb5bd5c59b9bab7e2",
"pageName": "FAQs"
},
{
"id": "692eb70d0293e07ab4895518",
"pageName": "Events"
}
]
}
{
"id": "507f1f77bcf86cd799439012",
"title": "New Feature Release",
"subTitle": "Check out the latest updates",
"bodyText": "We are excited to announce new features...",
"headerImage": "https://cdn.example.com/images/news-header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["news", "updates"],
"state": "hidden",
"contentType": "news",
"tag": "spring2025",
"visibility": "public",
"createdAt": "2025-10-20T10:35:00.000Z",
"updatedAt": "2025-10-20T10:35:00.000Z",
"translations": [],
"pages": []
}
{
"id": "507f1f77bcf86cd799439013",
"title": "Halloween Event Announcement",
"subTitle": "Special event coming soon",
"bodyText": "Get ready for our spooky Halloween event...",
"headerImage": "https://cdn.example.com/images/halloween-header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["event", "halloween"],
"state": "scheduled",
"contentType": "article",
"publishDate": "2025-10-31T00:00:00.000Z",
"slug": "halloween-event-announcement",
"visibility": "public",
"tag": "halloween2025",
"createdAt": "2025-10-20T10:40:00.000Z",
"updatedAt": "2025-10-20T10:40:00.000Z",
"translations": [],
"pages": [
{
"id": "6850249eb5bd5c59b9bab7e2",
"pageName": "FAQs"
}
]
}
{
"message": "BAD_REQUEST",
"requestUrl": "/v1/portal-content",
"body": "Invalid request body or validation error."
}
{
"message": "UNAUTHORIZED",
"requestUrl": "/v1/portal-content",
"body": "Invalid or missing publisher token."
}
{
"message": "CONFLICT",
"requestUrl": "/v1/portal-content",
"body": "Slug already exists."
}
{
"message": "INTERNAL_SERVER_ERROR",
"requestUrl": "/v1/portal-content",
"body": "Server error."
}
curl -X POST \
'https://api.appcharge.com/v1/portal-content' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"title": "Welcome to Our Game",
"subTitle": "Everything you need to know",
"bodyText": "This is the main content body with detailed information about getting started...",
"headerImage": "https://cdn.example.com/images/header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["tutorial", "beginner"],
"state": "visible",
"contentType": "article",
"slug": "welcome-to-our-game",
"visibility": "public",
"tag": "spring2025",
"translations": [
{
"isoCode": "fr-FR",
"title": "Bienvenue dans notre jeu",
"subTitle": "Tout ce que vous devez savoir",
"bodyText": "Ceci est le contenu principal de l'\''article en français...",
"headerImage": "https://cdn.example.com/images/header-fr.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["tutoriel", "débutant"]
}
],
"pages": ["6850249eb5bd5c59b9bab7e2", "692eb70d0293e07ab4895518"]
}'
curl -X POST \
'https://api.appcharge.com/v1/portal-content' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"title": "New Feature Release",
"subTitle": "Check out the latest updates",
"bodyText": "We are excited to announce new features...",
"headerImage": "https://cdn.example.com/images/news-header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["news", "updates"],
"contentType": "news",
"visibility": "public",
"tag": "spring2025"
}'
curl -X POST \
'https://api.appcharge.com/v1/portal-content' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"title": "Halloween Event Announcement",
"subTitle": "Special event coming soon",
"bodyText": "Get ready for our spooky Halloween event...",
"headerImage": "https://cdn.example.com/images/halloween-header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["event", "halloween"],
"state": "scheduled",
"contentType": "article",
"publishDate": "2025-10-31T00:00:00.000Z",
"visibility": "public",
"tag": "halloween2025",
"pages": ["6850249eb5bd5c59b9bab7e2"]
}'
{
"id": "507f1f77bcf86cd799439011",
"title": "Welcome to Our Game",
"subTitle": "Everything you need to know",
"bodyText": "This is the main content body with detailed information...",
"headerImage": "https://cdn.example.com/images/header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["tutorial", "beginner"],
"state": "visible",
"contentType": "article",
"slug": "welcome-to-our-game",
"visibility": "public",
"tag": "spring2025",
"createdAt": "2025-10-20T10:30:00.000Z",
"updatedAt": "2025-10-20T10:30:00.000Z",
"translations": [
{
"isoCode": "fr-FR",
"title": "Bienvenue dans notre jeu",
"subTitle": "Tout ce que vous devez savoir",
"bodyText": "Ceci est le contenu principal de l'article en français...",
"headerImage": "https://cdn.example.com/images/header-fr.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["tutoriel", "débutant"]
}
],
"pages": [
{
"id": "6850249eb5bd5c59b9bab7e2",
"pageName": "FAQs"
},
{
"id": "692eb70d0293e07ab4895518",
"pageName": "Events"
}
]
}
{
"id": "507f1f77bcf86cd799439012",
"title": "New Feature Release",
"subTitle": "Check out the latest updates",
"bodyText": "We are excited to announce new features...",
"headerImage": "https://cdn.example.com/images/news-header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["news", "updates"],
"state": "hidden",
"contentType": "news",
"tag": "spring2025",
"visibility": "public",
"createdAt": "2025-10-20T10:35:00.000Z",
"updatedAt": "2025-10-20T10:35:00.000Z",
"translations": [],
"pages": []
}
{
"id": "507f1f77bcf86cd799439013",
"title": "Halloween Event Announcement",
"subTitle": "Special event coming soon",
"bodyText": "Get ready for our spooky Halloween event...",
"headerImage": "https://cdn.example.com/images/halloween-header.jpg",
"thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
"labels": ["event", "halloween"],
"state": "scheduled",
"contentType": "article",
"publishDate": "2025-10-31T00:00:00.000Z",
"slug": "halloween-event-announcement",
"visibility": "public",
"tag": "halloween2025",
"createdAt": "2025-10-20T10:40:00.000Z",
"updatedAt": "2025-10-20T10:40:00.000Z",
"translations": [],
"pages": [
{
"id": "6850249eb5bd5c59b9bab7e2",
"pageName": "FAQs"
}
]
}
{
"message": "BAD_REQUEST",
"requestUrl": "/v1/portal-content",
"body": "Invalid request body or validation error."
}
{
"message": "UNAUTHORIZED",
"requestUrl": "/v1/portal-content",
"body": "Invalid or missing publisher token."
}
{
"message": "CONFLICT",
"requestUrl": "/v1/portal-content",
"body": "Slug already exists."
}
{
"message": "INTERNAL_SERVER_ERROR",
"requestUrl": "/v1/portal-content",
"body": "Server error."
}
Headers
Publisher token.
Body
Content title.
"Welcome to Our Game"
Content header image URL. Can be an external link or the URL of an image from the Assets Library.
"https://cdn.example.com/images/header.jpg"
Content thumbnail image URL. Can be an external link or the URL of an image from the Assets Library.
"https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg"
Content type.
article, news "article"
Content description.
"Everything you need to know"
Content body text.
"This is the main content body with detailed information about getting started..."
List of labels associated with the content.
["tutorial", "beginner"]
Current state of the content.
visible, hidden, scheduled "visible"
Content publish date. Use for scheduling content.
"2025-10-20T00:00:00.000Z"
List of page IDs where this content will appear. The Page ID can be found in the Pages section of the Publisher Dashboard.
Note: If you don't pass this property, or if you assign the content to a page that doesn't exist, the content will be created but won't be displayed in the Game Portal.
[
"6850249eb5bd5c59b9bab7e2",
"692eb70d0293e07ab4895518"
]
Content slug. If not provided, this value is auto-generated.
"welcome-to-our-game"
Content visibility level.
public, private "public"
Internal tag for organizing your content. Not visible to players.
"spring2025"
List of translations for the content item. Each object represents a locale and its translations.
Note: You must first add the locale in the Publisher Dashboard before adding its translations.
Show child attributes
Show child attributes
Response
Content created successfully.
Content ID.
"507f1f77bcf86cd799439011"
Content title.
"Welcome to Our Game"
Content description.
"Everything you need to know"
Content body text.
"This is the main content body with detailed information..."
Content header image URL.
"https://cdn.example.com/images/header.jpg"
Content thumbnail image URL.
"https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg"
List of labels associated with the content.
["tutorial", "beginner"]
Current state of the content.
visible, hidden, scheduled "hidden"
Content type.
article, news "article"
Content publish date. Use for scheduling content.
"2025-10-20T00:00:00.000Z"
Content slug. If not provided, this value is auto-generated.
"welcome-to-our-game"
Content visibility level.
public, private "public"
Internal tag for organizing your content. Not visible to players.
"spring2025"
Created date.
"2025-10-15T10:30:00.000Z"
Updated date.
"2025-10-19T14:20:00.000Z"
List of translations for the content item. Each object represents a locale and its translations.
Show child attributes
Show child attributes
List of pages where this content appears.
Show child attributes
Show child attributes
[
{
"id": "68b0249eb5bd5c59b9bab7e2",
"pageName": "FAQs"
},
{
"id": "692eb70d0293e07ab4895518",
"pageName": "Events"
}
]
Was this page helpful?
