Skip to content
Leadtime
English
Esc
↑↓navigate↵open⌘Jpreview

Get workspace basic settings

Retrieves the current basic workspace settings.

What is returned:

  • Workspace identification: ID and brand color
  • Localization: Default language, country of operation, timezone
  • Attendance tracking: Whether attendance is enabled, color thresholds for time tracking quality
  • Default working hours: Default start and end times for the workspace
  • Time tracker: Reminder interval settings
  • Sprint configuration: Sprint duration, start day, and end day
  • Journal notifications: User IDs who receive notifications for journal entries

Note: This endpoint requires the WsSettings.manageSettings permission. These settings affect how the entire workspace operates and are used as defaults throughout the system.

GET/administration/basic-settings
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:read
or
AuthorizationBearer token (JWT) · headerrequired
Responses
200
attendanceEnabledbooleanrequired

Whether attendance tracking (clock in/out) is enabled for employees. When enabled, employees must actively clock in and out. When disabled, working hours are calculated automatically based on contract times.

brandColorstring

Brand color in hex format (e.g., #FF5733). Used for workspace branding and internal project colors throughout the application.

countryOfOperationstring

ISO 3166-1 alpha-2 country code (2 uppercase letters) for the country where the company operates. Example: "US" for United States, "DE" for Germany.

defaultLanguagestringrequired

Default language code for the workspace. Supported values: "en" (English) or "de" (German). This applies to new users; each user can override this in their profile.

defaultTimeFromstring<date-time>

Default work start time for employees. Used as a preset when employees clock in. ISO 8601 datetime format. Must be before defaultTimeTo if both are provided.

defaultTimeTostring<date-time>

Default work end time for employees. Used as a preset when employees clock out. ISO 8601 datetime format. Must be after defaultTimeFrom if both are provided.

idstringrequired

Workspace ID

journalNotificationUserIdsstring[]

Array of user IDs (UUIDs) who should receive notifications when journal entries are created or updated. Journal entries document events, notes, or observations for employees, projects, or organizations.

sprintEndDaynumber

Sprint end day of the week (1-7, where 1=Monday, 2=Tuesday, ..., 7=Sunday). Defines when each sprint period ends. If not provided, calculated from sprintPeriodDays.

sprintPeriodDaysnumberrequired

Sprint duration in days. Defines how long each sprint period lasts. Commonly used values: 7 (one week), 14 (two weeks), or 30 (one month).

sprintStartDaynumberrequired

Sprint start day of the week (1-7, where 1=Monday, 2=Tuesday, ..., 7=Sunday). Defines when each sprint period begins.

timeColorBadPercentnumber

Lower threshold percentage (1-100) for marking time tracking as "bad" or incomplete. Times below this percentage are marked red on the team calendar. Must be less than timeColorGoodPercent.

timeColorGoodPercentnumber

Upper threshold percentage (1-100) for marking time tracking as "good" or complete. Times above this percentage are marked green on the team calendar. Must be greater than timeColorBadPercent.

timeTrackerAnnoyanceInMinnumber

Time tracker reminder interval in minutes (5-120). After this many minutes of inactivity, the system reminds users to resume time tracking. Example: 15 means reminders every 15 minutes.

timezonestring

IANA timezone identifier for the workspace. Defines the timezone used for all time-related information. Example: "America/New_York", "Europe/Berlin", "Asia/Tokyo".

401

Unauthorized - Invalid or missing authentication token

403

Forbidden - Insufficient API scopes or permissions

Try it
Server
Authorization
Request
curl -X GET "https://leadtime.app/api/public/administration/basic-settings" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "attendanceEnabled": true,
  "brandColor": "#FF5733",
  "countryOfOperation": "US",
  "defaultLanguage": "en",
  "defaultTimeFrom": "2019-08-24T14:15:22Z",
  "defaultTimeTo": "2019-08-24T14:15:22Z",
  "id": "string",
  "journalNotificationUserIds": [
    "string"
  ],
  "sprintEndDay": 5,
  "sprintPeriodDays": 14,
  "sprintStartDay": 1,
  "timeColorBadPercent": 30,
  "timeColorGoodPercent": 70,
  "timeTrackerAnnoyanceInMin": 15,
  "timezone": "America/New_York"
}