The Email Campaign object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: Lead
Default: __user
{
"id": "email-campaign_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"campaign_name": "campaign_name_example",
"status": "draft",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"email_campaign_for": "Lead",
"recipient": "recipient_example",
"sender": "__user"
} /api/crm/email-campaign/{id} Retrieve a email campaign
Retrieves the details of an existing email campaign. Supply the unique email campaign ID that was returned from a previous request.
Path parameters
The identifier of the email campaign to retrieve.
Returns
Returns the email campaign object if a valid identifier was provided.
curl https://api.overplane.dev/api/crm/email-campaign/email-campaign_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "email-campaign_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"campaign_name": "campaign_name_example",
"status": "draft",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"email_campaign_for": "Lead",
"recipient": "recipient_example",
"sender": "__user"
} /api/crm/email-campaign List all email campaigns
Returns a list of email campaigns. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of email campaign objects.
curl https://api.overplane.dev/api/crm/email-campaign \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "email-campaign_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"campaign_name": "campaign_name_example",
"status": "draft",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"email_campaign_for": "Lead",
"recipient": "recipient_example",
"sender": "__user"
}
],
"has_more": false,
"total": 1
} /api/crm/email-campaign Create a email campaign
Creates a new email campaign object.
Body parameters
Default: Lead
Default: __user
Returns
Returns the newly created email campaign object if the call succeeded.
curl https://api.overplane.dev/api/crm/email-campaign \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"campaign_name":"campaign_name_example","start_date":"2024-01-15","recipient":"recipient_example"}' {
"id": "email-campaign_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"campaign_name": "campaign_name_example",
"status": "draft",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"email_campaign_for": "Lead",
"recipient": "recipient_example",
"sender": "__user"
} /api/crm/email-campaign/{id} Update a email campaign
Updates the specified email campaign by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the email campaign to update.
Body parameters
Default: Lead
Default: __user
Returns
Returns the updated email campaign object.
curl https://api.overplane.dev/api/crm/email-campaign/email-campaign_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"campaign_name":"campaign_name_example","status":"draft"}' {
"id": "email-campaign_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"campaign_name": "campaign_name_example",
"status": "draft",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"email_campaign_for": "Lead",
"recipient": "recipient_example",
"sender": "__user"
} /api/crm/email-campaign/{id} Delete a email campaign
Permanently deletes a email campaign. This cannot be undone.
Path parameters
The identifier of the email campaign to delete.
Returns
Returns a confirmation that the email campaign has been deleted.
curl https://api.overplane.dev/api/crm/email-campaign/email-campaign_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "email-campaign_abc123",
"deleted": true
}