Programs are online courses: a priced program made of weeks, each week of days and each day of steps - text, a video, images. Buyers work through it in the site or the app, and their progress is kept.
Endpoints that need a token: the site owner creates it in their admin (Developers > API reference). AI assistants: how to ask the user for one.
27 endpoints in 5 parts: Program, Program Progress, Tracker, Tracker Progress, AI builder.
Like or unlike a program.
Needs the token of a signed-in user.
The ID of the program.
Returns the Program object.
curl -X PATCH 'http://www.allsport.bg/program-likes/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'{
"title": "Example",
"url": "example-item",
"static_url": "example-item",
"header": "example",
"body": "Text shown on the site.",
"medias": [
{
"media": "6543210fedcba98765432100",
"gcs_url": "example-item",
"gcs_480_30_url": "example-item",
"gcs_720_30_url": "example-item",
"gcs_1080_30_url": "example-item",
"duration": 1,
"vimeo_uri": "example",
"vimeo_picture": "example",
"vimeo_url": "example-item",
"youtube_url": "example-item",
"youtube_picture": "example",
"thumbnail": "example",
"_id": "6543210fedcba98765432100"
}
],
"video": "6543210fedcba98765432100",
"about_page": "6543210fedcba98765432100",
"weeks": [
{
"isCompleted": {},
"progress": {},
"title": "Example",
"days": [],
"_id": "6543210fedcba98765432100"
}
],
"suitability_price_plans": [
"6543210fedcba98765432101"
],
"isSuitable": false,
"price": 0,
"collection_id": "6543210fedcba98765432100",
"topics": [
{
"collection_id": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100"
}
],
"owner_id": "6543210fedcba98765432100",
"connected_account_owner_id": "6543210fedcba98765432100",
"ribbon": "example",
"striked": "example",
"isConsistent": false,
"isAcademic": true,
"wildcard_url": {},
"reviewed": false,
"approved": false,
"likes": [
"6543210fedcba98765432101"
],
"popup": {
"title": "Example",
"points": "example"
}
}Find a program by its address.
Works without a token; with a user token the answer is personal.
The program's URL slug, as in its address on the site.
curl -X GET 'http://www.allsport.bg/program-redirect/{url}?ionic=true'{
"zip_code": "example",
"city": "example",
"address": "example",
"contact": "example",
"email": "jane@example.com",
"google_app": "example",
"workhours": "example",
"logo": "6543210fedcba98765432100",
"site_name": "Example",
"domain": "example",
"stock_domain": "example",
"isMarket": false,
"forbidden_collections": [
{
"collection_id": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100"
}
],
"isInit": false,
"template": "0000",
"lang": "en",
"favicon": "6543210fedcba98765432100",
"cacheEnabled": false,
"has_completed_startup_prompt": true,
"gmb_location": "example",
"ga_property": "example",
"site_generated_at": "2026-11-04T12:00:00.000Z",
"admin_first_opened_at": "2026-11-04T12:00:00.000Z",
"admin_last_opened_at": "2026-11-04T12:00:00.000Z",
"allowedComponents": {
"services": false,
"products": false,
"blogposts": false,
"programs": false
}
}Save or unsave a program.
Needs the token of a signed-in user.
The ID of the program.
Returns the Program object.
curl -X PATCH 'http://www.allsport.bg/program-saves/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'{
"title": "Example",
"url": "example-item",
"static_url": "example-item",
"header": "example",
"body": "Text shown on the site.",
"medias": [
{
"media": "6543210fedcba98765432100",
"gcs_url": "example-item",
"gcs_480_30_url": "example-item",
"gcs_720_30_url": "example-item",
"gcs_1080_30_url": "example-item",
"duration": 1,
"vimeo_uri": "example",
"vimeo_picture": "example",
"vimeo_url": "example-item",
"youtube_url": "example-item",
"youtube_picture": "example",
"thumbnail": "example",
"_id": "6543210fedcba98765432100"
}
],
"video": "6543210fedcba98765432100",
"about_page": "6543210fedcba98765432100",
"weeks": [
{
"isCompleted": {},
"progress": {},
"title": "Example",
"days": [],
"_id": "6543210fedcba98765432100"
}
],
"suitability_price_plans": [
"6543210fedcba98765432101"
],
"isSuitable": false,
"price": 0,
"collection_id": "6543210fedcba98765432100",
"topics": [
{
"collection_id": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100"
}
],
"owner_id": "6543210fedcba98765432100",
"connected_account_owner_id": "6543210fedcba98765432100",
"ribbon": "example",
"striked": "example",
"isConsistent": false,
"isAcademic": true,
"wildcard_url": {},
"reviewed": false,
"approved": false,
"likes": [
"6543210fedcba98765432101"
],
"popup": {
"title": "Example",
"points": "example"
}
}Returns the site's programs, newest first unless a sort is given.
Needs a signed-in user whose plan grants access.
Only programs with this published.
Only programs with this completed.
The order of the results.
Only results in this collection.
How many results to skip - for paging.
Only programs with this where.
Returns a list of Program objects.
curl -X GET 'http://www.allsport.bg/programs?ionic=true&published=...&completed=...&sortBy=...' \ -H 'Authorization: Bearer <TOKEN>'
[
{
"title": "Example",
"url": "example-item",
"static_url": "example-item",
"header": "example",
"body": "Text shown on the site.",
"medias": [
{
"media": "6543210fedcba98765432100",
"gcs_url": "example-item",
"gcs_480_30_url": "example-item",
"gcs_720_30_url": "example-item",
"gcs_1080_30_url": "example-item",
"duration": 1,
"vimeo_uri": "example",
"vimeo_picture": "example",
"vimeo_url": "example-item",
"youtube_url": "example-item",
"youtube_picture": "example",
"thumbnail": "example",
"_id": "6543210fedcba98765432100"
}
],
"video": "6543210fedcba98765432100",
"about_page": "6543210fedcba98765432100",
"weeks": [
{
"isCompleted": {},
"progress": {},
"title": "Example",
"days": [],
"_id": "6543210fedcba98765432100"
}
],
"suitability_price_plans": [
"6543210fedcba98765432101"
],
"isSuitable": false,
"price": 0,
"collection_id": "6543210fedcba98765432100",
"topics": [
{
"collection_id": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100"
}
],
"owner_id": "6543210fedcba98765432100",
"connected_account_owner_id": "6543210fedcba98765432100",
"ribbon": "example",
"striked": "example",
"isConsistent": false,
"isAcademic": true,
"wildcard_url": {},
"reviewed": false,
"approved": false,
"likes": [
"6543210fedcba98765432101"
],
"popup": {
"title": "Example",
"points": "example"
}
}
]Create new program.
Needs the token of a signed-in user.
Name of the program, required.
The program's on behalf of.
Returns the Program object.
curl -X POST 'http://www.allsport.bg/programs?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "title": "...", "on_behalf_of": "..." }'{
"title": "Example",
"url": "example-item",
"static_url": "example-item",
"header": "example",
"body": "Text shown on the site.",
"medias": [
{
"media": "6543210fedcba98765432100",
"gcs_url": "example-item",
"gcs_480_30_url": "example-item",
"gcs_720_30_url": "example-item",
"gcs_1080_30_url": "example-item",
"duration": 1,
"vimeo_uri": "example",
"vimeo_picture": "example",
"vimeo_url": "example-item",
"youtube_url": "example-item",
"youtube_picture": "example",
"thumbnail": "example",
"_id": "6543210fedcba98765432100"
}
],
"video": "6543210fedcba98765432100",
"about_page": "6543210fedcba98765432100",
"weeks": [
{
"isCompleted": {},
"progress": {},
"title": "Example",
"days": [],
"_id": "6543210fedcba98765432100"
}
],
"suitability_price_plans": [
"6543210fedcba98765432101"
],
"isSuitable": false,
"price": 0,
"collection_id": "6543210fedcba98765432100",
"topics": [
{
"collection_id": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100"
}
],
"owner_id": "6543210fedcba98765432100",
"connected_account_owner_id": "6543210fedcba98765432100",
"ribbon": "example",
"striked": "example",
"isConsistent": false,
"isAcademic": true,
"wildcard_url": {},
"reviewed": false,
"approved": false,
"likes": [
"6543210fedcba98765432101"
],
"popup": {
"title": "Example",
"points": "example"
}
}Update Program by id.
Needs the token of a signed-in user.
The ID of the program.
The program's converted price.
Returns the Program object.
curl -X PATCH 'http://www.allsport.bg/programs/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "convertedPrice": "..." }'{
"title": "Example",
"url": "example-item",
"static_url": "example-item",
"header": "example",
"body": "Text shown on the site.",
"medias": [
{
"media": "6543210fedcba98765432100",
"gcs_url": "example-item",
"gcs_480_30_url": "example-item",
"gcs_720_30_url": "example-item",
"gcs_1080_30_url": "example-item",
"duration": 1,
"vimeo_uri": "example",
"vimeo_picture": "example",
"vimeo_url": "example-item",
"youtube_url": "example-item",
"youtube_picture": "example",
"thumbnail": "example",
"_id": "6543210fedcba98765432100"
}
],
"video": "6543210fedcba98765432100",
"about_page": "6543210fedcba98765432100",
"weeks": [
{
"isCompleted": {},
"progress": {},
"title": "Example",
"days": [],
"_id": "6543210fedcba98765432100"
}
],
"suitability_price_plans": [
"6543210fedcba98765432101"
],
"isSuitable": false,
"price": 0,
"collection_id": "6543210fedcba98765432100",
"topics": [
{
"collection_id": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100"
}
],
"owner_id": "6543210fedcba98765432100",
"connected_account_owner_id": "6543210fedcba98765432100",
"ribbon": "example",
"striked": "example",
"isConsistent": false,
"isAcademic": true,
"wildcard_url": {},
"reviewed": false,
"approved": false,
"likes": [
"6543210fedcba98765432101"
],
"popup": {
"title": "Example",
"points": "example"
}
}Delete Program record by id.
Needs the token of a signed-in user.
The ID of the program.
Returns an empty answer on success.
curl -X DELETE 'http://www.allsport.bg/programs/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'Returns one program, found by its URL slug.
Pages limited to some users check the token when one is sent.
The program's URL slug, as in its address on the site.
Returns the Program object.
curl -X GET 'http://www.allsport.bg/programs/{url}?ionic=true'{
"title": "Example",
"url": "example-item",
"static_url": "example-item",
"header": "example",
"body": "Text shown on the site.",
"medias": [
{
"media": "6543210fedcba98765432100",
"gcs_url": "example-item",
"gcs_480_30_url": "example-item",
"gcs_720_30_url": "example-item",
"gcs_1080_30_url": "example-item",
"duration": 1,
"vimeo_uri": "example",
"vimeo_picture": "example",
"vimeo_url": "example-item",
"youtube_url": "example-item",
"youtube_picture": "example",
"thumbnail": "example",
"_id": "6543210fedcba98765432100"
}
],
"video": "6543210fedcba98765432100",
"about_page": "6543210fedcba98765432100",
"weeks": [
{
"isCompleted": {},
"progress": {},
"title": "Example",
"days": [],
"_id": "6543210fedcba98765432100"
}
],
"suitability_price_plans": [
"6543210fedcba98765432101"
],
"isSuitable": false,
"price": 0,
"collection_id": "6543210fedcba98765432100",
"topics": [
{
"collection_id": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100"
}
],
"owner_id": "6543210fedcba98765432100",
"connected_account_owner_id": "6543210fedcba98765432100",
"ribbon": "example",
"striked": "example",
"isConsistent": false,
"isAcademic": true,
"wildcard_url": {},
"reviewed": false,
"approved": false,
"likes": [
"6543210fedcba98765432101"
],
"popup": {
"title": "Example",
"points": "example"
}
}Returns the program progress.
Public - no token needed.
Returns the ProgramProgress object.
curl -X GET 'http://www.allsport.bg/program-progress?ionic=true'
{
"program": "6543210fedcba98765432100",
"user": "6543210fedcba98765432100",
"no_steps": 1,
"is_completed": false,
"weeks_completed": [
"example"
],
"days_completed": [
"example"
],
"steps_completed": [
"example"
],
"selectedWeek": {},
"selectedWeekIndex": {},
"selectedDay": {},
"selectedDayIndex": {},
"selectedStep": {},
"selectedStepIndex": {},
"about_section": {},
"selected": false,
"percentage": {},
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z"
}Create new program_progress.
Needs the token of a signed-in user.
The program - the ID of a program.
Returns the ProgramProgress object.
curl -X POST 'http://www.allsport.bg/program-progress?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "program": "..." }'{
"program": "6543210fedcba98765432100",
"user": "6543210fedcba98765432100",
"no_steps": 1,
"is_completed": false,
"weeks_completed": [
"example"
],
"days_completed": [
"example"
],
"steps_completed": [
"example"
],
"selectedWeek": {},
"selectedWeekIndex": {},
"selectedDay": {},
"selectedDayIndex": {},
"selectedStep": {},
"selectedStepIndex": {},
"about_section": {},
"selected": false,
"percentage": {},
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z"
}Returns one program progress, found by its ID.
Works without a token; with a user token the answer is personal.
The ID of the program progress.
Only program progresses with this week.
Only program progresses with this day.
Only program progresses with this step.
Returns the ProgramProgress object.
curl -X GET 'http://www.allsport.bg/program-progress/{id}?ionic=true&week=...&day=...&step=...' \
-H 'Authorization: Bearer <TOKEN>'{
"program": "6543210fedcba98765432100",
"user": "6543210fedcba98765432100",
"no_steps": 1,
"is_completed": false,
"weeks_completed": [
"example"
],
"days_completed": [
"example"
],
"steps_completed": [
"example"
],
"selectedWeek": {},
"selectedWeekIndex": {},
"selectedDay": {},
"selectedDayIndex": {},
"selectedStep": {},
"selectedStepIndex": {},
"about_section": {},
"selected": false,
"percentage": {},
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z"
}Update ProgramProgress by id.
Needs the token of a signed-in user.
The ID of the program progress.
The program progress's concatinated progress.
The program progress's is completed.
The program progress's split.
The program progress's progress.
Returns the ProgramProgress object.
curl -X PATCH 'http://www.allsport.bg/program-progress/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "concatinated_progress": "...", "isCompleted": "...", "split": "...", "progress": "..." }'{
"program": "6543210fedcba98765432100",
"user": "6543210fedcba98765432100",
"no_steps": 1,
"is_completed": false,
"weeks_completed": [
"example"
],
"days_completed": [
"example"
],
"steps_completed": [
"example"
],
"selectedWeek": {},
"selectedWeekIndex": {},
"selectedDay": {},
"selectedDayIndex": {},
"selectedStep": {},
"selectedStepIndex": {},
"about_section": {},
"selected": false,
"percentage": {},
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z"
}Delete ProgramProgress record by id.
Needs the token of a signed-in user.
The ID of the program progress.
Returns an empty answer on success.
curl -X DELETE 'http://www.allsport.bg/program-progress/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'Returns the tracker.
Works without a token; with a user token the answer is personal.
Returns the Tracker object.
curl -X GET 'http://www.allsport.bg/tracker?ionic=true' \ -H 'Authorization: Bearer <TOKEN>'
{
"title": "Example",
"unit": "example",
"score_direction": "up",
"additional_fields": [
{
"label": "Example",
"type": "example",
"options": [],
"_id": "6543210fedcba98765432100"
}
],
"body": "Text shown on the site.",
"video": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z",
"goal_definition": {
"label": "Example",
"type": "example",
"options": "example"
}
}Create new tracker.
Needs a site admin token.
Returns the Tracker object.
curl -X POST 'http://www.allsport.bg/tracker?ionic=true' \ -H 'Authorization: Bearer <TOKEN>'
{
"title": "Example",
"unit": "example",
"score_direction": "up",
"additional_fields": [
{
"label": "Example",
"type": "example",
"options": [],
"_id": "6543210fedcba98765432100"
}
],
"body": "Text shown on the site.",
"video": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z",
"goal_definition": {
"label": "Example",
"type": "example",
"options": "example"
}
}Returns one tracker, found by its ID.
Needs the token of a signed-in user.
The ID of the tracker.
Returns the Tracker object.
curl -X GET 'http://www.allsport.bg/tracker/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'{
"title": "Example",
"unit": "example",
"score_direction": "up",
"additional_fields": [
{
"label": "Example",
"type": "example",
"options": [],
"_id": "6543210fedcba98765432100"
}
],
"body": "Text shown on the site.",
"video": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z",
"goal_definition": {
"label": "Example",
"type": "example",
"options": "example"
}
}Update Tracker by id.
Needs a site admin token.
The ID of the tracker.
Returns the Tracker object.
curl -X PATCH 'http://www.allsport.bg/tracker/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'{
"title": "Example",
"unit": "example",
"score_direction": "up",
"additional_fields": [
{
"label": "Example",
"type": "example",
"options": [],
"_id": "6543210fedcba98765432100"
}
],
"body": "Text shown on the site.",
"video": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z",
"goal_definition": {
"label": "Example",
"type": "example",
"options": "example"
}
}Delete Tracker record by id.
Needs a site admin token.
The ID of the tracker.
Returns an empty answer on success.
curl -X DELETE 'http://www.allsport.bg/tracker/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'Returns the tracker progress.
Works without a token; with a user token the answer is personal.
Returns the TrackerProgress object.
curl -X GET 'http://www.allsport.bg/tracker-progress?ionic=true' \ -H 'Authorization: Bearer <TOKEN>'
{
"score": "example",
"user_id": "6543210fedcba98765432100",
"media": "example",
"additional_fields": {},
"goal": {},
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z"
}Create new tracker_progress.
Needs the token of a signed-in user.
The tracker progress's body.
Returns the TrackerProgress object.
curl -X POST 'http://www.allsport.bg/tracker-progress?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "body": "..." }'{
"score": "example",
"user_id": "6543210fedcba98765432100",
"media": "example",
"additional_fields": {},
"goal": {},
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z"
}Returns one tracker progress, found by its ID.
Needs the token of a signed-in user.
The ID of the tracker progress.
Returns the TrackerProgress object.
curl -X GET 'http://www.allsport.bg/tracker-progress/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'{
"score": "example",
"user_id": "6543210fedcba98765432100",
"media": "example",
"additional_fields": {},
"goal": {},
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z"
}Update TrackerProgress by id.
Needs the token of a signed-in user.
The ID of the tracker progress.
Returns the TrackerProgress object.
curl -X PATCH 'http://www.allsport.bg/tracker-progress/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'{
"score": "example",
"user_id": "6543210fedcba98765432100",
"media": "example",
"additional_fields": {},
"goal": {},
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z"
}Delete TrackerProgress record by id.
Needs the token of a signed-in user.
The ID of the tracker progress.
Returns an empty answer on success.
curl -X DELETE 'http://www.allsport.bg/tracker-progress/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'Create a program from a prompt, written by the AI builder.
Needs a site admin token.
What the AI should do with the program, in plain words - any language.
The AI chat this request belongs to; its history and language carry over. Leave it out to start a new chat.
Which version of the AI builder to use; leave it out for the current one.
The ID of the program to change.
curl -X POST 'http://www.allsport.bg/create-new-program?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "prompt": "...", "chatId": "...", "aiVersion": "...", "item_id": "..." }'{
"chat_id": "6543210fedcba98765432100",
"role": "user",
"text": "Text shown on the site.",
"target_url": "example-item",
"action": "RESPONSE",
"options": [
"example"
],
"medias": [
{
"media": "6543210fedcba98765432100",
"gcs_url": "example-item",
"gemini_uri": "example",
"gemini_interaction_id": "example",
"_id": "6543210fedcba98765432100"
}
],
"products": [
"6543210fedcba98765432101"
],
"services": [
"6543210fedcba98765432101"
],
"blogposts": [
"6543210fedcba98765432101"
],
"programs": [
"6543210fedcba98765432101"
],
"suggestions": [
{
"text": "Text shown on the site.",
"route": "example",
"item_id": "6543210fedcba98765432100",
"medias": [],
"picture": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100"
}
],
"is_system": false,
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z",
"data": {
"object": "example",
"object_type": "example",
"edit_summary": "example",
"edit_diff": "example",
"undo_record": "example",
"hero_animation_offer": "example",
"preview_state": "example",
"pending_credit_cost": 0,
"target_restore": "example",
"media_request": "example",
"item_request": "example",
"reference_request": "example"
}
}Use it to create a new online course or program from scratch or a prompt.
Needs a site admin token.
What the AI should do with the program, in plain words - any language.
The AI chat this request belongs to; its history and language carry over. Leave it out to start a new chat.
curl -X POST 'http://www.allsport.bg/generate-program?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "prompt": "...", "chatId": "..." }'Use it to edit or update an existing online course or program.
Needs a site admin token.
What the AI should do with the program, in plain words - any language.
The current program, as JSON - the AI changes it and returns the result.
The AI chat this request belongs to; its history and language carry over. Leave it out to start a new chat.
The ID of the program to change.
The program's item ids.
curl -X POST 'http://www.allsport.bg/modify-program?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "prompt": "...", "item_data": "...", "chatId": "...", "item_id": "...", "item_ids": "..." }'Use it to set up, configure, or update the built-in progress tracker.
Needs a site admin token.
What the AI should do with the tracker setting, in plain words - any language.
The AI chat this request belongs to; its history and language carry over. Leave it out to start a new chat.
Which version of the AI builder to use; leave it out for the current one.
The ID of the tracker setting to change.
curl -X POST 'http://www.allsport.bg/modify-tracker-settings?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "prompt": "...", "chatId": "...", "aiVersion": "...", "item_id": "..." }'{
"chat_id": "6543210fedcba98765432100",
"role": "user",
"text": "Text shown on the site.",
"target_url": "example-item",
"action": "RESPONSE",
"options": [
"example"
],
"medias": [
{
"media": "6543210fedcba98765432100",
"gcs_url": "example-item",
"gemini_uri": "example",
"gemini_interaction_id": "example",
"_id": "6543210fedcba98765432100"
}
],
"products": [
"6543210fedcba98765432101"
],
"services": [
"6543210fedcba98765432101"
],
"blogposts": [
"6543210fedcba98765432101"
],
"programs": [
"6543210fedcba98765432101"
],
"suggestions": [
{
"text": "Text shown on the site.",
"route": "example",
"item_id": "6543210fedcba98765432100",
"medias": [],
"picture": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100"
}
],
"is_system": false,
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z",
"data": {
"object": "example",
"object_type": "example",
"edit_summary": "example",
"edit_diff": "example",
"undo_record": "example",
"hero_animation_offer": "example",
"preview_state": "example",
"pending_credit_cost": 0,
"target_restore": "example",
"media_request": "example",
"item_request": "example",
"reference_request": "example"
}
}