---
title: "Get organization"
method: GET
path: "/v2/organizations/{organization_id}"
tags: ["organizations"]
---

# Get organization

`GET /v2/organizations/{organization_id}`

## Request

- Base URL: `https://api.hubstaff.com`
- URL: `https://api.hubstaff.com/v2/organizations/{organization_id}`
- 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/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the organization with the given ID.

## Path parameters

- `organization_id` integer, required

## Response `200`

An organization

- object
  - `organization` Organization: Organization model
    - `id` integer, required: Organization ID
    - `name` string, required: Organization name
    - `status` string, required: Organization status
    - `created_at` string, date-time, required: When the record was created
    - `updated_at` string, date-time, required: When the record was last updated
    - `member_profile_fields` MemberProfileFields[], required
      - `key` string, required: The identifier for the custom field. This is used on the organization members endpoint.
      - `type` string, required: The type of the custom field
      - `title` string, required: The label for the custom field
      - `created_on` string, date, required: When the custom field was created
      - `created_by_id` integer, required: User ID who created the custom field
    - `metadata` object: Metadata attached to the organization. Only returned to users who can manage the organization
    - `invite_url` string, uri: Invite URL. Only returned to users who can manage invite links

## 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)
