metacore Start a pilot

Developers · Interfaces

Every operation, for every caller.

One contract in Protocol Buffers serves every call, over Connect. The back office, the CLI, the Terraform provider, the SDKs and MCP are all clients of it. There is no private API and no plugin.

ServiceWhat it does
ReadServiceGet, find, list, search and count records, each as it resolves at the scope values of the read. Read runs, jobs and workflow instances.
WriteServiceSubmit a change set, decide a held run, undo a run and roll back. Deploy a schema, call a procedure, start a workflow.
SchemaServiceCheck a schema without deploying it, and read its versions and its deployments.
EventServiceSubscribe to the events of a domain, from a cursor.
FileService, UploadServiceUpload the files of records, and change sets too large for one message.
DirectoryServiceEnvironments, scopes, domains, hostnames and cells. Erasure and export.
IdentityServiceSign-in, people, identity providers, profiles and grants.
AuditService, MeterServiceThe audit trail, and exact counts of what an org does and holds.

One contract

A refusal carries a code and a reason, so a caller can act on it. A change carries a call key: sending it again changes nothing twice.

Calls

One contract, and what every call can rely on.

What the back office does, your code can do too, through the same operations.

Every callWhat it can rely on
Call keysA change carries a call key. Sent again within a day, it changes nothing twice.
Read your writesAn answer carries a position. A call that sends it back sees at least that state.
ScopesA read names its scope values, and returns each record as it resolves there.
ProblemsA change set with a problem starts no run, and the refusal lists every problem.

The rules of a call

A long result returns in pages, and a file travels as an upload, never in a message.

ClientHow it uses the API
Back officeEvery screen is a client of it.
CLIEach command is one or more calls.
Terraform providerIt keeps the setup of an org as code.
SDKsGenerated whole from the contract.
MCPEach tool is one operation.
Your appsWith a key, or for a person through OAuth.

Six clients, one API

No client has an operation that the others lack.

Request

The address names the org and the domain.

A call is an HTTP request over Connect, in binary Protocol Buffers or in JSON. Its address says which org and which domain it is for.

request.json
{
  "entity": "setting",
  "key": [{
    "name": "name",
    "value": {"text": "export.batch"}
  }],
  "scope_values": [
    {"scope": "team", "value": "support"}
  ]
}
Terminal
$ curl "$METACORE_URL/production/configuration\
/metacore.api.v1.ReadService/GetRecord" \
    -H "Authorization: Bearer $METACORE_TOKEN" \
    -H "Content-Type: application/json" \
    -d @request.json

One read, with no SDK

It returns the setting as it resolves for the support team.

Part of a callWhere it travels
OrgThe host: your org’s platform host, or a hostname that you added.
Environment, domainThe start of the path, for a call to a domain.
ProcedureThe rest of the path: the service, then the procedure.
CallerThe Authorization header: a token, or an app’s key.
PositionThe Metacore-Position header, as the last answer gave it.
Call keyThe field call_key of a request that changes something.

Where each part travels

A domain keeps its address when it moves to another cell.

Sign-in

A person signs in. An app calls with a key.

An app holds nothing until an admin gives it a grant. Acting for a person, it holds only what both of them are granted.

CallerHow it signs in
PersonThrough your identity provider, with a passkey or with an email code.
App, for itselfWith a key. An owner gives it, and may set when it ends.
App, for a personThrough OAuth 2.1 with PKCE. The person signs in to the org, then consents once.
AI agentAs any app does. An owner says that it is an agent when adding it.

Four callers

Revoking a key, a grant, a consent or a sign-in takes effect within one minute.

Keys

Ends withGivenLast calledEnds
9fQ2Mar 3, 2026, 9:12 AMDec 3, 2026, 2:40 PMNever
x7LcDec 3, 2026, 2:36 PMNeverMar 3, 2027, 2:36 PM
m4TzApr 2, 2026, 11:05 AMApr 2, 2026, 11:20 AMNever

An app’s keys

A key is shown once, when an owner gives it: the platform keeps only its hash.

Refusals

A refusal names its reason.

A refused call is a Connect error with a detail that your code reads. Act on the reason, never on the message text.

A refusal carriesWhat it holds
CodeOne Connect code for each reason, such as not_found.
ReasonA name of the contract, such as RECORD_NOT_FOUND.
FieldThe field of the request that the refusal is about.
Retry delayHow long to wait, where time alone lifts the refusal.
ProblemsFor a change set or a schema, a second detail with every problem.

What a refusal carries

The contract gains reasons over time. Treat one that your code does not know by its code.

ReasonWhat to do
FIELD_INVALIDCorrect the field that the refusal names.
CALL_KEY_REUSEDUse a new key for a new call.
SIGN_IN_REQUIREDSign in again, or send a key that has not ended.
RATE_LIMITWait for the retry delay. The call did nothing.
POSITION_NOT_REACHEDWait for the retry delay, then send the same position.

Some reasons

Each org and each app has its own rate limits, so a noisy caller slows only itself.

See also

Build your domain.

Declare its schema, and take it to production, self-hosted or in a managed region.

Briefing