---
title: "Get the workspace timezone and preset posting times"
method: GET
path: "/workspace"
tags: ["Identity"]
---

# Get the workspace timezone and preset posting times

`GET /workspace`

## Request

- Base URL: `https://www.juzpost.com/api/cli/v1`
- URL: `https://www.juzpost.com/api/cli/v1/workspace`
- Auth: HTTP bearer

Returns the workspace the token belongs to. The `timezone` and `defaultTimes` are the
inputs the bulk scheduler uses when you do not override them, so read this before
calling `POST /schedule` if you want to predict the slots it will pick.

## Response `200`

The account this token belongs to.

- Workspace: The account this token belongs to: the boundary around your accounts, posts and media, plus the scheduling defaults the bulk scheduler reads.
  - `id` string, uuid, required: The account id. You never send it anywhere; quote it if you contact support.
  - `name` string, required: Display name of the account.
  - `timezone` string, required: IANA timezone name, such as `America/New_York`. Preset posting times are wall-clock times in this zone, converted to UTC at scheduling time, so daylight saving is handled for you.
  - `defaultTimes` string[], required: Preset posting times as 24-hour `HH:MM` wall-clock strings in your timezone. `POST /schedule` uses these unless you override them, and fails with `422` if this list is empty and you pass none.

## Other responses

- `401`: No bearer token was sent, or the token is unknown, revoked or malformed. Run the device login again to obtain a new token.
- `402`: The plan behind this token does not include the capability this operation needs. `error.details.requiredPlan` names the tier that does. This is never a token problem, so do not retry without changing the plan.
- `404`: The account behind this token no longer exists.

---

[API](https://skmtc.dev/juzpost/apis/juzpost-rest-api.md) · [All operations](https://skmtc.dev/juzpost/apis/juzpost-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/juzpost/apis/juzpost-rest-api/revisions/19296da24f95?raw)
