{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opper/json-schema/opper-create-management-invite-response-schema.json",
  "title": "CreateManagementInviteResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opper-management-api-openapi.yml#/components/schemas/CreateManagementInviteResponse",
  "properties": {
    "accepted": {
      "description": "Whether the invitation has been accepted.",
      "type": "boolean"
    },
    "accepted_at": {
      "description": "When the invitation was accepted. Absent until then.",
      "format": "date-time",
      "type": "string"
    },
    "email": {
      "description": "The invited address.",
      "type": "string"
    },
    "email_sent": {
      "description": "Whether the invitation email was queued. When false the invitation still exists and you deliver invite_url yourself.",
      "type": "boolean"
    },
    "expires_at": {
      "description": "When the link stops working: four weeks from this call.",
      "format": "date-time",
      "type": "string"
    },
    "id": {
      "description": "Invitation id. Pass it to DELETE /management/v1/invites/{id}.",
      "type": "integer"
    },
    "invite_url": {
      "description": "The platform link that accepts the invitation. Carries the token so treat it as a secret.",
      "type": "string"
    },
    "role": {
      "description": "The role the invitee joins with.",
      "type": "string"
    },
    "token": {
      "description": "The invitation's acceptance token. Treat it as a secret: anyone holding it can join the organization.",
      "type": "string"
    }
  },
  "required": [
    "id",
    "email",
    "role",
    "accepted",
    "token",
    "invite_url",
    "email_sent"
  ],
  "type": "object"
}