{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/4chems-com/json-schema/4chems-com-invitation-created-out-schema.json",
  "title": "InvitationCreatedOut",
  "description": "Returned only on POST — includes the raw token for sharing the invite link.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/4chems-com-invitations-api-openapi.yml#/components/schemas/InvitationCreatedOut",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "tenant_id": {
      "type": "string",
      "title": "Tenant Id"
    },
    "email": {
      "type": "string",
      "title": "Email"
    },
    "level": {
      "type": "string",
      "title": "Level"
    },
    "billing_contact": {
      "type": "boolean",
      "title": "Billing Contact",
      "default": false
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At"
    },
    "invited_by": {
      "type": "string",
      "title": "Invited By"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "accepted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Accepted At"
    },
    "token": {
      "type": "string",
      "title": "Token"
    }
  },
  "type": "object",
  "required": [
    "id",
    "tenant_id",
    "email",
    "level",
    "status",
    "expires_at",
    "invited_by",
    "created_at",
    "token"
  ]
}