Skip to main content
POST
AI Instruction

Overview

API endpoint for sending specific instructions to your AI. This endpoint allows you to interact with different AI models and execute specific commands.

Authorization

string
required
Your Personal AI API key

Headers

string
required
Must be set to application/json

Query Parameters

string
required
  • chatgpt
  • search
Example
Example

Body

string
required
Text instruction to send to your AI
Example
string
Additional context for the instruction
Example
string
required
The hyphenated text below the AI’s name when clicked into a Persona.DomainName
Example
string
Name of the user sending the request
Example
string
Session identifier for maintaining conversation context
Example
string
Source application name
Example
boolean
Flag to indicate if the instruction should be treated as a message
Example

Example Request

Example

Example Response

string
The AI’s response to the instruction
number
Confidence score of the AI’s response
string
The name given to the AI persona
string
The Id of the conversation that was passed or automatically generated
string
The source from which the request was initiated from as specified in the original API request
Example Success Response

Example cURL

cURL

Error Codes

Example Error Response