List locations
curl --request GET \
--url https://api.stage.origin.one/api/v2/locations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stage.origin.one/api/v2/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.stage.origin.one/api/v2/locations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "456",
"name": "Acme Downtown",
"object": "location",
"address": {
"city": "Seattle",
"country": "US",
"line1": "123 Main St",
"line2": "Suite 400",
"object": "address",
"postalCode": "98101",
"state": "WA"
},
"company": {
"id": "123",
"name": "Acme Inc",
"object": "company",
"url": "/api/v2/companies/123"
},
"createdAt": "2025-01-15T10:30:00.000Z",
"phone": "+1-206-555-0142",
"url": "/api/v2/locations/456"
}
],
"limit": 10,
"page": 1,
"total": 1
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}Locations
List locations
Returns the active locations under the companies linked to the API token, ordered by name. Filterable by name, company, city, and state. Requires the location.list scope.
GET
/
api
/
v2
/
locations
List locations
curl --request GET \
--url https://api.stage.origin.one/api/v2/locations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stage.origin.one/api/v2/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.stage.origin.one/api/v2/locations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "456",
"name": "Acme Downtown",
"object": "location",
"address": {
"city": "Seattle",
"country": "US",
"line1": "123 Main St",
"line2": "Suite 400",
"object": "address",
"postalCode": "98101",
"state": "WA"
},
"company": {
"id": "123",
"name": "Acme Inc",
"object": "company",
"url": "/api/v2/companies/123"
},
"createdAt": "2025-01-15T10:30:00.000Z",
"phone": "+1-206-555-0142",
"url": "/api/v2/locations/456"
}
],
"limit": 10,
"page": 1,
"total": 1
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}Authorizations
Origin One API token. Pass it in the Authorization header: Authorization: Bearer <token>.
Query Parameters
Number of items per page (max 20).
Required range:
1 <= x <= 20Example:
10
Page of results to return (1-based).
Required range:
1 <= x <= 10000Example:
1
Filter by city (case-insensitive partial match).
Required string length:
1 - 255Example:
"seattle"
Filter by parent company. A company that is inactive, deleted, or not linked to the API token returns an empty page.
Example:
"123"
Filter by location name (case-insensitive partial match).
Required string length:
1 - 255Example:
"downtown"
Filter by state or region code (exact match, case-insensitive).
Required string length:
1 - 255Example:
"WA"