{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/monite/json-schema/monite-obtain-token-payload-schema.json",
  "title": "ObtainTokenPayload",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monite-access-tokens-api-openapi.yml#/components/schemas/ObtainTokenPayload",
  "properties": {
    "client_id": {
      "type": "string",
      "format": "uuid"
    },
    "client_secret": {
      "type": "string"
    },
    "entity_user_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "grant_type": {
      "$ref": "#/$defs/GrantType"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "client_id",
    "client_secret",
    "grant_type"
  ],
  "$defs": {
    "GrantType": {
      "type": "string",
      "enum": [
        "client_credentials",
        "entity_user"
      ]
    }
  }
}