Skip to content
Navigation

List my feature flags

GET
https://api.nicer.travel/identity/flag

Returns the feature flags that apply to the caller (their own, their active agency's and the global ones), one per flag, with a true value winning. Any signed-in person, for themself.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Returns

200

OK

JSON
  • items
    array of
    FeatureFlag
    required

    The items of this page.

    One of the following:

    • object
      • state
        active
        or
        inactive
        required
      • value
        required

        Any of the following:

        • boolean
        • number
        • string
        • map<unknown>
      • createdAt
        string
        required
      • updatedAt
        string
        required
      • flag
        string
        required
      • type
        string
        required
      • targetType
        string
        required
      • userId
        string
        required
        minLength: 1
      • createdBy
        optional
        string
      • description
        optional
        string
      • lastModifiedBy
        optional
        string
      • rules
        optional
        array of
        object
        • attribute
          string
          required
        • operator
          equals
          or
          contains
          or
          startsWith
          or
          endsWith
          or
          regex
          required
        • value
          required

          Any of the following:

          • string
          • number
          • boolean
    • object
      • state
        active
        or
        inactive
        required
      • value
        required

        Any of the following:

        • boolean
        • number
        • string
        • map<unknown>
      • createdAt
        string
        required
      • updatedAt
        string
        required
      • flag
        string
        required
      • type
        string
        required
      • companyName
        string
        required
        minLength: 1
      • targetType
        string
        required
      • createdBy
        optional
        string
      • description
        optional
        string
      • lastModifiedBy
        optional
        string
      • rules
        optional
        array of
        object
        • attribute
          string
          required
        • operator
          equals
          or
          contains
          or
          startsWith
          or
          endsWith
          or
          regex
          required
        • value
          required

          Any of the following:

          • string
          • number
          • boolean
    • object
      • state
        active
        or
        inactive
        required
      • value
        required

        Any of the following:

        • boolean
        • number
        • string
        • map<unknown>
      • createdAt
        string
        required
      • updatedAt
        string
        required
      • flag
        string
        required
      • type
        string
        required
      • targetType
        string
        required
      • createdBy
        optional
        string
      • description
        optional
        string
      • lastModifiedBy
        optional
        string
      • rules
        optional
        array of
        object
        • attribute
          string
          required
        • operator
          equals
          or
          contains
          or
          startsWith
          or
          endsWith
          or
          regex
          required
        • value
          required

          Any of the following:

          • string
          • number
          • boolean
  • nextToken
    required

    Send it back as nextToken to read the next page; null on the last page.

    Any of the following:

    • string
    • null

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