{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nylas/main/json-schema/nylas-js-callbackw-settings-schema.json",
  "title": "JS",
  "x-generated": "2026-10-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nylas-applications-api-openapi.yml#/components/schemas/JsCallbackwSettings",
  "properties": {
    "platform": {
      "type": "string",
      "description": "Platform identifier",
      "enum": [
        "js"
      ]
    },
    "id": {
      "type": "string",
      "description": "The callback URI ID. This must be a universally unique ID (UUID)."
    },
    "url": {
      "type": "string",
      "description": "Your project's callback URI, including the protocol. Nylas accepts HTTP for localhost development _only_.\nOtherwise, you must use HTTPS."
    },
    "settings": {
      "description": "Additional platform settings and configurations for the Javascript callback URI.",
      "type": "object",
      "required": [
        "origin"
      ],
      "properties": {
        "origin": {
          "type": "string",
          "description": "The `origin` is the base URL from which your project or app is served. It is required because it's a critical part of defining your app's trust boundaries to prevent cross-origin issues. Set this when you set up OAuth redirect URIs and other security settings."
        }
      }
    }
  }
}