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?
tokenTrackingIdstringOptional

The ID of the token tracking

Example: any-token-id-323jbb3242dwfwefew34234
Responses
chevron-right
200

Successfully processed the prompt and returned a response.

application/json
statusstring · enumRequired

Response status

Example: completedPossible values:
totalTokensnumber · nullableRequired

Total number of tokens used for the request

Example: 12345
responsestring · nullableRequired

The AI-generated response to the user prompt

Example: The theory of relativity explains how time and space are linked
errorstring · nullableRequired

Response error

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?
tokenTrackingIdstringOptional

The ID of the token tracking

Example: any-token-id-323jbb3242dwfwefew34234
Responses
chevron-right
200

Successfully created the prompt and returned an ID.

application/json
promptIdstringRequired

The ID of the prompt

Example: 1234567890
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
chevron-right
200

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

application/json
statusstring · enumRequired

Response status

Example: completedPossible values:
totalTokensnumber · nullableRequired

Total number of tokens used for the request

Example: 12345
responsestring · nullableRequired

The AI-generated response to the user prompt

Example: The theory of relativity explains how time and space are linked
errorstring · nullableRequired

Response error

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

Last updated