create_newsletter_custom_field
Define a subscriber attribute before collecting it in forms. OAuth scope newsletter:write. Pass a stable idempotency_key for this intended action; reuse it on retries. Use get_newsletter_schema for document, filter and field definitions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"idempotency_key": "<idempotency_key>",
"key": "<key>",
"label": "<label>",
"data_type": "<data_type>"
},
"name": "create_newsletter_custom_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| label | Yes | ||
| options | No | ||
| data_type | Yes | ||
| project_id | Yes | ||
| idempotency_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |