---
title: "List organization job sites"
method: GET
path: "/v2/organizations/{organization_id}/job_sites"
tags: ["job_sites"]
---

# List organization job sites

`GET /v2/organizations/{organization_id}/job_sites`

## Request

- Base URL: `https://api.hubstaff.com`
- URL: `https://api.hubstaff.com/v2/organizations/{organization_id}/job_sites`
- Auth: OAuth 2
  - Authorization code: `https://account.hubstaff.com/authorizations/new`
  - Token URL: `https://account.hubstaff.com/access_tokens` scopes: `hubstaff:read`, `hubstaff:write`
- TypeScript: <https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/docs/v2/organizations/:organization_id/job_sites/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a collection of job sites (geofenced locations) for the organization.

Results can be filtered by created[start]/[stop].

## Path parameters

- `organization_id` integer, required

## Query parameters

- `page_start_id` integer
- `page_limit` integer
- `created[start]` string, date-time
- `created[stop]` string, date-time

## Response `200`

A list of job sites

- object
  - `job_sites` JobSite[]
    - `id` integer, required: Job Site ID
    - `organization_id` integer, required: Organization ID
    - `name` string, required: Job site name
    - `status` string, required: Job site status
    - `address` string, required: Job site address
    - `latitude` string, required: Job site latitude, a decimal string
    - `longitude` string, required: Job site longitude, a decimal string
    - `radius` integer, required: Job site radius
    - `created_at` string, date-time, required: When the record was created
    - `updated_at` string, date-time, required: When the record was last updated
    - `last_visited_at` string, date-time, required: Last visit time
    - `rules` JobSiteRule[]: Job site rules
      - `id` integer, required: Job Site Rule ID
      - `enter_action` string, required: The enter action
      - `exit_action` string, required: The exit action
      - `user_ids` integer[], required: List of user IDs to set for this rule
      - `team_ids` integer[], required: List of team IDs to set for this rule
      - `start_project_id` integer: Project ID to auto start when enter_action is set to track
      - `start_task_id` integer: Task ID to auto start when enter_action is set to track

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `403`: API access is only for organizations on an active plan
- `404`: Could not find record
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api.md) - [All operations](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/revisions/c6b90e4e4bdc?raw)
