Pular para o conteúdo

/api/v1/mcp (POST)

POST
/api/v1/mcp
curl --request POST \
--url https://api.endless.zaia.app/api/v1/mcp \
--header 'Content-Type: application/json' \
--data '{ "id": "example", "jsonrpc": "2.0", "method": "example", "params": "example" }'

Handles a Zaia MCP request so external clients can operate a workspace and generate dashboards.

Media typeapplication/json

A single JSON-RPC 2.0 message for the Zaia MCP server.

object
id
Any of:
string
jsonrpc
required
string
Allowed values: 2.0
method
required
string
>= 1 characters
params
nullable

Returns the JSON-RPC result for the Zaia MCP request.

Media typeapplication/json
object
error
object
code
required
integer
message
required
string
id
required
Any of:
string
jsonrpc
required
string
Allowed values: 2.0
result
object
key
additional properties
nullable
Example
{
"jsonrpc": "2.0"
}

Accepts a JSON-RPC notification.

Unauthorized.

Media typeapplication/json

The description of a known exception.

object
code

The error code.

string
cta

The error call-to-action.

object
type
required
string
Allowed values: support-contact
url
required
string format: uri
feedback
required

The error feedback.

object
enUs
string
esEs
string
ptBr
string
message
required

The error message.

string
name
required

The error name.

string
Example
{
"cta": {
"type": "support-contact"
}
}