**גרסאות API** · **V2 (Latest)** · [V1](/integrations/v1/docs?lang=he)

# Fundraising

OpenAPI 3.0.3 · API 2.0.0

```json
[
  {
    "url": "https://api.unisoft.world/integrations/v2",
    "description": "API"
  }
]
```

## פעולות

## POST /fundraising/campaigns/{id}/ambassador-reminders/preview

Preview reminders to explicitly selected campaign ambassadors

`preview_fundraising_ambassador_reminders`

Requires fundraising:read AND contacts:read; send and command reads also require explicit opt-in fundraising:reminders:send. Campaign and every team must have exact scalar identifiers in the organisation and allowed campaign list. Only explicitly selected approved, nonhidden, nonrefused teams with a valid ambassador email are eligible. Select 1..50 unique teamIds; selection does not infer donation history or a zero-donation audience. subject and message are caller-authored plain text; HTML is escaped on send and a personal-space link is appended. No monetary totals, conversions or donor status are inferred. No query parameters are accepted. Rest is checked at queue admission; asynchronous transport and inbox arrival may occur later. Pure preview: no email, journal, private token, personal link or provider request is created. The campaign must currently be publicly served and LIVE under the canonical lifecycle owner. Returns the selected email recipients and the opaque snapshot to pass unchanged with identical teamIds, subject and message to send. Private personal-space URLs and tokens are never returned. Rest status is informational and does not block preview. A durable organisation/resource guard also blocks a different request key after PENDING, UNCERTAIN or missing terminal completion proof, even after native minute/day dedupe expires. REMINDER_PREVIOUS_RESULT_UNCERTAIN requires observing and resolving the existing intention in Unisoft; never invent a new key or bypass the guard. Resource claims require positive exact durable insert/CAS acknowledgements. A completion record is written only after a positively acknowledged terminal journal; a stored QUEUED/UPDATED/REFUSED alone cannot grant another owner. Failure of only accessory completion bookkeeping preserves a positively proven effect and retains the guard.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "fundraising:read",
  "additional": [
    "contacts:read"
  ]
}
```

### פרמטרים

```json
{
  "name": "id",
  "in": "path",
  "required": true,
  "schema": {
    "type": "string",
    "format": "uuid"
  }
}
```

### גוף הבקשה

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "teamIds": {
            "type": "array",
            "minItems": 1,
            "maxItems": 50,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,200}$"
            }
          },
          "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "allOf": [
              {
                "pattern": "\\S"
              },
              {
                "pattern": "^[^\\r\\n]*$"
              }
            ]
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000,
            "pattern": "\\S"
          }
        },
        "required": [
          "teamIds",
          "subject",
          "message"
        ],
        "additionalProperties": false
      }
    }
  }
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Observed reminder result.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "data": {
            "$ref": "#/components/schemas/FundraisingReminderPreview"
          }
        },
        "required": [
          "success",
          "data"
        ]
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "INVALID_UUID, INVALID_REMINDER_INPUT, EXPLICIT_REST_OVERRIDE_REQUIRED or UNEXPECTED_REQUEST_BODY. Remove unsupported fields and query parameters.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Missing or invalid authentication.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "INSUFFICIENT_SCOPE, INVALID_PRINCIPAL or CAMPAIGN_RESTRICTED_KEY. Explicit opt-in permissions are required for sending and configuration.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "NOT_FOUND: a required exact scalar reference is absent, foreign, deleted or outside the allowed campaigns.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 409

```json
{
  "description": "REST_TIME or REST_STATUS_UNAVAILABLE blocks sending. CAMPAIGN_NOT_LIVE, AMBASSADOR_NOT_ACTIONABLE, INVALID_AMBASSADOR_HISTORY, INVALID_REMINDER_HISTORY or CAMPAIGN_URL_UNAVAILABLE refuses an unavailable target. REMINDER_SNAPSHOT_CHANGED and IDEMPOTENCY_CONFLICT require reviewing the current intention. Never retry an uncertain command with a new key.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 500

```json
{
  "description": "INTERNAL_ERROR. An unknown result does not authorize another send.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 503

```json
{
  "description": "REMINDER_JOURNAL_UNCERTAIN, REMINDER_QUEUE_UNCERTAIN, REMINDER_LINK_UNCERTAIN, REMINDER_TOKEN_UNCERTAIN or REMINDER_RESERVATION_UNCERTAIN. A durable write acknowledgement is missing or contradictory; no new effect or retry is authorized. Observe the existing request using the same identity. REMINDER_RESOURCE_RESERVATION_UNCERTAIN grants no resource owner and permits no later effect.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-mcp-output-schema": true,
  "x-unisoft-scope": "fundraising:read",
  "x-unisoft-additional-scopes": [
    "contacts:read"
  ],
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  }
}
```

## POST /fundraising/campaigns/{id}/ambassador-reminders/send

Queue reminders to explicitly selected campaign ambassadors

`send_fundraising_ambassador_reminders`

Requires fundraising:read AND contacts:read; send and command reads also require explicit opt-in fundraising:reminders:send. Campaign and every team must have exact scalar identifiers in the organisation and allowed campaign list. Only explicitly selected approved, nonhidden, nonrefused teams with a valid ambassador email are eligible. Select 1..50 unique teamIds; selection does not infer donation history or a zero-donation audience. subject and message are caller-authored plain text; HTML is escaped on send and a personal-space link is appended. No monetary totals, conversions or donor status are inferred. No query parameters are accepted. Rest is checked at queue admission; asynchronous transport and inbox arrival may occur later. First preview and pass its expectedSnapshot unchanged; current recipients, campaign lifecycle and content are checked again before effects. These optimistic reads are not a transaction with internal writers. A durable command journal precedes token creation and queue insertion. Each personal link is created only during sending through the native ambassador token owner and passed only to the mailer; it grants private space access and is never included in the API response. The native daily UTC source and a deterministic queue identity prevent duplicate API queue entries; already queued recipients are DUPLICATE, with no resend. Chabbat and Yom Tov are blocked through the canonical Europe/Paris calendar. forceRest=true additionally requires restOverrideReason and an explicit user request; never silently override REST_TIME. Stop initiating recipients after an uncertain effect. Batch QUEUED means at least one queue admission, with outcomes for attempted recipients; omitted targetIds were not initiated after interruption. PENDING or UNCERTAIN is never safe to retry with a fresh key. Reusing the same principal/idempotencyKey and identical input only reads the existing command; changed input returns IDEMPOTENCY_CONFLICT. QUEUED is not delivered; read the command and delivery states. SMTP_ACCEPTED proves provider acceptance only; DELIVERED requires an explicit delivery report. The API never retries a command or polls a provider; the native mail worker retains its transport retry policy. A durable organisation/resource guard also blocks a different request key after PENDING, UNCERTAIN or missing terminal completion proof, even after native minute/day dedupe expires. REMINDER_PREVIOUS_RESULT_UNCERTAIN requires observing and resolving the existing intention in Unisoft; never invent a new key or bypass the guard. Resource claims require positive exact durable insert/CAS acknowledgements. A completion record is written only after a positively acknowledged terminal journal; a stored QUEUED/UPDATED/REFUSED alone cannot grant another owner. Failure of only accessory completion bookkeeping preserves a positively proven effect and retains the guard.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "fundraising:reminders:send",
  "additional": [
    "fundraising:read",
    "contacts:read"
  ]
}
```

