Optimizely Email Messages API
The Email Messages API from Optimizely — 8 operation(s) for email messages.
Operations 12
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“How do I list the email messages the commerce platform has logged?”
“Can I filter email messages by subject or sent date?”
Tell an agent
List all logged email messages.
List email messages matching {filter}.
POST
/api/v1/admin/EmailMessages
Record a new email message · Post a new entity to EntitySet EmailMessages
#
Ask an LLM
“How do I add an email message record with a subject and body?”
“What fields does a new email message entry require?”
Tell an agent
Create an email message with subject {subject} and body {body}.
Log a new email titled {subject} sent on {sentDate}.
GET
/api/v1/admin/EmailMessages({id})
Get one email message · Returns the entity with the key from EmailMessages
#
Ask an LLM
“Is there a call to read a single email message by its ID?”
“Can I see the subject and body of a specific logged email?”
Tell an agent
Get email message {id}.
Show the subject and body of email {id}.
PUT
/api/v1/admin/EmailMessages({id})
Replace an email message record · Replace entity in EntitySet EmailMessages
#
Ask an LLM
“What's the call to overwrite an email message record completely?”
“Do I have to send both subject and body when replacing an email record?”
Tell an agent
Replace email message {id} with subject {subject} and body {body}.
Overwrite the full record of email {id}, subject {subject}.
DELETE
/api/v1/admin/EmailMessages({id})
Delete one email message · Delete entity in EntitySet EmailMessages
#
Ask an LLM
“How do I delete a single logged email message?”
“Can I make an email message delete conditional on its ETag?”
Tell an agent destructive · confirm first
Delete email message {id}.
Delete email {id} only if the ETag matches {etag}.
PATCH
/api/v1/admin/EmailMessages({id})
Update fields on an email message · Update entity in EntitySet EmailMessages
#
Ask an LLM
“How do I change just the subject of an existing email message?”
“Can I correct the sent date on an email record without replacing it?”
Tell an agent
Change the subject of email {id} to {subject}.
Set the sent date of email {id} to {sentDate}.
GET
/api/v1/admin/EmailMessages/Default.Default()
Get the default email message template · Call operation Default
#
Ask an LLM
“What does a default, empty email message record contain?”
“Where can I get default values for a new email message?”
Tell an agent
Get the default email message template.
Show me the default fields for a new email message.
DELETE
/api/v1/admin/emailmessages/delete
Bulk delete email messages · Email messages delete route
#
Ask an LLM
“Can I delete a batch of email messages at once?”
“Can I clear out many logged emails by passing their IDs?”
Tell an agent destructive · confirm first
Bulk delete email messages {ids}.
Remove all of these email records: {ids}.
GET
/api/v1/admin/emailmessages({key})/customproperties({custompropertyKey})
Get a custom property on an email · Email messages get custom property by key and custompropertykey
#
Ask an LLM
“Where would I read a custom property stored on an email message?”
“Can I fetch an extra attribute attached to a logged email?”
Tell an agent
Get custom property {prop} on email message {key}.
Show custom field {prop} for email {key}.
GET
/api/v1/admin/emailmessages({key})/emailmessageaddresses({emailmessageaddressKey})
Get a recipient address of an email · Email messages get email message address by key and emailmessageaddresskey
#
Ask an LLM
“Who was an email message addressed to?”
“Can I read one recipient address on a logged email?”
Tell an agent
Get address {address} on email message {key}.
Show recipient entry {address} for email {key}.
GET
/api/v1/admin/emailmessages({key})/emailmessageattachments({emailmessageattachmentKey})
Get an attachment on an email · Email messages get email message attachment by key and emailmessageattachmentkey
#
Ask an LLM
“Can I retrieve an attachment from a logged email message?”
“What files were attached to a particular email?”
Tell an agent
Get attachment {attachment} on email message {key}.
Show file attachment {attachment} from email {key}.
GET
/api/v1/admin/emailmessages({key})/emailmessagedeliveryattempts({emailmessagedeliveryattemptKey})
Get a delivery attempt for an email · Email messages get email message delivery attempt by key and…
#
Ask an LLM
“Did a particular email delivery attempt succeed?”
“Can I see the details of one send attempt for an email message?”
Tell an agent
Get delivery attempt {attempt} for email message {key}.
Show send attempt {attempt} on email {key}.