Shotstash
API referenceREST referenceSystem

Runtime config

Public settings the browser needs (app URL and Google client id and feature switches and version and default locale). Public and served before setup; never carries a secret.

Try the REST routes against the public demo at https://demostash.aldyernesto.my.id. Get a read-only token (valid for 60 minutes), then paste it as the Bearer token in the console of any route.

GET
/api/v1/config

Public settings the browser needs (app URL and Google client id and feature switches and version and default locale). Public and served before setup; never carries a secret.

Response Body

Public settings

application/json
  1. response
appUrl*string

Public URL of the instance, without a trailing slash.

googleClientId*|

Google OAuth client id, or null when Google sign-in is off.

features*

Feature switches.

version*string

Running version.

defaultLocale*string

Default UI locale, such as en.

demo*|

Demo mode only: the demo accounts and their password; null on every other instance.

curl -X GET "https://example.com/api/v1/config"
{  "appUrl": "string",  "googleClientId": "string",  "features": {    "signup": true,    "google": true,    "search": true,    "passwordResetEmail": true,    "discussion": true,    "demo": true  },  "version": "string",  "defaultLocale": "string",  "demo": {    "accounts": [      {        "email": "string",        "role": "string"      }    ],    "password": "string"  }}