Scripts
Get a script collection
GET
/v1/script-collections/{collection_id}Returns one script collection. 404 if it does not exist in the agency.
Required scope
read:scriptsRate limit60 requests per minute
curl 'https://api.fansquare.so/v1/script-collections/9b0b4f0e-3127-406b-a0f2-e7bf80e50779' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"id": "9b0b4f0e-3127-406b-a0f2-e7bf80e50779",
"creator_id": "m81IhLxdhzDGYs54rNp2",
"name": "Lena",
"description": "string",
"position": 1,
"script_count": 12,
"created_at": "2026-10-12T21:14:00.000Z",
"updated_at": "2026-10-12T21:14:00.000Z"
}Parameters
Headers
Fansquare-VersionstringrequiredAPI version to pin. Accepts the mineral name or the release date of a version.
Path
collection_idstringrequiredFansquare script collection id (the
idfield of collection items).format uuid
Response
OK, application/json
idstringrequiredFansquare script collection id. Path parameter of the /v1/script-collections/{collection_id} routes.
creator_idstringrequiredFansquare creator id (see GET /v1/creators).
namestringrequiredName of the collection, as shown in the Scripts page of the app.
descriptionstringrequiredDescription of the collection. Empty when there is none.
positionintegerrequiredOrder of the collection among those of its creator (0 first), as the app shows them.
script_countintegerrequiredNumber of scripts in the collection.
created_atstringrequiredWhen the collection was created (ISO 8601).
format date-timeupdated_atstringrequiredWhen the collection was last changed (ISO 8601).
format date-time
curl 'https://api.fansquare.so/v1/script-collections/9b0b4f0e-3127-406b-a0f2-e7bf80e50779' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste"{
"id": "9b0b4f0e-3127-406b-a0f2-e7bf80e50779",
"creator_id": "m81IhLxdhzDGYs54rNp2",
"name": "Lena",
"description": "string",
"position": 1,
"script_count": 12,
"created_at": "2026-10-12T21:14:00.000Z",
"updated_at": "2026-10-12T21:14:00.000Z"
}