Skip to main content
POST
/
entities
/
addprompt
curl --request POST \
  --url https://api.geogen.io/v1/entities/addprompt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entityId": "abc123def456...",
  "prompt": "What are the best tools for SEO?",
  "language": "en",
  "geolocation": "us"
}
'
{
  "success": true,
  "promptId": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Format: Bearer wsk_your_api_key

Body

application/json
entityId
string
required

Entity ID

prompt
string

Prompt text (for single prompt mode)

prompts
object[]

Array of prompts (for bulk upload mode)

language
string

Default language code for prompts

geolocation
string

Default geolocation code for prompts

Response

Prompt(s) created successfully

Single prompt response

success
boolean
promptId
string

Created prompt ID