# Send event text to WordPress.

Use CalendarDrop's WordPress webhook to turn event text from another app into editable drafts. Your app or AI tool needs to send an HTTP request with a secret header. This guide covers setup, responses and retries.

This guide covers CalendarDrop 1.3.0 and later. Update to 1.4.0 for destination selection and WP Event Manager support. Existing destination behavior stays unchanged until you choose another setting. [Read the web version](https://calendardrop.pennerstrategy.com/integrations), [get setup help](https://calendardrop.pennerstrategy.com/help), or [get the WordPress plugin](https://wordpress.org/plugins/calendardrop/).

## What this connection does

Send event details that your calendar editor would otherwise enter by hand. CalendarDrop reads the text and saves drafts for the editor to check.

- CalendarDrop 1.4.0 saves drafts in the destination you select: The Events Calendar, WP Event Manager, or ordinary WordPress posts. Created drafts use the same credits in each destination.
- WP Event Manager support covers individual events with start and end times. Check unmatched venue details in its native editor before publishing. Recurring or all-day events, tickets and CalendarDrop AI edits or exports are not included in this integration. Midnight or equal start/end times need manual entry. Check every extracted time against the source; CalendarDrop cannot reliably identify every all-day event.
- Imports stay unpublished. Check each draft against the source before publishing, since AI can miss or misread details.
- CalendarDrop adds a manual Google Calendar event link to ordinary posts with event metadata. It also provides individual `.ics` exports for publicly viewable, unprotected posts and The Events Calendar events. These are manual add/export options, not connected calendar accounts or automatic synchronization. Check the imported date and time in the destination calendar.

This webhook saves WordPress drafts. It does not write directly to Google Calendar or Outlook, synchronize calendars, or insert structured events without AI extraction. CalendarDrop does not provide a dedicated MCP server or agent SDK. Use your tool's HTTP integration.

## Other websites and source code

An authorized external application can send event text through a configured WordPress webhook. Results remain in that WordPress workflow; review the per-event outcomes and any created drafts. CalendarDrop does not currently offer a standalone hosted extraction API or direct publishing to non-WordPress websites. Use the WordPress routes documented here; the hosted service's internal endpoints are not a supported general-purpose API.

The [WordPress plugin source](https://plugins.svn.wordpress.org/calendardrop/) is available under GPLv2 or later, as declared in the plugin. See its [included license](https://plugins.svn.wordpress.org/calendardrop/tags/1.4.6/LICENSE) and retain the applicable notices when redistributing it. You can use the free plugin with your own AI key, subject to your provider's charges. Optional CalendarDrop processing follows the existing [service terms](https://calendardrop.pennerstrategy.com/terms); access to plugin source does not include hosted processing capacity. No public standalone SDK or GitHub client package is available yet.

## Set up the WordPress site

1. Install and activate CalendarDrop. For native event drafts, activate your supported calendar plugin and select it as the import destination in CalendarDrop settings. In WordPress **Settings → General**, select a named city timezone such as Los Angeles.
2. Choose who handles the AI processing. **Use my own AI key** uses the provider, model and credentials configured in CalendarDrop's settings; a CalendarDrop subscription is not required. **Use CalendarDrop credits** includes processing and uses your site's event credits.
3. For CalendarDrop processing, open **CalendarDrop → Subscription**. Follow the account connection steps for your trial or paid license. Then select **Use CalendarDrop credits** and choose **Save choice**. You must save this setting after connecting your account. [See the full connection steps](https://calendardrop.pennerstrategy.com/help).
4. Open **CalendarDrop → Settings → Advanced Integrations → Technical Webhook Details**. Copy **Webhook Target URL** and configure the **Secret Token** in your integration's secure credential store. Use the generated URL because WordPress permalink settings can change its form.
5. Check that you have permission to send the source to this site. Test with one fictional event, read the response and check the draft. Test imports can use provider processing and draft credits.

Only the site owner or an authorized administrator should connect an integration. Keep webhook secrets, connection codes, license keys, provider keys and passwords out of chats and model prompts. Store them in your integration's credential settings. If a webhook secret is exposed, regenerate it in WordPress and update the integration.

## Submit event text

Send **POST** to the copied WordPress webhook URL, usually `https://your-wordpress-site.example/wp-json/calendardrop/v1/ingest`.

Set these headers in the integration:

```http
Content-Type: application/json
X-CalendarDrop-Secret: <secret supplied by the credential store>
```

Example request with a fictional event:

```json
{
  "subject": "Fictional event submission",
  "text": "Paper Lantern Making Circle. July 16, 2038, 6:00 PM to 7:15 PM, America/Los_Angeles. Venue: Alder Workshop Room. Organizer: Fictional Lantern Collective. Admission: Free. Website: https://example.org/lantern-circle. Bring plain paper. Materials provided."
}
```

`text` is the event source. Include the actual event title, date, local time, location and other available details there. `subject` is an optional log label, not a substitute for the event body. An optional `sender` string can carry the submitting sender; omit it if it is not needed. If no event website is extracted, the plugin may use the sender's non-consumer email domain as a fallback website, so include the event's real URL when known.

The webhook also accepts form fields and common email-forwarding aliases: `body-plain`, `stripped-text`, `TextBody`, `text`, then `body`, in that order. Send one body field, as a string. Subject aliases are `subject` and `Subject`; sender aliases are `sender`, `from` and `From`. To forward email, set up a separate forwarding service. CalendarDrop does not include a mailbox.

Send the event text itself. This route does not accept an `events` array for direct insertion, fetch a URL's contents, or process attachments merely because their names or links appear in the body. Use the upload workflow for files. Use the secret header rather than placing a secret in a URL that could be logged or shared.

## Limits and credits

- Subscription text must be nonempty valid UTF-8, at most **30,000 characters** and **120,000 bytes**. A response can contain up to **30 events**. Make sure your allowance covers the expected number of new drafts.
- When you use your own AI key, your host and provider set the request limits. These CalendarDrop text limits do not apply to every provider setup.
- One new subscription draft uses one credit. Skipped duplicates and failed draft creations release their reservations after WordPress confirms the outcome. An empty result uses no draft credits. A flagged duplicate that creates a new review draft is still a new draft.
- Draft credits do not cover unlimited processing attempts. Repeated attempts, service capacity or an account review can pause imports even when credits remain.
- Send one request at a time per site. Subscription imports use a local lock while creating drafts and confirming outcomes.

See [current plans](https://calendardrop.pennerstrategy.com/) and [service terms](https://calendardrop.pennerstrategy.com/terms) before choosing a paid allowance.

## Check the import result

The response lists event IDs, results and counts. This shortened example shows one new draft:

```json
{
  "status": "success",
  "event_id": 123,
  "events_created": 1,
  "events_merged": 0,
  "events_skipped": 0,
  "events_failed": 0,
  "total_events": 1,
  "events": [
    {
      "event_id": 123,
      "status": "success",
      "message": "Event imported successfully."
    }
  ]
}
```

**HTTP 200 alone does not mean every event succeeded.** Inspect `events_failed`, the other counts and each item in `events`. Event statuses can include `success`, `fallback_success`, `skipped`, `merged` and `error`. The overall status can also be `batch_success`. Use the status fields in your code. Message wording can change. An `edit_link` can be empty for an unauthenticated webhook caller. Review drafts through WordPress.

For subscription imports, `replayed: true` means CalendarDrop returned an existing result. The counts describe the original import, not new drafts from the repeat request. Changing your destination does not move existing drafts. A saved import returns its original result; changing the source, date context or site settings can start a new import. A `subscription_notice` can mean drafts were saved but their credit confirmation is pending. Check WordPress and choose **CalendarDrop → Subscription → Check pending imports** instead of resubmitting just to confirm credits.

## Duplicates, interruptions and errors

By default, CalendarDrop skips matching events. The plugin uses title/date-based checks, not an event ID supplied by your integration. Optional **flag** handling creates a separate review draft; **merge** updates an existing draft and skips non-drafts. Check your site's setting before automating submissions. Own-provider mode can make an AI request before identifying a duplicate.

The WordPress webhook does not accept a caller-controlled idempotency key. Subscription mode derives its own source, site, timezone and date identity and can recover recorded results. Changed text, dates or site settings can produce a new import.

If a request times out, pause automatic retries. Check WordPress drafts, the import log and pending confirmations. Keep the original source and response, then follow the retry instructions. If you cannot tell whether the import finished, contact support before changing or resending the source.

- **400:** configuration is missing or the text body is empty. Plugin errors generally contain an `error` string. Correct the request or site setup first.
- **401 or 403:** authentication or permission was refused. WordPress normally returns `code`, `message` and `data.status`. Verify the target site and secret without exposing them in logs.
- **500 or 502:** extraction, draft creation or the subscription request failed. Read the error and inspect WordPress before retrying. A service limit may also return one of these codes.
- Your host, firewall or WordPress security plugin may return other errors. Save the status and response for support, with any secrets removed.

## File integrations

For manual uploads, use **Upload Flyer** or the optional private upload page. Subscription mode accepts PNG, JPEG, WebP and native PDFs up to **4 MiB**. Text-based `.docx` files use extracted document text, subject to the text limit; embedded images are not the document's text source. The plugin's default decoded upload cap is **10 MiB**, and your host can impose a smaller request limit.

For automated file uploads, enable the separate WordPress route `POST /wp-json/calendardrop/v1/upload-flyer`. Configure the correct REST URL for your WordPress permalink settings. The **Private Upload URL** shown in settings opens the human upload page; it is not the REST target. The file route has a different header, `X-CalendarDrop-Upload-Secret`, and uses the private upload link's secret, not the text webhook secret. Keep that secret in the integration's credential store. Send JSON string fields `file_data` (base64 file bytes or a base64 data URI), `file_name` and `file_type` (MIME type). This is not a multipart upload. Send the complete original file, not a first-page preview as a substitute for a PDF. Base64 increases the request size.

The private upload route defaults to 20 requests per hour per IP-based bucket; site configuration can change that limit. This limit does not describe the text webhook. Its success response includes `success: true` and the import result; errors generally return HTTP 400 with an `error` message. Authentication and host-level errors can differ. Check every event result and follow the retry guidance above.

## Permission and data handling

Submit only material you have permission to process. Keep unrelated correspondence, confidential records and secrets out of event source text. Give your AI tool permission for a specific site and task. Connecting paid accounts and starting chargeable imports also require the owner's authorization.

In subscription mode, the selected source passes through CalendarDrop to Google Gemini for extraction. WordPress stores drafts and may retain uploads and import logs. CalendarDrop retains extracted results for recovery and separate account, billing and usage records. Own-provider mode sends extraction requests to the provider configured in WordPress. Read the [data-use details](https://calendardrop.pennerstrategy.com/privacy) for retention and provider handling.

For help, email [josh@pennerstrategy.com](mailto:josh@pennerstrategy.com?subject=CalendarDrop%20integration%20help) with your CalendarDrop and WordPress versions, the request time and the error message. Remove secrets first, and do not send confidential source documents. [Back to CalendarDrop](https://calendardrop.pennerstrategy.com/).
