Italiano

3. Configuration format

Level: reference. Every field of the document: what it means, which values it accepts, how it is checked. The rules Squiddy uses to choose between the blocks are on the next page, Resolution rules.

The complete document

A document that uses everything the format offers. The // comments are here only to explain: the real document is plain JSON and does not allow them.

{
  "configVersion": "2026.08.05",

  // api — ORDERED list of blocks. The FIRST one that matches is served.
  "api": [
    {
      "serverMode": "path",
      "baseUrl": "https://api.example.com/",
      "apiVersion": "3.18",
      "appTypes": ["ios", "android"],
      "appModes": ["release"],
      "min": "2024.01.01",
      "max": "9999.99.99",
      "activeDebug": false,
      "languagesSupported": ["it", "en"],
      "serverSettings": [
        { "key": "environment", "value": "prod", "type": "string", "action": "read" }
      ],
      "rules": [
        ["beta-user", "internal"],
        ["ios-17"]
      ],
      "segments": ["eu-region"],
      "rollout": { "percentage": 25, "key": "entity", "salt": "checkout-v2" },
      "refreshInterval": 0
    }
  ],

  // appUpdate — force update. The LAST block that matches wins.
  "appUpdate": [
    {
      "required": true,
      "min": "0000.00.00",
      "max": "2023.12.31",
      "appTypes": ["all"],
      "appModes": ["all"],
      "msg": [
        { "language": "default", "title": "Update required", "message": "Please update the app." },
        { "language": "it", "title": "Aggiornamento", "message": "Aggiornamento obbligatorio." }
      ]
    }
  ],

  // inFoPoint — maintenance / notice. The LAST block that matches wins.
  "inFoPoint": [
    {
      "halt": true,
      "min": "0000.00.00",
      "max": "9999.99.99",
      "appTypes": ["all"],
      "appModes": ["all"],
      "msg": [
        { "language": "default", "title": "Maintenance", "message": "We will be back soon." }
      ]
    }
  ],

  // segments — reusable filters on the customParams, referenced by name from the api blocks.
  "segments": {
    "eu-region": [["region-eu"]],
    "beta-testers": [["beta-user", "internal"]]
  },

  // languages — translations delivered through the configuration.
  "languages": {
    "defaultLang": "it",
    "langList": [
      {
        "it": [{ "greeting": "Ciao" }, { "bye": "Ciao ciao" }],
        "en": [{ "greeting": "Hello" }, { "bye": "Bye" }]
      }
    ]
  }
}

The template the editor offers for a new app is more modest: configVersion at "1.0.0", empty api, appUpdate and inFoPoint, and a languages block without translations. It is not valid yet, and it says so at once: the badge points out that the api block is missing, without which no app would receive the configuration. It is the first field to fill in, not a warning to ignore.

In the Form the parts of the document have these sections: Server APIs (the api blocks), Force update (appUpdate), Maintenance (inFoPoint) and Translations (languages). What you change from the Form and what only from the JSON is at the bottom of the page.

Root

FieldTypeRequiredNotes
configVersionstringnoThe configuration's label, returned to the app in every answer. No format is imposed: it is your own tag (a date, a version number, a release number). It updates itself at every publishing (see below); empty or absent, it is published as 1.0.0.
apiarray of blocksyesAt least one block: publishing refuses an empty or absent api. Having one, though, is not enough: if no block matches the app that asks, the request fails with the 5001 error, it does not return a partial answer (page 4).
appUpdatearray of blocksnoAbsent or empty: no force update.
inFoPointarray of blocksnoAbsent or empty: no maintenance message.
segmentsobject name → rulesnoDefinitions only; it has no effect until an api block references them.
languagesobjectnoAbsent: no translations delivered.

configVersion updates itself when you publish

At every publishing Squiddy decides the configVersion of the version it publishes, so that every published version has a new number without anyone having to change it by hand. It compares it with the one of the version published at that moment:

In the draftPublished beforePublished with
the same as the published one2.3.6672.3.668: the last part goes up by one
the same as the published one1.91.10 (it counts, it does not compare as a string)
the same as the published one, a date without a counter2026.11.072026.11.07.1: the counter is added, the day does not change
the same as the published one, a date with the counter2026.11.07.67212026.11.07.6722: only the counter goes up
different from the published one, that is changed by hand1.0.4the draft's value, for example 2.0.0
any value, at the first publishing—the draft's value
empty or absentany1.0.0
the same as the published one, with a non-numeric last part1.0.0-beta1.0.0-beta, unchanged: publishing says so with a yellow warning, and it has to be changed by hand

