Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Choosing an interface for an agent

The REST API, expservices, ezjscore functions and the console on the server compared for AI agents - what each one can read and write, how it authenticates, where the agent can run, whether writes are drafts or…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/ai-agents/agentic-workflows/choosing-an-interface.md

On this page

Choosing an interface for an agent

This page is for developers who connect an AI agent to Exponential and must pick an interface. All of them act as an account and respect that account's policies; they differ in what they reach, how they authenticate and where the agent can run. An MCP server is not part of Exponential today, so an agent uses one of the interfaces below.

Contents

  1. Side by side
  2. When to use the REST API
  3. When to use expservices
  4. When to use ezjscore functions of your own
  5. When to use the console on the server
  6. Writes: drafts or publications

Side by side

REST APIexpservicesezjscore function of your ownConsole on the server
Ships with the root repositoryYes (kernel)Yes (default distribution)Yes (ezjscore)Yes (kernel)
ReachesNodes, children, fields, objects; create and remove in v2Over a thousand named services of the administrationWhat you writeSettings with their source files, access checks, logs, the audit trail, the help
AuthenticatesOAuth2 token or personal API key with scopesSession, or a personal token expt_...Session; your own policy checkThe system user that runs the command
WritesAs the key's owner, limited by scopeAs the token's user; POSTAs you defineAvoid: give a coding agent read commands only
Runs whereAnywhere over HTTPSAnywhere over HTTPSUsually the browserOn the server, or a development copy
Read nextAgents and the REST APIAgents and expservicesJSON endpoints with ezjscoreA diagnosis workflow with the console

When to use the REST API

  • The agent reads published content for another system, or creates content in a known place.
  • It runs elsewhere and talks HTTPS.
  • You want the narrowest credential: a personal API key with only the read scope (A read-only API key, step by step).

When to use expservices

  • The agent needs administration functions beyond content: users, caches, cronjobs, shop, feeds, tags, the audit.
  • You want a catalog of services with access rules and a write flag per service, which maps naturally onto a tool list for a model.

When to use ezjscore functions of your own

  • Your own page in the administration or on the site calls the agent, and the agent needs one small, specific answer that no existing interface gives.
  • You write the policy check yourself, as the guide shows. Prefer expservices if the function might be useful to others (JSON endpoints with ezjscore).

When to use the console on the server

  • A coding agent works on a project and needs runtime facts: which file sets a setting (./console exp:ini where), what an account may do (./console exp:access:check), what the logs say (./console exp:logs), and what the documentation says (./console exp:help search).
  • Use it on a development or staging copy. A command runs as the system user that starts it, with access to the whole installation, so it is not an interface for agents on production.

Writes: drafts or publications

Know what a write produces before an agent makes one:

InterfaceA content write produces
Exponential IntelligenceA draft of the editor, for review
REST API v2 createA published object ("create and publish")
expservices content writesWhat the service declares; check its catalog entry

If people must review agent output before it goes public, read Keeping a person in the loop.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x