Skip to main content
POST
/
locations
Get the location id of a specific location
curl --request POST \
  --url https://app.prontohq.com/api/v2/locations \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "name": "San Francisco"
}'
[
  {
    "name": "San Francisco Bay Area",
    "id": "90000084"
  },
  {
    "name": "San Francisco, California, United States",
    "id": "102277331"
  }
]

Authorizations

X-API-KEY
string
header
required

Your API key

Body

application/json
name
string
required

The name of the location to get the id of

Example:

"San Francisco"

Response

200 - application/json

Location ID retrieved successfully

name
string

The full name of the location

id
string

The ID of the location