The last part is the one after the last dot, and it goes up only if it is made of digits alone: 1.0.0-beta.1 becomes 1.0.0-beta.2, v10 stays v10.

A date is only a real day written YYYY.MM.DD: three parts, a four-digit year, the month from 01 to 12 and a day that exists in that month of that year, 29 February included in leap years. If the draft still carries the published date, the new version receives the counter .1, so it stays dated to the day you wrote, and from then on only the counter goes up (YYYY.MM.DD.x). Everything else is a normal version and goes up on its last part: 1.2.3 becomes 1.2.4, and 2026.13.01 (month 13) also becomes 2026.13.02 and 2026.02.30 becomes 2026.02.31, because they are not dates. For a new day write the date by hand: 2026.11.22 in place of 2026.11.07.3 counts as changed by hand and is published as it is.

Squiddy does it, not the dashboard, so it holds for whoever publishes from the API too: the answer to the publishing says the value used and how it was decided, and the publishing entry of the audit log reports them.

Two cases worth knowing:

In the editor the line above the tabs shows the configVersion of the text and says so: “updates itself when you publish”. After publishing, the text and the line show the new value.

Versions: how they are compared

Each block marks the versions it applies to with min and max, and the app declares its own appVersion. The comparison works like this: the dots are removed and the result is read as a whole number.

StringWhole number used in the comparison
2026.08.0520260805
0000.00.000
9999.99.9999999999
1.2.0120
1.10.01100

The first three rows are the reason why the recommended format is YYYY.MM.DD with leading zeros, and the last two are the reason why a fixed format is needed: with variable-width fields 1.10.0 comes out greater than 1.2.0 by a factor of ten, and a min/max range written in good faith includes or excludes versions at random. If your versions look like 1.10.0, write every part with the same number of digits (01.10.00) and do so in the whole document.

Two more points worth knowing:

The api block

It describes which server the app has to talk to. It is the section without which there is no answer. In the Form it is the Server APIs section, with one box per block (API block 1, API block 2…) and the Add API block button.

FieldTypeRequiredMeaning
apiVersionstringyesThe version of the API to use (in the Form, API version). Returned to the app and, in path mode, added to baseUrl.
serverModestringyesHow the app has to talk to your server (Server mode). Values in use: path, get, post, x-www-form-urlencoded. Only path changes Squiddy's answer (see below); the others are instructions the app interprets.
baseUrlstringin fact yesThe address of your server (Base URL). No check demands it: a block without baseUrl is published and hands the app an empty address.
appTypesarray of stringsyes, in practiceThe platforms served (App types): ios, android, tvos, web, desktop, or all. An empty array matches nobody.
appModesarray of stringsyes, in practiceThe modes served (App modes): release, debug, or all. An empty array matches nobody.
min / maxversion stringyesThe range of app versions, both ends included (Min version, Max version; see above).
activeDebugbooleannoPassed to the app as it is; the app interprets it. Absent = false.
languagesSupportedarray of stringsnoThe languages this block delivers. It filters the translations: if it is missing or empty, the app receives no translation, even with a complete dictionary. From the Form you choose among the dictionary's languages in the Languages served field, and the Translations grid keeps it aligned (see below, “The languages served from the Form”).
serverSettingsarray of objectsnoKey/value pairs for the app (Server settings; see below).
rulesarray of arrays of stringsnoA filter on the customParams, “all of these sets, at least one value per set” (Rules; page 4).
segmentsarray of stringsnoNames of segments the app has to belong to, all of them.
rolloutobjectnoPercentage rollout (page 4).
refreshIntervalinteger (seconds)noHow often the apps served by this block check the configuration while they are in the foreground. Absent or 0: no periodic check. Otherwise from 30 to 86400 (one day). See below.

Which app sends which type. Squiddy's SDK fills in the app type itself, from the platform it runs on: android from an Android app; ios from an iPhone or iPad app, and from an app for Apple Vision Pro, which runs as an iPad app; tvos from an Apple TV app; desktop from a desktop application, on the JVM or native on macOS, Linux and Windows; web from a web page, written in JavaScript or in Kotlin (Kotlin/JS or Kotlin/Wasm), and from a Node.js server. A configuration that serves an Apple TV app needs a block with tvos, or all: a block for ios does not serve it.

