Skip to main content
POST
/
locations
Create Location
curl --request POST \
  --url https://playground.answeringagent.com/api/v1/locations \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "name": "<string>",
  "address": "<string>",
  "area_code": "<string>",
  "google_place_id": "<string>",
  "organization_id": 123,
  "team_id": 123
}
'
{
  "location": {
    "id": 123,
    "name": "<string>",
    "phone_number": "<string>",
    "status": "pending",
    "address": "<string>",
    "google_place_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-KEY
string
header
required

Query Parameters

organization_id
integer

Organization to add the location to

Body

application/json
name
string
required

Name of the location

address
string | null

Physical address of the location

area_code
string | null

Optional area code hint for phone provisioning

google_place_id
string | null

Google Places ID for the location

organization_id
integer | null

Organization ID (alternative to query parameter)

team_id
integer | null

Team ID (alias for organization_id)

Response

Location created successfully

location
object