Skip to content
Navigation

Get a platform config row

GET
https://api.nicer.travel/config/{type}/{id}

Returns one platform-wide config row by type and id; AppVersion is the only type, by versionCode (web for the web apps). The web apps and the native app read it to show a maintenance screen (isUnderMaintenance) or ask for an update (requiresUpdate). Any signed-in caller may read it.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • type
    string
    required
  • id
    string
    required

Returns

200

OK

JSON
  • createdBy
    string
    required
  • isUnderMaintenance
    boolean
    required
  • lastModifiedBy
    string
    required
  • requiresUpdate
    boolean
    required
  • versionCode
    string
    required
    minLength: 1
  • type
    string
    required
  • createdAt
    string
    required
  • updatedAt
    string
    required

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close