### פרמטרים

```json
{
  "name": "id",
  "in": "path",
  "required": true,
  "schema": {
    "type": "string",
    "format": "uuid"
  }
}
```

### גוף הבקשה

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/UnisoftRequest_4cc8ff458f9ad2b34bcf"
      }
    }
  }
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Observed reminder result.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "data": {
            "$ref": "#/components/schemas/FundraisingReminderCommand"
          }
        },
        "required": [
          "success",
          "data"
        ]
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "INVALID_UUID, INVALID_REMINDER_INPUT, EXPLICIT_REST_OVERRIDE_REQUIRED or UNEXPECTED_REQUEST_BODY. Remove unsupported fields and query parameters.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Missing or invalid authentication.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "INSUFFICIENT_SCOPE, INVALID_PRINCIPAL or CAMPAIGN_RESTRICTED_KEY. Explicit opt-in permissions are required for sending and configuration.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "NOT_FOUND: a required exact scalar reference is absent, foreign, deleted or outside the allowed campaigns.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 409

```json
{
  "description": "REST_TIME or REST_STATUS_UNAVAILABLE blocks sending. CAMPAIGN_NOT_LIVE, AMBASSADOR_NOT_ACTIONABLE, INVALID_AMBASSADOR_HISTORY, INVALID_REMINDER_HISTORY or CAMPAIGN_URL_UNAVAILABLE refuses an unavailable target. REMINDER_SNAPSHOT_CHANGED and IDEMPOTENCY_CONFLICT require reviewing the current intention. Never retry an uncertain command with a new key.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 500

```json
{
  "description": "INTERNAL_ERROR. An unknown result does not authorize another send.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 503

```json
{
  "description": "REMINDER_JOURNAL_UNCERTAIN, REMINDER_QUEUE_UNCERTAIN, REMINDER_LINK_UNCERTAIN, REMINDER_TOKEN_UNCERTAIN or REMINDER_RESERVATION_UNCERTAIN. A durable write acknowledgement is missing or contradictory; no new effect or retry is authorized. Observe the existing request using the same identity. REMINDER_RESOURCE_RESERVATION_UNCERTAIN grants no resource owner and permits no later effect.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-mcp-output-schema": true,
  "x-unisoft-scope": "fundraising:reminders:send",
  "x-unisoft-additional-scopes": [
    "fundraising:read",
    "contacts:read"
  ],
  "x-unisoft-mcp": {
    "category": "write",
    "readOnly": false,
    "destructive": false,
    "idempotent": true,
    "warn": true
  }
}
```

## GET /fundraising/campaigns/{id}/ambassador-reminders/commands/{requestId}

Observe an ambassador reminder batch without retrying it

`get_fundraising_ambassador_reminder_command`

Requires fundraising:read AND contacts:read; send and command reads also require explicit opt-in fundraising:reminders:send. Campaign and every team must have exact scalar identifiers in the organisation and allowed campaign list. Only explicitly selected approved, nonhidden, nonrefused teams with a valid ambassador email are eligible. Select 1..50 unique teamIds; selection does not infer donation history or a zero-donation audience. subject and message are caller-authored plain text; HTML is escaped on send and a personal-space link is appended. No monetary totals, conversions or donor status are inferred. No query parameters are accepted. Rest is checked at queue admission; asynchronous transport and inbox arrival may occur later. Read-only observation, scoped to the initiating API principal and campaign. Reads are available after the campaign closes, while target organisation/campaign rights still hold. outcomes describe attempted queue admissions; deliveries read the persisted queue independently. QUEUED_OR_IN_FLIGHT is waiting or an active worker, SMTP_ACCEPTED is provider acceptance only, and DELIVERED requires an explicit report. PENDING, UNCERTAIN, UNKNOWN or deliveryRead=UNAVAILABLE never authorizes resend. No token creation, mailer invocation, retry or provider request occurs. A durable organisation/resource guard also blocks a different request key after PENDING, UNCERTAIN or missing terminal completion proof, even after native minute/day dedupe expires. REMINDER_PREVIOUS_RESULT_UNCERTAIN requires observing and resolving the existing intention in Unisoft; never invent a new key or bypass the guard. Resource claims require positive exact durable insert/CAS acknowledgements. A completion record is written only after a positively acknowledged terminal journal; a stored QUEUED/UPDATED/REFUSED alone cannot grant another owner. Failure of only accessory completion bookkeeping preserves a positively proven effect and retains the guard.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "fundraising:reminders:send",
  "additional": [
    "fundraising:read",
    "contacts:read"
  ]
}
```

### פרמטרים

```json
{
  "name": "id",
  "in": "path",
  "required": true,
  "schema": {
    "type": "string",
    "format": "uuid"
  }
}
```

```json
{
  "name": "requestId",
  "in": "path",
  "required": true,
  "schema": {
    "type": "string",
    "format": "uuid"
  }
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Observed reminder result.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "data": {
            "$ref": "#/components/schemas/FundraisingReminderCommand"
          }
        },
        "required": [
          "success",
          "data"
        ]
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "INVALID_UUID, INVALID_REMINDER_INPUT, EXPLICIT_REST_OVERRIDE_REQUIRED or UNEXPECTED_REQUEST_BODY. Remove unsupported fields and query parameters.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Missing or invalid authentication.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "INSUFFICIENT_SCOPE, INVALID_PRINCIPAL or CAMPAIGN_RESTRICTED_KEY. Explicit opt-in permissions are required for sending and configuration.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "NOT_FOUND: a required exact scalar reference is absent, foreign, deleted or outside the allowed campaigns.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 409

