Skip to main content
POST
/
api
/
v1
/
locations
Create Location
curl --request POST \
  --url https://api.athenahq.ai/api/v1/locations \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "website_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "location": "New York",
  "country": "United States",
  "prompt_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "location": "<string>",
  "country": "<string>"
}

Authorizations

x-api-key
string
header
required

API key for authentication. You can create one here.

Body

application/json
website_id
string<uuid>
required
location
string
required

Location name. Trimmed; blank rejected.

Example:

"New York"

country
string
required

Supported country (case-insensitive).

Example:

"United States"

prompt_ids
string<uuid>[]

Active prompt ids to attach.

Maximum array length: 1000

Response

Location created

id
string<uuid>
required
location
string
required
country
string
required