The path rule. When serverMode is exactly path, Squiddy composes the returned address as baseUrl + apiVersion + "/". With baseUrl: "https://api.example.com/" and apiVersion: "3.18" the app receives https://api.example.com/3.18/. With any other mode baseUrl is returned untouched. Hence the convention of the trailing slash in baseUrl: without it, the composed URL comes out as https://api.example.com3.18/.

refreshInterval: the periodic check

An app with Squiddy's SDK checks the configuration at start, when it comes back to the foreground and when it receives the push update. refreshInterval adds a check at an interval while the app stays in the foreground, and the block served decides it: whoever manages the configuration changes it, or turns it off, without publishing a new version of the app.

ValueEffect
absent, or 0No periodic check. It is the default.
from 30 to 86400One check every so many seconds, only in the foreground: 300 is five minutes, 86400 one day.
any otherPublishing is blocked, with a message that gives the limits (page 5).

The value is a whole number of seconds: 30.5 or "60" are refused as the wrong type.

Since it lives in the block, it holds for the audience of that block, chosen with the usual tools: app types, modes, versions, rules. The typical case: the mobile apps receive the push update and do not need to check at an interval, the web page receives no push updates and checks every five minutes.

"api": [
  {
    "serverMode": "path", "baseUrl": "https://api.example.com/", "apiVersion": "3.18",
    "appTypes": ["web"], "appModes": ["all"], "min": "0000.00.00", "max": "9999.99.99",
    "refreshInterval": 300
  },
  {
    "serverMode": "path", "baseUrl": "https://api.example.com/", "apiVersion": "3.18",
    "appTypes": ["ios", "android"], "appModes": ["all"], "min": "0000.00.00", "max": "9999.99.99"
  }
]

Off by default. Without the field no app checks at an interval, whether it receives push updates or not. An app without push updates and without refreshInterval sees a new configuration only at the next opening or at the next return to the foreground: if it has to notice while it is open, its block must have the field.

The count of the calls. Every installation in the foreground makes one call every refreshInterval seconds, and the plan's limit of calls per minute holds per API key: 10,000 open installations with 30 make 20,000 calls a minute. Beyond the limit the data plane answers 429 and the apps stay on the configuration they have until the next attempt, so the value has to be chosen doing the count against your own plan.

What the app receives. The value arrives as refreshIntervalSeconds inside serverApi, and only if the block declares it: a block without the field answers exactly as before the field existed, fingerprint (configFingerprint) included, so no installation downloads again a configuration that has not changed. The apps with the SDK from 0.3.0 follow it; those with earlier versions do not read the field and carry on with the interval chosen by whoever developed them.

From the Form it is the Periodic check (seconds) field of each block: empty removes the field from the block. The Tester shows the frequency of the resolved block.

serverSettings

Free settings that the app reads or sends back to your server. The four keys are all required in every row: an incomplete row blocks publishing and, if it got through anyway, would make the whole API block be discarded as “not configured correctly”.

FieldMeaningConventional values
keyThe setting's namefree (environment, analyticsEnabled, …)
valueThe value, always as a stringfree
typeHow the app has to interpret valuestring, int, double, bool
actionWhat the app has to do with itread, send, read/send

Squiddy does not impose the values of type and action: they are an agreement between whoever writes the configuration and whoever develops the app. They have to be agreed and then respected.

The appUpdate and inFoPoint blocks

They have the same shape; the switch and the meaning change. In the Form they are the Force update and Maintenance sections, with the Add force-update block and Add maintenance block buttons.

FieldTypeRequiredMeaning
required (appUpdate only)booleannoIn the Form, the Required switch. true = the app has to enforce the update; false = it offers it.
halt (inFoPoint only)booleannoIn the Form, the Halt switch. true = the app blocks its use; false = it only shows the message.
min / maxversion stringyesAs for api.
appTypes / appModesarray of stringsyes, in practiceAs for api, including the empty one that matches nobody.
msgarray of messages per languageyesTitle and text per language (in the Form, the Messages table; see below).

They have no rules, segments or rollout. Force update and maintenance are aimed only at version, platform and mode: you cannot send a maintenance message to 10% of the users or to a segment.

msg

FieldMeaning
languageThe language code, lowercase (it, en, …), or default (Language)
titleThe title the app shows (Title)
messageThe text the app shows (Message)

