Scripts
List scripts
/v1/scriptsLists the scripts of the agency with their messages, oldest first. A script is a saved message, or a series of up to 5 messages, that chatters send to a fan in one pick. Filter by creator or collection; sort by position for the order of the app. Its id is what a sequence option points to.
read:scriptscurl 'https://api.fansquare.so/v1/scripts' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"data": [
{
"id": "40a6e358-bd2a-4cff-a59e-5709874d3f5b",
"creator_id": "m81IhLxdhzDGYs54rNp2",
"collection_id": "9b0b4f0e-3127-406b-a0f2-e7bf80e50779",
"name": "Lena",
"position": 1,
"context_note": "string",
"messages": [
{
"id": "a75011a9-0287-4cf3-ab3f-825aef61b191",
"content": "string",
"price_cents": 1500,
"media_ids": [
"b12eacb2-afea-4959-a0d0-b685e6b49279"
],
"is_voice": true,
"unresolved_media_count": 12
}
],
"created_at": "2026-10-12T21:14:00.000Z",
"updated_at": "2026-10-12T21:14:00.000Z"
}
],
"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.
collection_idsstringRestrict to these collections (ids from GET /v1/script-collections). 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 id. Path parameter of the /v1/scripts/{script_id} routes, and the
script_idof a sequence option.creator_idstringrequiredFansquare creator id (see GET /v1/creators).
collection_idstring | nullrequiredCollection the script belongs to.
namestringrequiredName of the script, as chatters see it in the script panel of the conversation.
positionintegerrequiredOrder of the script in its collection (0 first).
context_notestring | nullrequiredNote for the chatters: when and why to send this script. Never sent to the fan. null without one.
messagesarray of objectsrequiredThe messages a chatter sends, one after the other, when they pick the script: the first, then up to 4 more.
idstringrequiredId of this message. The first message has the id of the script itself.
contentstringrequiredText of the message, sent as written.
price_centsintegerrequiredPrice in euro cents to unlock the media of the message (0 = free).
media_idsarray of stringsrequiredMYM media uuids attached to the message, in order.
is_voicebooleanrequiredThe message is a voice message: its only media is an audio of the vault.
unresolved_media_countintegerrequiredMedia of the message stored under a former MYM id the API cannot serve, left out of
media_ids(almost always 0). Above 0, the messages of this script are edited in the app (script_media_unresolved).
created_atstringrequiredWhen the script was created (ISO 8601).
format date-timeupdated_atstringrequiredWhen the script was last changed (ISO 8601).
format date-time
next_cursorstring | nullrequired
curl 'https://api.fansquare.so/v1/scripts' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"data": [
{
"id": "40a6e358-bd2a-4cff-a59e-5709874d3f5b",
"creator_id": "m81IhLxdhzDGYs54rNp2",
"collection_id": "9b0b4f0e-3127-406b-a0f2-e7bf80e50779",
"name": "Lena",
"position": 1,
"context_note": "string",
"messages": [
{
"id": "a75011a9-0287-4cf3-ab3f-825aef61b191",
"content": "string",
"price_cents": 1500,
"media_ids": [
"b12eacb2-afea-4959-a0d0-b685e6b49279"
],
"is_voice": true,
"unresolved_media_count": 12
}
],
"created_at": "2026-10-12T21:14:00.000Z",
"updated_at": "2026-10-12T21:14:00.000Z"
}
],
"next_cursor": "KI7cfD0OLcWfeXZb1FTusJpz0nfKiYXPwHCZe-VXBaeQSX1w5BvO5UH-ua-dzNpXOTixzw"
}