Skip to main content
POST
/
api
/
v1
/
chat
/
get_formatted_gemini_prompts
/
{prompt_id}
Get Formatted Gemini Prompt
curl --request POST \
  --url http://localhost:8000/api/v1/chat/get_formatted_gemini_prompts/{prompt_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "extra_data": {}
}
'
{
  "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
}

Authorizations

Authorization
string
header
required

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

Path Parameters

prompt_id
integer
required

Query Parameters

campaign_id
integer
required
customer_id
integer
required
login_customer_id
integer | null
as_user_id
integer | null

Body

application/json

The schema for a request to get a formatted prompt.

extra_data
Extra Data · object

Response

Successful Response

The schema for a formatted Gemini prompt.

type
enum<string>
required

The types of prompts for the Gemini API.

Available options:
negative_keyword_recommendations,
negative_keyword_shopping_pmax_recommendations,
keyword_pause_recommendations,
double_check_pause_keywords_recommendation,
keyword_pause_context_validation,
headline_recommendations,
description_recommendations
prompt
string
required
id
integer
required
prompt_variables
string[]
required
prompt_formatting_data
The prompt formatting data · object
required
formatted_prompt
string
required
date_added
string<date-time> | null
date_updated
string<date-time> | null
model_name
string | null
temperature
number | null