{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/security-scorecard/json-schema/security-scorecard-create-invitation-request-schema-schema.json",
  "title": "createInvitationRequestSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/security-scorecard-invites-api-openapi.yml#/components/schemas/createInvitationRequestSchema",
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "pattern": "^.+@.+$"
    },
    "first_name": {
      "type": "string"
    },
    "last_name": {
      "type": "string"
    },
    "target_url": {
      "type": "string",
      "description": "optional url to take the invitee to when arriving to the platform.\nif specified, must be an internal route and only some routes are allowed for\nsecurity reasons (please validate this in advance, or value could be ignored)"
    },
    "message": {
      "type": "string",
      "description": "extra messaging for the invitee"
    },
    "branding_url": {
      "type": "string",
      "description": "branding logo url"
    },
    "domain": {
      "type": "string",
      "description": "the invited company domain"
    },
    "grade_to_maintain": {
      "type": "string",
      "description": "minimum grade that an inviter requests an organization to maintain"
    },
    "days_to_resolve_issue": {
      "type": "integer",
      "description": "minimum days to resolve a scorecard issue"
    },
    "sendme_copy": {
      "type": "boolean",
      "description": "whether we should send a copy to the requesting user"
    },
    "cc_requester": {
      "type": "boolean",
      "description": "CC the inviter on the email"
    },
    "sender_email": {
      "type": "string",
      "description": "Email of the user requesting the invite"
    },
    "sender_domain": {
      "type": "string",
      "description": "Domain of the user requesting the invite"
    }
  },
  "additionalProperties": false,
  "required": [
    "email",
    "first_name",
    "last_name",
    "message"
  ]
}