/
/Optimizely Agent API
DocsSign in
Sign in
  • APIs
  • Generators
  • Stacks
  • Projects
  • Docs
  • History
  • Schema
Checked 1h ago · Updated 1mo ago
  • getReturn the Optimizely config for the given environment
  • getReturn the datafile for the given environment. If you need strict consistency, you can pass the datafile to other Optimizely instances. so that all initialize from exactly the same datafile version (rather than each fetching the datafile separately from the Optimizely CDN).
  • postDecide makes feature decisions for the selected query parameters.
  • postLookup returns saved user profile.
  • postSave saves user profile.
  • postTrack event for the given user.
  • postSend event to Optimizely Data Platform (ODP).
  • postActivate selected features and experiments for the given user.
  • postOverride an experiment decision for a user
  • postGet JWT token to authenticate all requests.
  • postBatch multiple API endpoints into one request.

Track event for the given user.

Send event and user details to Optimizely analytics backend, so you can see metrics for an experiment. You can view metrics either on your Results page or as a data export.

post/v1/track

Query parameters

eventKeystring required

Key of the event we're tracking

Request body

eventTagsobject
userIdstring
userAttributesobject

Response

Valid response, event received

Changes