Schematic · Example Payload

Schematic Check Flag Example

Check whether a feature flag is enabled for a specific company/user using the Schematic API.

BillingEntitlementsFeature FlagsFeature ManagementFinOpsMeteringPricingSaaS

Schematic Check Flag Example is an example object payload from Schematic, with 10 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

titledescriptionoperationoperationIdmethodpathbaseUrlauthenticationrequestresponse

Example Payload

Raw ↑
{
  "title": "Check Feature Flag",
  "description": "Check whether a feature flag is enabled for a specific company/user using the Schematic API.",
  "operation": "POST /flags/{key}/check",
  "operationId": "checkFlag",
  "method": "POST",
  "path": "/flags/{key}/check",
  "baseUrl": "https://api.schematichq.com",
  "authentication": {
    "type": "apikey",
    "header": "X-Schematic-Api-Key",
    "value": "sch_prod_YOUR_API_KEY"
  },
  "request": {
    "method": "POST",
    "url": "https://api.schematichq.com/flags/advanced-analytics/check",
    "headers": {
      "Content-Type": "application/json",
      "X-Schematic-Api-Key": "sch_prod_YOUR_API_KEY"
    },
    "body": {
      "company": { "id": "comp_01HXYZ123" },
      "user": { "id": "user_01HXYZ456" }
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "data": {
        "flag": "advanced-analytics",
        "value": true,
        "reason": "Company has Pro plan which includes advanced-analytics feature"
      }
    }
  }
}