```json
{
  "description": "REST_TIME or REST_STATUS_UNAVAILABLE blocks sending. CAMPAIGN_NOT_LIVE, AMBASSADOR_NOT_ACTIONABLE, INVALID_AMBASSADOR_HISTORY, INVALID_REMINDER_HISTORY or CAMPAIGN_URL_UNAVAILABLE refuses an unavailable target. REMINDER_SNAPSHOT_CHANGED and IDEMPOTENCY_CONFLICT require reviewing the current intention. Never retry an uncertain command with a new key.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 500

```json
{
  "description": "INTERNAL_ERROR. An unknown result does not authorize another send.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

#### HTTP 503

```json
{
  "description": "REMINDER_JOURNAL_UNCERTAIN, REMINDER_QUEUE_UNCERTAIN, REMINDER_LINK_UNCERTAIN, REMINDER_TOKEN_UNCERTAIN or REMINDER_RESERVATION_UNCERTAIN. A durable write acknowledgement is missing or contradictory; no new effect or retry is authorized. Observe the existing request using the same identity. REMINDER_RESOURCE_RESERVATION_UNCERTAIN grants no resource owner and permits no later effect.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-mcp-output-schema": true,
  "x-unisoft-scope": "fundraising:reminders:send",
  "x-unisoft-additional-scopes": [
    "fundraising:read",
    "contacts:read"
  ],
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  }
}
```

## סכמות

```json
{
  "components": {
    "schemas": {
      "FundraisingReminderPreview": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "campaignId": {
            "type": "string",
            "format": "uuid"
          },
          "snapshot": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "channel": {
            "type": "string",
            "enum": [
              "EMAIL"
            ]
          },
          "subject": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "targets": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "teamId": {
                  "type": "string"
                },
                "label": {
                  "type": "string",
                  "nullable": true
                },
                "email": {
                  "type": "string"
                }
              },
              "required": [
                "teamId",
                "label",
                "email"
              ]
            }
          },
          "personalLink": {
            "type": "string",
            "enum": [
              "CREATED_ONLY_ON_SEND"
            ]
          },
          "selection": {
            "type": "string",
            "enum": [
              "EXPLICIT_TEAM_IDS"
            ]
          },
          "rest": {
            "$ref": "#/components/schemas/PledgeReminderRest"
          }
        },
        "required": [
          "campaignId",
          "snapshot",
          "channel",
          "subject",
          "message",
          "targets",
          "personalLink",
          "selection",
          "rest"
        ]
      },
      "PledgeReminderRest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "blocked": {
            "type": "boolean"
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "until": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "timeZone": {
            "type": "string",
            "enum": [
              "Europe/Paris"
            ]
          }
        },
        "required": [
          "blocked",
          "reason",
          "until",
          "timeZone"
        ]
      },
      "UnisoftRequest_4cc8ff458f9ad2b34bcf": {
        "type": "object",
        "properties": {
          "teamIds": {
            "type": "array",
            "minItems": 1,
            "maxItems": 50,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,200}$"
            }
          },
          "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "allOf": [
              {
                "pattern": "\\S"
              },
              {
                "pattern": "^[^\\r\\n]*$"
              }
            ]
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000,
            "pattern": "\\S"
          },
          "idempotencyKey": {
            "type": "string",
            "format": "uuid"
          },
          "expectedSnapshot": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "forceRest": {
            "type": "boolean"
          },
          "restOverrideReason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500,
            "pattern": "\\S"
          }
        },
        "required": [
          "teamIds",
          "subject",
          "message",
          "idempotencyKey",
          "expectedSnapshot"
        ],
        "additionalProperties": false,
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "forceRest": {
                "type": "boolean",
                "enum": [
                  true
                ]
              }
            },
            "required": [
              "forceRest",
              "restOverrideReason"
            ],
            "additionalProperties": true
          },
          {
            "type": "object",
            "properties": {
              "forceRest": {
                "type": "boolean",
                "enum": [
                  false
                ]
              }
            },
            "additionalProperties": true,
            "not": {
              "required": [
                "restOverrideReason"
              ]
            }
          }
        ]
      },
      "FundraisingReminderCommand": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "requestId": {
            "type": "string",
            "format": "uuid"
          },
          "action": {
            "type": "string",
            "enum": [
              "SEND",
              "RULES"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "QUEUED",
              "UPDATED",
              "REFUSED",
              "UNCERTAIN"
            ]
          },
          "requestedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "targetIds": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "type": "string"
            }
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "outcomes": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "targetId": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "QUEUED",
                    "DUPLICATE",
                    "REFUSED",
                    "UNCERTAIN"
                  ]
                }
              },
              "required": [
                "targetId",
                "status"
              ]
            }
          },
          "retryable": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "deliveryRead": {
            "type": "string",
            "enum": [
              "AVAILABLE",
              "UNAVAILABLE"
            ]
          },
          "deliveries": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "targetId": {
                  "type": "string"
                },
                "sendId": {
                  "type": "string",
                  "format": "uuid"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "QUEUED_OR_IN_FLIGHT",
                    "SMTP_ACCEPTED",
                    "DELIVERED",
                    "FAILED",
                    "CANCELED",
                    "UNCERTAIN",
                    "UNKNOWN"
                  ]
                }
              },
              "required": [
                "targetId",
                "sendId",
                "state"
              ]
            }
          },
          "campaignId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "requestId",
          "action",
          "status",
          "requestedAt",
          "completedAt",
          "targetIds",
          "error",
          "outcomes",
          "retryable",
          "deliveryRead",
          "deliveries",
          "campaignId"
        ]
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API Key",
        "description": "Format: `ke_live_xxx`"
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  }
}
```
