Skip to main content
POST
/
agents
/
{name}
/
invoke
JavaScript
import Reminix from '@reminix/sdk';

const client = new Reminix({
  apiKey: process.env['REMINIX_API_KEY'], // This is the default and can be omitted
});

const response = await client.agents.invoke('name', {
  input: { prompt: 'Summarize the key points of machine learning' },
});

console.log(response.execution_id);
{
"output": "Analysis complete. Found 3 trends in the data.",
"execution_id": "exec_abc123"
}

Authorizations

Authorization
string
header
required

API Key or Personal Access Token (PAT). When using PAT, include X-Project header.

Path Parameters

name
string
required

Unique, URL-safe agent name within the project

Minimum string length: 1

Body

application/json

Request body with input object and optional stream/context fields.

input
object

Input data for the agent

stream
boolean

Enable streaming response (SSE)

context
object

Optional context for the agent execution

Response

Agent execution successful

Response with output from the agent and optional execution ID.

output
any | null

Output from the agent

execution_id
string

Execution ID for tracking