v1

latestOpenAPI 3.1.02026-07-2295105298.6 KB
Basics

Create Location

Creates a location for a website. country is case-insensitive and stored as its canonical label. Any attached prompt_ids must allow the location's country.

post/api/v1/locations

Request body

website_idstring uuid required
locationstring required

Location name. Trimmed; blank rejected.

countrystring required

Supported country (case-insensitive).

prompt_idsstring[]

Active prompt ids to attach.

Example request

{
  "location": "New York",
  "country": "United States"
}

Response

Location created

idstring uuid required
locationstring required
countrystring required