Optimizely Personas API
The Personas API from Optimizely — 10 operation(s) for personas.
Operations 14
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 every persona set up for personalization in Optimizely Configured Commerce?”
“Can I filter the persona list, say to only default personas, and count the results?”
Tell an agent
List all personas.
List personas matching {filter}, returning the first {top}.
Ask an LLM
“What do I need to define a new shopper persona with a name and description?”
“Can a new persona be auto-assigned to guest users after a minimum number of actions?”
Tell an agent
Create a persona named {name} described as {description}.
Add persona {name} ({description}) that activates on {activateOn} and boosts search by {boostValue}.
GET
/api/v1/admin/Personas({id})
Get a persona by ID · Returns the entity with the key from Personas
#
Ask an LLM
“How can I see the settings of one persona, like its activation dates and boost value?”
“Which related records can I expand when reading a single persona?”
Tell an agent
Show persona {id}.
Get persona {id} with {expand} expanded.
Ask an LLM
“Can I overwrite a persona with a full new definition in one call?”
“Do I have to resend the persona's name and description when replacing the whole record?”
Tell an agent
Replace persona {id} with name {name} and description {description}.
Overwrite persona {id} entirely, setting its deactivation date to {deactivateOn}.
Ask an LLM
“How do I permanently delete a single persona?”
“Can I guard a persona delete with an If-Match ETag?”
Tell an agent destructive · confirm first
Delete persona {id}.
Delete persona {id} if its ETag is still {etag}.
Ask an LLM
“Can I turn on search boosting for an existing persona without replacing it?”
“How do I change only a persona's sequence or boost value?”
Tell an agent
Patch persona {id} to enable search boost with value {boostValue}.
Update persona {id} so its sequence is {sequence}.
GET
/api/v1/admin/Personas/Default.Default()
Get default values for a new persona · Call operation Default
#
Ask an LLM
“What defaults does the admin API fill in for a persona before it's created?”
“Is there a blank persona template to start from?”
Tell an agent
Get the default persona template.
Show the pre-filled values for a new persona.
POST
/api/v1/admin/Personas/Default.archive
Archive personas (OData action) · Call operation archive
#
Ask an LLM
“Can I archive personas I no longer use instead of deleting them, via the Default.archive action?”
“How do I archive several personas with the POST archive action?”
Tell an agent
Archive personas {ids} using the Default.archive POST action.
POST to the persona archive action for IDs {ids}.
Ask an LLM
“Is there a DELETE-style personas/archive route for archiving personas?”
“Which endpoint archives personas using the HTTP DELETE verb?”
Tell an agent destructive · confirm first
Archive personas {ids} through the DELETE personas/archive route.
Send a DELETE to the persona archive route for {ids}.
Ask an LLM
“Can I bulk delete a list of personas in one call?”
“How do I permanently remove multiple personas rather than archiving them?”
Tell an agent destructive · confirm first
Bulk delete personas {ids}.
Permanently remove all personas in {ids}.
GET
/api/v1/admin/personas({key})/categories({categoryKey})
Get a category assigned to a persona · Personas get category by key and categorykey
#
Ask an LLM
“How do I check a specific category tied to a persona?”
“Which category records are linked to a persona for personalization?”
Tell an agent
Get category {categoryKey} of persona {key}.
Show persona {key}'s linked category {categoryKey}.
GET
/api/v1/admin/personas({key})/customproperties({custompropertyKey})
Get a custom property on a persona · Personas get custom property by key and custompropertykey
#
Ask an LLM
“Can I read one custom property value stored on a persona?”
“Where do I find custom attributes my team added to a persona?”
Tell an agent
Get custom property {custompropertyKey} on persona {key}.
Show persona {key}'s custom property {custompropertyKey}.
GET
/api/v1/admin/personas({key})/userprofiles({userprofileKey})
Get a user profile assigned to a persona · Personas get user profile by key and userprofilekey
#
Ask an LLM
“Is a particular user profile assigned to a given persona?”
“How do I read one user profile under a persona?”
Tell an agent
Get user profile {userprofileKey} under persona {key}.
Check whether persona {key} includes user profile {userprofileKey}.
Ask an LLM
“Which personas apply to the shopper in the current storefront session?”
“What endpoint works out personas for the signed-in user?”
Tell an agent
Calculate personas for the current session.
Work out which personas the current shopper matches.