Llm

For instructions on how to authenticate to use this endpoint, see API overview.

Endpoints

POST

Create llm analytics translate

Translate text to target language.

Required API key scopes

llm_analytics:write

Request parameters

  • text
    string
  • target_language
    string
    Default: en

Example request

POST /api/projects/:project_id/llm_analytics/translate
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl
-H 'Content-Type: application/json'\
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/projects/:project_id/llm_analytics/translate/\
-d text="string"

Example response

Status 200

Community questions