Squiddy looks for the row of the app's language and, if there is none, uses the default row. The rows arrive exactly as they are saved, title and text always taken from the same row:

Empty and absent are two different things, as in the translations (below). The default row is in fact required in every block that can match: if a block matches and has neither a row in the app's language nor a default row, the app's request fails with the 5001 error, it does not return the configuration without the message. A badly written maintenance block does not show one notice fewer: it breaks the app's start.

segments

A list name → rule sets, with exactly the same shape as rules: a filter on the customParams. It is used to define an audience once and call it from several blocks, instead of copying the same rules in three places and updating two of them.

"segments": {
  "beta-testers": [["beta-user", "internal"]]
}

The rules of segments, checked at publishing:

languages

The translations delivered with the configuration, so that a text can be corrected without a new version of the app. In the Form it is the Translations section.

FieldTypeMeaning
defaultLangstringThe default language (Default language), the one the app falls back on. It must be one of the languages of langList[0], otherwise publishing is blocked.
langListarray of dictionariesThe translations. Only the first element is used: langList[0] is an object language → list of {key: value} pairs.

The nested shape ([{ "it": [{"k": "v"}, …] }]) is awkward to write by hand, and in the dashboard it is not needed: the Form's Translations section shows it as a grid — one column per language, one row per key — and writes it back in the correct shape. Two consequences of going through the grid:

Empty and absent are two different things. Squiddy sends the translations exactly as they are saved:

With the grid every key is there in every language: an absent key can only be in JSON written by hand or in a dictionary saved when the grid removed the keys of empty cells. The grid shows it as an empty cell, and at the first save from the Form writes it as an empty translation. An empty text stays empty in the apps with the SDK from 0.4.0. Those with 0.3.0 or earlier still treat it as missing, and show the text of the default language.

Consistency checked at publishing: langList present without defaultLang is an error, and defaultLang filled in with an empty langList is an error. No translation at all, on the other hand, is a valid state.

And the rule that surprises everyone at least once: the translations are filtered by languagesSupported of the API block chosen for the app. If that block does not declare languagesSupported, or declares languages the dictionary does not have, the app receives no translations. The dictionary alone is not enough. The comparison is literal: "IT" in languagesSupported does not serve the dictionary's "it" language.

The languages served from the Form

Whoever works from the Form does not have to remember this rule: the grid and the API blocks stay aligned on the same document.

One exception remains possible, and the editor points it out: if a language of the dictionary is served by no block (because it was removed from all of them with Languages served, or because the JSON was written by hand), the yellow warning Languages no API block serves appears under the editor, with the list. It does not block publishing: a translation prepared before switching it on is legitimate (page 5).

The Add language field refuses an empty code, one already there and one with spaces or control characters: the code is compared letter by letter with languagesSupported and with the app's language, so pt BR would never serve anybody. Add key refuses an empty key, one already there and one with a line break or a tab; spaces inside a key are allowed. The import from a file, below, applies the same rules.

Importing translations from a file

The Import from file button, at the top of the Translations section, loads a spreadsheet into the dictionary. It accepts XLSX (Excel, Numbers, Google Sheets), ODS (LibreOffice) and the CSV and TSV texts, recognized by the file's extension. The file is read in the browser and is not sent to Squiddy: what reaches Squiddy, as always, is the configuration when you save it.

The button opens the import window, which starts with How to fill in the file: the instructions below in short, and beside them the Download template button (see “The template to fill in”). Choose file opens the file picker; Cancel closes without touching anything.

The sheet has this shape:

keyitenfr
greetingCiaoHelloBonjour
farewellArrivederciGoodbye

Updating or replacing. By default the import updates:

The Replace the whole dictionary switch, off by default, makes the dictionary exactly the content of the file: keys and languages the file does not contain are removed, and an empty cell of the file becomes an empty translation, as in the grid. When the replacement removes something, the Apply button is red.

The languages and the API blocks follow the rule of the grid: a new language brought by the file enters languagesSupported of every API block, and a language removed by the replacement leaves all of them. The import never changes the default language, like the grid: if the dictionary was empty it is still to be chosen, and if the replacement removes the default language another one has to be chosen. The summary says so, and until you do it publishing stays blocked.

