Skip to content

SOCEO APIs

Business context, accessible from code.

Bring SOCEO into your product. Explore how a query identifies its sources, how an action requests approval and how to follow the result.

Illustrative example

Query from the campaign agent

Which operational change needs attention?

Illustrative answer

Falling conversion rates are linked to outdated ad creatives.

  1. Query context
  2. Create an action
  3. Track a result

The reading uses 2 authorized sources and declares 1 gap. The proposed action goes to Marketing, with a seven-day deadline and human approval before it becomes work.

Sources and gaps in this example(3)
  • OrdersAuthorized source used in the answer
  • CampaignsAuthorized source used in the answer
  • 1 gapDeclared with the answer, never presented as certainty

Who uses the API, and what for?

Illustrative example. A product team connects the company’s campaign agent to the SOCEO APIs. Instead of receiving the whole business in every prompt, the agent queries context under its own identity and gets back the reading, the sources behind it and what is still unknown.

For the people building the product
Three calls cover the path: query the context, create an action from that reading and track the result. The SOCEO backend applies the scope of the identity making the request, so your code does not have to reimplement the business’s permissions.
For the team that decides
The action arrives as a proposal with an owner, a deadline and an approval step. It only becomes work after human review. When the work is done, the result is compared with the approved objective and returned to the context to reflect what actually happened.

Documentation

Integration examples

Choose an operation to read the code and inspect its fields. You can copy any example.

Integration example

const leitura = await soceo.contexto.consultar({
  identidade: "agente-campanhas",
  pergunta: "Which operational change needs attention?",
  incluir: ["fontes", "permissoes", "lacunas"]
});

return {
  resposta: leitura.contexto,
  fontes: leitura.fontes,
  lacunas: leitura.lacunas
};
Response with sources, permissions and gaps Operational API

Integration example

const acao = await soceo.acoes.criar({
  aPartirDe: leitura,
  objetivo: "Review the change with the responsible team",
  governanca: {
    dono: "marketing",
    prazo: new Date(Date.now() + 7 * 864e5).toISOString().slice(0, 10),
    exigeAprovacao: true
  }
});

return acao;
Response with sources, permissions and gaps Operational API

Integration example

const resultado = await soceo.resultados.acompanhar({
  trabalho: acao.id,
  compararCom: "objetivo-aprovado",
  devolverAoContexto: true
});

return {
  estado: resultado.estado,
  evidencias: resultado.fontes,
  proximoPasso: resultado.recomendacao
};
Response with sources, permissions and gaps Operational API

Build on business context

A shared layer between what the business knows and what you want to build.

The SOCEO APIs connect data, sources, permissions and actions in an operational layer that other applications can query with confidence.

The SOCEO APIs start from operational context: the right data, within the right scope, with a clear path back to the source.

Sources and systems

  • Customer relationships
  • Documents
  • Operations

Operational layer

  • Context
  • Permissions
  • Provenance

Declared gaps

SOCEO API Governed boundary

What you build

  • Agents
  • Products
  • Workflows
  • Provenance preserved
  • Identity respected
  • Results returned to context
01

Contextual answer

Context

Query related information while preserving its source, freshness and permissions.

02

Work scope

Agents

Give agents a structured view of the operation without repeating the whole business in every prompt.

03

Governed execution

Workflows and actions

Turn answers into controlled work, with approval, an owner, a deadline and history when needed.

API capabilities

An API to query, decide and act with real context.

Query what the business knows, preserve the source of every answer and turn context into controlled work.

SOCEO API · Example request and response

01 · Input

Endpoints

  • POST/v1/context/query

    Query context

    Ask about business entities, relationships and events.

  • GET/v1/sources/{id}

    Trace sources

    Go back to the source behind any answer, decision or action.

  • GET/v1/events

    Follow events

    Receive relevant changes with history and context preserved.

  • POST/v1/actions

    Create actions

    Turn an answer into work with an owner, a deadline and approval.

SOCEO core

Context API

Operational

  • Context
  • Identity
  • Permissions
  • Gaps

Response

Structured response

200 OK
{
  "contexto": { ... },
  "fontes": [ ... ],
  "lacunas": [ ... ],
  "proxima_acao": { ... }
}
  • Products
  • Agents
  • Workflows

OpenAPI

Contracts, references and integration examples.

Authorization

Scope applied to the identity of each person or agent.

Observability

A complete trail between query, source, action and result.

Security and authority

Useful context, with the business still in charge.

The API is one boundary of the platform. It does not replace the rules that define who can see, interpret or do something.

Central rule

SOCEO backend

Operational authority

Identity received

  • People and agents share one perimeter

    An agent’s identity respects the permissions attached to the same data.

  • The backend is the authority

    The interface makes the request. Business rules decide what can be queried or executed.

Rule applied

  • Sensitive actions can stop for a human

    Approval, an owner and a scope can be required before a proposed action becomes work.

  • A gap never becomes certainty

    Missing, late or conflicting data must appear as a limit, never as an invented conclusion.

Authorized return

  • Sources travel with important answers

    The source stays navigable for review, explanation and challenge when needed.

  • Results flow back into context

    Answers, decisions and actions return to the context to reflect what actually happened.

Who can see, use and act on each answer.

Read the full motor guide

Frequently asked questions

Everything you need to get started.

Understand the platform
How do I start using the SOCEO APIs?

Go to the documentation, create your key and choose the workspace whose context your application will query.

What can I build?

Products, agents and workflows that query business context, preserve sources and permissions and turn answers into controlled actions.

How does SOCEO protect permissions and sources?

The backend applies the scope of the identity making the request and returns source, permissions and gaps with the relevant answers.

Where can I find the documentation?

The documentation is on this page, with OpenAPI contracts, references and integration examples.

Can I connect agents to the APIs?

Yes. Each agent receives its own identity, objective, tools and permissions to work within the perimeter defined by the business.

SOCEO APIs

Build on a business AI can understand.

Read the documentation, connect your application and build with real business context.

Documentation, references and integration examples