Skip to content

Create Place Visit

POST
/users/{user_id}/places/{place_id}/visits
curl --request POST \
--url https://example.com/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/places/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/visits \
--header 'Content-Type: application/json' \
--data '{ "ended_at": "2026-04-15T12:00:00Z", "local_date": "2026-04-15", "note": "example", "occurred_at": "2026-04-15T12:00:00Z" }'

Log a manual visit to a place. Shows in location history alongside auto-detected stays.

user_id
required
User Id
string format: uuid
place_id
required
Place Id
string format: uuid
Media typeapplication/json
PlaceVisitCreate

Log a manual visit to a place. occurred_at defaults to now; local_date is stamped from the user timezone if the client doesn’t send it.

object
ended_at
Any of:
string format: date-time
local_date
Any of:
string format: date
note
Any of:
string
<= 2000 characters
occurred_at
Any of:
string format: date-time
Examplegenerated
{
"ended_at": "2026-04-15T12:00:00Z",
"local_date": "2026-04-15",
"note": "example",
"occurred_at": "2026-04-15T12:00:00Z"
}

Successful Response

Media typeapplication/json
PlaceVisitRead
object
ended_at
required
Any of:
string format: date-time
id
required
Id
string format: uuid
lat
required
Lat
number
lng
required
Lng
number
local_date
required
Any of:
string format: date
note
required
Any of:
string
occurred_at
required
Occurred At
string format: date-time
place_id
required
Place Id
string format: uuid
place_name
required
Place Name
string
source
required
Source
string
Examplegenerated
{
"ended_at": "2026-04-15T12:00:00Z",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"lat": 1,
"lng": 1,
"local_date": "2026-04-15",
"note": "example",
"occurred_at": "2026-04-15T12:00:00Z",
"place_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"place_name": "example",
"source": "example"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}