Script sequences
List script sequences
/v1/script-sequencesLists the script sequences of the agency, oldest first, without their steps (get_script_sequence for the tree). A sequence is the path of a conversation: ordered steps, each offering scripts to the chatter depending on what the fan did.
read:scriptscurl 'https://api.fansquare.so/v1/script-sequences' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"data": [
{
"id": "40a6e358-bd2a-4cff-a59e-5709874d3f5b",
"creator_id": "m81IhLxdhzDGYs54rNp2",
"name": "Lena",
"status": "draft",
"published_at": null,
"created_at": "2026-10-12T21:14:00.000Z",
"updated_at": "2026-10-12T21:14:00.000Z",
"step_count": 12
}
],
"next_cursor": "KI7cfD0OLcWfeXZb1FTusJpz0nfKiYXPwHCZe-VXBaeQSX1w5BvO5UH-ua-dzNpXOTixzw"
}Parameters
Headers
Fansquare-VersionstringrequiredAPI version to pin. Accepts the mineral name or the release date of a version.
Query
creator_idsstringRestrict to these creators (Fansquare ids from GET /v1/creators). Comma-separated, 50 max.
statusesstringRestrict to these statuses. Values:
draft,published. Comma-separated, 50 max.cursorstringOpaque cursor from the previous page (
next_cursor).limitintegerPage size (1-100).
Default50min 1max 100
Response
OK, application/json
dataarray of objectsrequiredidstringrequiredFansquare script sequence id. Path parameter of the /v1/script-sequences/{sequence_id} routes.
creator_idstringrequiredFansquare creator id (see GET /v1/creators).
namestringrequiredName of the sequence.
statusstringrequiredpublished(offered to chatters in the conversation) ordraft(visible in the app editor only, until published).Valuesdraftpublishedpublished_atstring | nullrequiredWhen the sequence was published (ISO 8601), null for a draft.
format date-timecreated_atstringrequiredWhen the sequence was created (ISO 8601).
format date-timeupdated_atstringrequiredWhen the sequence was last changed (ISO 8601).
format date-timestep_countintegerrequiredNumber of steps.
next_cursorstring | nullrequired
curl 'https://api.fansquare.so/v1/script-sequences' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"data": [
{
"id": "40a6e358-bd2a-4cff-a59e-5709874d3f5b",
"creator_id": "m81IhLxdhzDGYs54rNp2",
"name": "Lena",
"status": "draft",
"published_at": null,
"created_at": "2026-10-12T21:14:00.000Z",
"updated_at": "2026-10-12T21:14:00.000Z",
"step_count": 12
}
],
"next_cursor": "KI7cfD0OLcWfeXZb1FTusJpz0nfKiYXPwHCZe-VXBaeQSX1w5BvO5UH-ua-dzNpXOTixzw"
}