{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clarify/json-schema/clarify-create-invitation-response-schema.json",
  "title": "CreateInvitationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarify-invitations-api-openapi.yml#/components/schemas/CreateInvitationResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "invitation"
          ],
          "description": "The resource type, always `invitation`."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique ID of the invitation, or `null` when the person is already a member."
        },
        "attributes": {
          "type": "object",
          "properties": {
            "id": {
              "type": [
                "string",
                "null"
              ],
              "description": "The unique ID of the invitation, or `null` when the person is already a member."
            },
            "invitee_email": {
              "type": "string",
              "description": "The email address the invitation went to."
            },
            "message": {
              "type": "string",
              "description": "A sentence describing the outcome, suitable to show a user."
            }
          },
          "required": [
            "id",
            "invitee_email",
            "message"
          ],
          "description": "The invitation outcome."
        },
        "relationships": {
          "type": "object",
          "properties": {},
          "description": "Always empty for invitations."
        }
      },
      "required": [
        "type",
        "id",
        "attributes"
      ],
      "description": "The resource."
    }
  },
  "required": [
    "data"
  ]
}