Directory · Timeglass API

Members, teams, and departments: the people and structure of the workspace.

List Members

GET /v1/members

Query parameters

  • limit · integer
  • cursor · string
  • team_id · string · uuid
  • department_id · string · uuid

Response 200

  • data · array of object · required
    • member_id · string · required
    • display_name · string · nullable · required
    • email · string · nullable · required
    • role · string · required
    • team_id · string · uuid · nullable · required
    • department_id · string · uuid · nullable · required
    • is_external · boolean · required
    • can_log_time · boolean · required
    • joined_at · string · required
  • next_cursor · string · nullable · required
curl "https://api.timeglass.ai/v1/members" \
  -H "Authorization: Bearer $TIMEGLASS_API_KEY"

Get a Member

GET /v1/members/{memberId}

Path parameters

  • memberId · string · required

Response 200

  • member_id · string · required
  • display_name · string · nullable · required
  • email · string · nullable · required
  • role · string · required
  • team_id · string · uuid · nullable · required
  • department_id · string · uuid · nullable · required
  • is_external · boolean · required
  • can_log_time · boolean · required
  • joined_at · string · required
curl "https://api.timeglass.ai/v1/members/4bfe4a4b-c86b-4b8e-b3f5-3d1c4a2e9f10" \
  -H "Authorization: Bearer $TIMEGLASS_API_KEY"

List Teams

GET /v1/teams

Query parameters

  • limit · integer
  • cursor · string
  • department_id · string · uuid

Response 200

  • data · array of object · required
    • team_id · string · uuid · required
    • name · string · required
    • description · string · nullable · required
    • department_id · string · uuid · nullable · required
    • created_at · string · required
  • next_cursor · string · nullable · required
curl "https://api.timeglass.ai/v1/teams" \
  -H "Authorization: Bearer $TIMEGLASS_API_KEY"

Get a Team

GET /v1/teams/{teamId}

Path parameters

  • teamId · string · uuid · required

Response 200

  • team_id · string · uuid · required
  • name · string · required
  • description · string · nullable · required
  • department_id · string · uuid · nullable · required
  • created_at · string · required
curl "https://api.timeglass.ai/v1/teams/4bfe4a4b-c86b-4b8e-b3f5-3d1c4a2e9f10" \
  -H "Authorization: Bearer $TIMEGLASS_API_KEY"

List Departments

GET /v1/departments

Query parameters

  • limit · integer
  • cursor · string

Response 200

  • data · array of object · required
    • department_id · string · uuid · required
    • name · string · required
    • created_at · string · required
  • next_cursor · string · nullable · required
curl "https://api.timeglass.ai/v1/departments" \
  -H "Authorization: Bearer $TIMEGLASS_API_KEY"

Get a Department

GET /v1/departments/{departmentId}

Path parameters

  • departmentId · string · uuid · required

Response 200

  • department_id · string · uuid · required
  • name · string · required
  • created_at · string · required
curl "https://api.timeglass.ai/v1/departments/4bfe4a4b-c86b-4b8e-b3f5-3d1c4a2e9f10" \
  -H "Authorization: Bearer $TIMEGLASS_API_KEY"