Skip to main content
POST
/
api
/
v1
/
chat
/
execute-gemini-prompt
Execute Gemini Prompt
curl --request POST \
  --url http://localhost:8000/api/v1/chat/execute-gemini-prompt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": {
    "type": "negative_keyword_recommendations",
    "prompt": "<string>",
    "id": 123,
    "prompt_variables": [
      "<string>"
    ],
    "prompt_formatting_data": {},
    "formatted_prompt": "<string>",
    "date_added": "2023-11-07T05:31:56Z",
    "date_updated": "2023-11-07T05:31:56Z",
    "model_name": "<string>",
    "temperature": 123
  },
  "prompt_request": {
    "extra_data": {}
  }
}
'
{}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

campaign_id
integer
required
customer_id
integer
required
login_customer_id
integer | null
as_user_id
integer | null
gemini_api_key
string | null
model_name
string | null
temperature
number | null

Body

application/json
prompt
FormattedGeminiPromptSchema · object
required

The schema for a formatted Gemini prompt.

prompt_request
GetFormattedPromptRequestSchema · object

The schema for a request to get a formatted prompt.

Response

Successful Response

The response is of type Response Execute Gemini Prompt Api V1 Chat Execute Gemini Prompt Post · object.