Prompts

Process a prompt request

post

Processes a user prompt and returns an AI-generated response. The request must contain a valid API key.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Body
promptstringRequired

The question that the user sends to the AI agent

Example: How does quantum entanglement work?
Responses
200

Successfully processed the prompt and returned a response.

application/json
post
/external/prompts

Create a prompt request

post

Creates a user prompt and returns an ID. The request must contain a valid API key.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Body
promptstringRequired

The question that the user sends to the AI agent

Example: How does quantum entanglement work?
Responses
200

Successfully created the prompt and returned an ID.

application/json
post
/external/prompts/async

Get a response on prompt request

get

Returns a response on a user prompt by ID. The request must contain a valid API key.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Path parameters
idstringRequired

Provide the prompt ID to process.

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Responses
200

Successfully returned a response on the prompt. Returns null if the prompt is not ready.

application/json
get
/external/prompts/{id}/response-on

Last updated