The summary. Once the file is read, the window shows what would change, before touching anything: the keys added (and removed, if you replace), the values changed, the languages added and removed, the rows discarded with the reason (empty key, key with a line break). It also warns about a language that differs from one of the dictionary only in case (IT next to it would be a second language). Apply brings the result into the editor as an unsaved change: you save the draft, or discard it, like any other change.

When the file is refused, with a message and without changing anything:

The template to fill in

In the import window, next to How to fill in the file, the Download template button downloads an example file in the format you choose from the menu (XLSX, ODS, CSV or TSV), in the language of the dashboard. The file is created in the browser, like the export.

The example is the same for everyone and does not depend on the open configuration (to start from the dictionary you have, use Export): in the first row the key column, key (chiave in Italian), and three languages; below, three keys.

keyitenfr
welcome_titleBenvenuto!Welcome!Bienvenue !
login_buttonAccediSign inSe connecter
goodbye_messageArrivederci!Goodbye!

The French cell of goodbye_message is empty on purpose: importing the template as an update, the French of that key stays as it is.

The instructions, in the window and in the sheet, give the rules of this page in short:

  1. the first row is the header, with the name of the key column and the language codes; below, one key per row in the first column;
  2. language codes are written exactly as in the configuration, case included, and without spaces;
  3. an empty cell changes nothing when the file updates, and becomes an empty translation with Replace the whole dictionary (the app shows an empty text); empty rows and columns are skipped;
  4. by default the file updates; with Replace the whole dictionary the dictionary becomes the file;
  5. a language added by the file is served by every API block, and one removed by the replacement leaves all of them;
  6. the CSV is separated by commas or semicolons, the TSV by tabs, and they are read as UTF-8 (otherwise as Windows-1252, and the summary says so);
  7. a formula counts for the value calculated and saved in the file;
  8. of a file with several sheets, the first one with a header is read;
  9. the file can be up to 5 MB, 10,000 rows and 100 columns.

Exporting translations to a file

The Export button, next to Import from file, downloads the dictionary as a spreadsheet, in the format you choose from the menu: XLSX (Excel, Numbers, Google Sheets), ODS (LibreOffice), CSV or TSV. The file is created in the browser: nothing goes through Squiddy.

With a dictionary without keys there is nothing to export: the button is disabled and under the section's title it says why. Whoever has read-only access sees the Form disabled, and with it Export too: the dictionary stays readable from the JSON tab.

Clearing the dictionary

The red Clear dictionary button, next to Export, removes in one go the whole dictionary: every language, every key with its values, and the default language. It is there to start again from scratch, for example before importing a file, without removing a column and a row at a time by hand.

With the dictionary already empty the button is disabled, and under the section's title it says why. Whoever has read-only access sees it disabled with the rest of the Form.

What you change from the Form and what only from the JSON

The editor has two tabs on the same document: JSON (the text editor, with the colors and the markers) and Form (the fields, section by section). They are two views of the same thing, and you switch from one to the other without saving, but the Form does not cover every field.

SectionFrom the FormOnly from the JSON
api blocksapiVersion, serverMode, baseUrl, appTypes, appModes, min, max, refreshInterval, languagesSupported (Languages served), serverSettings, rulesactiveDebug, segments, rollout
appUpdate / inFoPointrequired / halt, min, max, appTypes, appModes, msg—
languagesdefaultLang, languages, keys, values (grid); the whole dictionary from an XLSX, ODS, CSV or TSV file (Import from file, with the template to fill in from Download template) and to a file of the same formats (Export); clearing it in one go (Clear dictionary)elements of langList beyond the first
segments (dictionary)—everything
configVersion— (the line above the tabs shows it, and it updates itself when you publish)everything

The fields the Form does not show are not lost: every change from the Form rewrites only the fields it touches and leaves the others intact. A block with rollout and segments keeps its rollout and its segments even if you change its min from the Form.

The “i” icon of the sections. The Server APIs, Force update, Maintenance and Translations sections of the Form have an “i” icon beside their title. A click, or Enter when you reach it with Tab, opens a bubble that sums up in a few lines what the section does for the apps and the caveat to keep in mind, with the link Read more in the guide to the part of this page that describes it. It works for whoever has read-only access too, when the rest of the Form is disabled.

The Form opens only if the JSON is well written: on a broken document it says “Fix the JSON in the JSON tab before using the form.”, because the fields cannot edit a text that is not a JSON object. To work on the JSON for a long time there is the Full screen button at the end of the row of tabs (you leave it with Esc); Save draft and Publish stay within reach there too.