Skip to main content
GET
List locations

Authorizations

Authorization
string
header
required

Your secret API key as a Bearer token: Authorization: Bearer vxn_sk_.... Keys are created and scoped in the dashboard - see Authentication.

Query Parameters

limit
integer
default:25

1-100. Default 25.

Required range: 1 <= x <= 100
starting_after
string

Cursor - the loc_ id of the last item on the previous page (forward). Numeric offset or page parameters are not supported; cursors are the only supported paging mechanism.

Pattern: ^loc_[A-Za-z0-9]+$
ending_before
string

Reverse cursor - returns items before this loc_ id.

Pattern: ^loc_[A-Za-z0-9]+$

Response

Paginated location list.

Standard cursor-pagination envelope - see Pagination.

object
enum<string>
required

Always "list".

Available options:
list
data
object[]
required

Array of the requested resource type.

has_more
boolean
required

True when more pages exist.

next_cursor
string | null

Cursor for the next page in the direction you are already paging, or null when this page ends the collection. has_more: true always comes with a non-null next_cursor.

Feed it back to the SAME parameter you used: starting_after when paging forward (the default), or ending_before when paging backward. Treat it as opaque and do not parse it.

You no longer need to take the last object's id yourself. That still works and is unchanged, but deriving the cursor from the page put the burden of knowing the sort direction on you, and it broke silently on any endpoint whose cursor is not the object id.

Example:

"cus_iofv5j4hn6bphinmmyat27tc5y"

url
string

Stable collection URL.