Clockify User API
The User API from Clockify — 8 operation(s) for user.
The User API from Clockify — 8 operation(s) for user.
openapi: 3.0.1
info:
description: "## Introduction\nBy using this REST API, you can easily integrate Clockify with your own add-ons, push and pull data\nbetween Clockify and other tools, and create custom add-ons on [CAKE.com Marketplace](https://marketplace.cake.com).\nWhether you’re looking to automate time tracking, generate custom reports, or build other custom\nintegrations, our API provides the flexibility and power you need to get the job done. If you\nhave any questions or run into any issues while using our API, don’t hesitate to reach out to us for help.\nYou can also post questions on Stack Overflow with the Clockify tag to get help from the community.\n## Authentication\nTo authenticate your requests to your API, make sure to include either the ‘X-Api-Key’ or the\n‘X-Addon-Token’ in the request header, containing your API or Addon key. If your workspace is\non a subdomain (e.g. subdomain.clockify.me), you’ll need to generate a new API key in your\nProfile Settings that will work specifically for that workspace. This ensures that you’re\naccessing data from the correct workspace and helps maintain the security of your data.\n## Webhooks\nWebhooks can enhance your workflow by keeping your add-on up-to-date with the latest changes in\nClockify. With Clockify’s webhooks you can receive real-time notifications when certain events such as\nstarting a timer or deleting a time entry occur in Clockify.\nDepending on the workspace plan, workspace owners and admins can create:\n\n* Up to 3 webhooks on **FREE** plan\n* Up to 10 webhooks per user, with a total of 100 webhooks per entire workspace\non **BASIC**, **STANDARD** and **PRO** plans\n* Up to 100 webhooks per user, with a total of 300 webhooks per entire workspace on **ENTERPRISE** plan\n\n## Rate limiting\nOur REST API has a specific rate limit of 50 requests per second (by addon on one workspace) when\naccessed using X-Addon-Token. Exceeding this limit will result in an error message with the description\n\"Too many requests\".\n## Pagination\nOur REST API supports pagination for all synchronous GET endpoints that retrieve lists of entities.\nWhen an endpoint accepts the `page` and `pageSize` query parameters, it will return a paginated response.\n\nTo control the data returned in a paginated request, you can use the following optional query parameters.\n\n- **page** (integer): The page number you wish to retrieve. This is 1-indexed. If this parameter is omitted,\nthe API will default to the first page (page=1).\n- **pageSize** (integer): The number of items to include on each page. If this parameter is omitted,\na default page size will be used.\n\nEvery response from an endpoint that supports these parameters will include a custom `Last-Page` header.\nThis header provides a simple way to determine if you have reached the end of the data set.\n\n- **true:** The current page is the final page; no more data is available.\n- **false:** Additional pages can be fetched.\n## API URLs\nRefer to the list on what URL to use base on the subdomain and data region settings of your workspace.\n* Global - can be used by workspaces with or without subdomain.\n * Regular: https://api.clockify.me/api/v1/file/image\n * Reports: https://reports.api.clockify.me/v1/workspaces/{workspaceId}/reports/detailed\n* Regional\n * Non-subdomain\n * Regular: https://euc1.clockify.me/api/v1/file/image\n * Reports: https://use2.clockify.me/report/v1/workspaces/{workspaceId}/reports/detailed\n * Subdomain\n * Regular: https://euc1.clockify.me/api/v1/file/image\n * Reports: https://yoursubdomainname.clockify.me/report/v1/workspaces/{workspaceId}/reports/detailed\n* Developer\n * Regular: https://developer.clockify.me/api/v1/file/image\n * Reports: https://developer.clockify.me/report/v1/workspaces/{workspaceId}/reports/detailed\n## Regional Server Prefixes\nIf your workspace is in a specific region, you need to change your URL prefix to access v1 API endpoints.\nFor example, this is how **backend** api [v1/file/image](#tag/User/operation/uploadImage) endpoint\nwould look in EU region:\n[https://euc1.clockify.me/api/v1/file/image](https://euc1.clockify.me)\n\nBelow are the available regional server prefixes:\n* **EU (Germany)**: euc1\n* **USA**: use2\n* **UK**: euw2\n* **AU**: apse2\n\n\n## Breaking changes\nBreaking changes in APIs are modifications that disrupt existing integrations,\nrequiring users to update their applications to maintain functionality.\nThese changes can lead to failures or unexpected results if not addressed.\nSee the list of [breaking changes](breaking-changes/).\n\n## Experimental APIs\nThe experimental API has been thoroughly tested and is ready for use in production. However, please note that user feedback may lead to changes in the API’s structure or functionality. If you choose to use the experimental API, be prepared to modify your application code accordingly to accommodate any updates."
title: Clockify Approval User API
version: v1
x-logo:
altText: Clockify logo
url: https://clockify.me/downloads/clockify_logo_primary_black_margin.png
tags:
- name: User
x-displayName: User
paths:
/v1/file/image:
servers:
- url: https://api.clockify.me/api
post:
operationId: uploadImage
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
description: Image to be uploaded
format: binary
required:
- file
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/UploadFileResponseV1'
description: OK
summary: Add a photo
tags:
- User
security:
- ApiKeyAuth: []
- AddonKeyAuth: []
/v1/user:
servers:
- url: https://api.clockify.me/api
get:
operationId: getLoggedUser
parameters:
- description: If set to true, memberships will be included.
example: true
in: query
name: include-memberships
required: false
schema:
type: boolean
description: If set to true, memberships will be included.
example: true
default: false
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/UserDtoV1'
description: OK
security:
- MarketplaceKeyAuth: []
- ApiKeyAuth: []
- AddonKeyAuth: []
summary: Get currently logged-in user's info
tags:
- User
/v1/workspaces/{workspaceId}/member-profile/{userId}:
servers:
- url: https://api.clockify.me/api
get:
operationId: getMemberProfile
parameters:
- description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
in: path
name: workspaceId
required: true
schema:
type: string
description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
- description: Represents a user identifier across the system.
example: 5a0ab5acb07987125438b60f
in: path
name: userId
required: true
schema:
type: string
description: Represents a user identifier across the system.
example: 5a0ab5acb07987125438b60f
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MemberProfileDtoV1'
description: OK
summary: Get a member's profile
tags:
- User
security:
- ApiKeyAuth: []
- AddonKeyAuth: []
patch:
operationId: updateMemberProfileWithAdditionalData
parameters:
- description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
in: path
name: workspaceId
required: true
schema:
type: string
description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
- description: Represents a user identifier across the system.
example: 5a0ab5acb07987125438b60f
in: path
name: userId
required: true
schema:
type: string
description: Represents a user identifier across the system.
example: 5a0ab5acb07987125438b60f
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MemberProfileFullRequestV1'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MemberProfileDtoV1'
description: OK
summary: Update a member's profile
tags:
- User
security:
- ApiKeyAuth: []
- AddonKeyAuth: []
/v1/workspaces/{workspaceId}/users:
servers:
- url: https://api.clockify.me/api
get:
operationId: getUsersOfWorkspace
parameters:
- description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
in: path
name: workspaceId
required: true
schema:
type: string
description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
- description: If provided, you'll get a filtered list of users that contain the provided string in their email address.
example: mail@example.com
in: query
name: email
required: false
schema:
type: string
description: If provided, you'll get a filtered list of users that contain the provided string in their email address.
example: mail@example.com
- description: If provided, you'll get a list of users that have access to the project.
example: 21a687e29ae1f428e7ebe606
in: query
name: project-id
required: false
schema:
type: string
- description: If provided, you'll get a filtered list of users with the corresponding status.
example: ACTIVE
in: query
name: status
required: false
schema:
type: string
enum:
- PENDING
- ACTIVE
- DECLINED
- INACTIVE
- ALL
- description: If provided, you'll get a filtered list of users with the corresponding account status filter. If not, this will only filter ACTIVE, PENDING_EMAIL_VERIFICATION, and NOT_REGISTERED Users.
example: LIMITED
in: query
name: account-statuses
required: false
schema:
type: string
- description: If provided, you'll get a filtered list of users that contain the provided string in their name
example: John
in: query
name: name
required: false
schema:
type: string
description: If provided, you'll get a filtered list of users that contain the provided string in their name
example: John
- description: 'Sorting column criteria. Default value: EMAIL'
example: ID
in: query
name: sort-column
required: false
schema:
type: string
enum:
- ID
- EMAIL
- NAME
- NAME_LOWERCASE
- ACCESS
- HOURLYRATE
- COSTRATE
- description: 'Sorting mode. Default value: ASCENDING'
example: ASCENDING
in: query
name: sort-order
required: false
schema:
type: string
enum:
- ASCENDING
- DESCENDING
- description: Page number.
example: 1
in: query
name: page
required: false
schema:
type: integer
description: Page number.
format: int32
example: 1
default: 1
- description: Page size.
example: 50
in: query
name: page-size
required: false
schema:
minimum: 1
type: integer
description: Page size.
format: int32
example: 50
default: 50
- description: If provided, you'll get all users along with workspaces, groups, or projects they have access to. Default value is NONE.
example: WORKSPACE
in: query
name: memberships
required: false
schema:
type: string
enum:
- ALL
- NONE
- WORKSPACE
- PROJECT
- USERGROUP
- description: If you pass along includeRoles=true, you'll get each user's detailed manager role (including projects and members which they manage)
in: query
name: include-roles
required: true
schema:
type: string
default: 'false'
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/UserDtoV1'
description: OK
summary: Find all users on a workspace
tags:
- User
security:
- ApiKeyAuth: []
- AddonKeyAuth: []
/v1/workspaces/{workspaceId}/users/info:
servers:
- url: https://api.clockify.me/api
post:
operationId: filterUsersOfWorkspace
parameters:
- description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
in: path
name: workspaceId
required: true
schema:
type: string
description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GetUsersRequestV1'
required: true
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/UserDtoV1'
description: OK
security:
- MarketplaceKeyAuth: []
- ApiKeyAuth: []
- AddonKeyAuth: []
summary: Filter workspace users
tags:
- User
/v1/workspaces/{workspaceId}/users/{userId}/custom-field/{customFieldId}/value:
servers:
- url: https://api.clockify.me/api
put:
operationId: upsertUserCustomFieldValue
parameters:
- description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
in: path
name: workspaceId
required: true
schema:
type: string
description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
- description: Represents a user identifier across the system.
example: 5a0ab5acb07987125438b60f
in: path
name: userId
required: true
schema:
type: string
description: Represents a user identifier across the system.
example: 5a0ab5acb07987125438b60f
- description: Represents custom field identifier across the system.
example: 5e4117fe8c625f38930d57b7
in: path
name: customFieldId
required: true
schema:
type: string
description: Represents custom field identifier across the system.
example: 5e4117fe8c625f38930d57b7
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpsertUserCustomFieldRequestV1'
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/UserCustomFieldValueDtoV1'
description: Created
summary: Update a user's custom field
tags:
- User
security:
- ApiKeyAuth: []
- AddonKeyAuth: []
/v1/workspaces/{workspaceId}/users/{userId}/managers:
servers:
- url: https://api.clockify.me/api
get:
operationId: getManagersOfUser
parameters:
- description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
in: path
name: workspaceId
required: true
schema:
type: string
description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
- description: Represents a user identifier across the system.
example: 5a0ab5acb07987125438b60f
in: path
name: userId
required: true
schema:
type: string
description: Represents a user identifier across the system.
example: 5a0ab5acb07987125438b60f
- description: Sorting column criteria
example: ID
in: query
name: sort-column
required: false
schema:
type: string
enum:
- ID
- EMAIL
- NAME
- NAME_LOWERCASE
- ACCESS
- HOURLYRATE
- COSTRATE
- description: Sorting mode
example: ASCENDING
in: query
name: sort-order
required: false
schema:
type: string
enum:
- ASCENDING
- DESCENDING
- description: Page number.
example: 1
in: query
name: page
required: false
schema:
type: integer
description: Page number.
format: int32
example: 1
default: 1
- description: Page size.
example: 50
in: query
name: page-size
required: false
schema:
minimum: 1
type: integer
description: Page size.
format: int32
example: 50
default: 50
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/UserDtoV1'
description: OK
summary: Find user's team manager
tags:
- User
security:
- ApiKeyAuth: []
- AddonKeyAuth: []
/v1/workspaces/{workspaceId}/users/{userId}/roles:
servers:
- url: https://api.clockify.me/api
delete:
operationId: deleteUserRole
parameters:
- description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
in: path
name: workspaceId
required: true
schema:
type: string
description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
- description: Represents a user identifier across the system.
example: 5a0ab5acb07987125438b60f
in: path
name: userId
required: true
schema:
type: string
description: Represents a user identifier across the system.
example: 5a0ab5acb07987125438b60f
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RoleRequestV1'
required: true
responses:
'204':
description: No Content
summary: Remove user's manager role
tags:
- User
security:
- ApiKeyAuth: []
- AddonKeyAuth: []
post:
operationId: createUserRole
parameters:
- description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
in: path
name: workspaceId
required: true
schema:
type: string
description: Represents a workspace identifier across the system.
example: 64a687e29ae1f428e7ebe303
- description: Represents a user identifier across the system.
example: 5a0ab5acb07987125438b60f
in: path
name: userId
required: true
schema:
type: string
description: Represents a user identifier across the system.
example: 5a0ab5acb07987125438b60f
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RoleRequestV1'
required: true
responses:
'201':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/RoleDetailsDtoV1'
description: Created
summary: Give manager role to a user
tags:
- User
security:
- ApiKeyAuth: []
- AddonKeyAuth: []
components:
schemas:
GetUsersRequestV1:
type: object
properties:
accountStatuses:
uniqueItems: true
type: array
description: If provided, you'll get a filtered list of users with the corresponding account status filter. If not, this will only filter ACTIVE, PENDING_EMAIL_VERIFICATION, and NOT_REGISTERED Users.
example:
- LIMITED
- ACTIVE
items:
type: string
description: If provided, you'll get a filtered list of users with the corresponding account status filter. If not, this will only filter ACTIVE, PENDING_EMAIL_VERIFICATION, and NOT_REGISTERED Users.
example: '["LIMITED","ACTIVE"]'
email:
type: string
description: If provided, you'll get a filtered list of users that contain the provided string in their email address.
example: mail@example.com
includeRoles:
type: boolean
description: If you pass along includeRoles=true, you'll get each user's detailed manager role (including projects and members for whom they're managers)
default: false
memberships:
type: string
description: If provided, you'll get all users along with workspaces, groups, or projects they have access to.
example: NONE
enum:
- ALL
- NONE
- WORKSPACE
- PROJECT
- USERGROUP
default: NONE
name:
type: string
description: If provided, you'll get a filtered list of users that contain the provided string in their name.
example: John
page:
type: integer
description: Page number.
format: int32
example: 1
default: 1
pageSize:
minimum: 1
type: integer
description: Page size.
format: int32
example: 50
default: 50
projectId:
type: string
description: If provided, you'll get a list of users that have access to the project.
example: 21a687e29ae1f428e7ebe606
roles:
uniqueItems: true
type: array
description: If provided, you'll get a filtered list of users that have any of the specified roles. Owners are counted as admins when filtering.
example:
- WORKSPACE_ADMIN
- OWNER
items:
type: string
description: If provided, you'll get a filtered list of users that have any of the specified roles. Owners are counted as admins when filtering.
example: '["WORKSPACE_ADMIN","OWNER"]'
enum:
- WORKSPACE_ADMIN
- OWNER
- TEAM_MANAGER
- PROJECT_MANAGER
sortColumn:
type: string
description: Sorting criteria
example: ID
enum:
- ID
- EMAIL
- NAME
- NAME_LOWERCASE
- ACCESS
- HOURLYRATE
- COSTRATE
sortOrder:
type: string
description: Sorting mode
example: ASCENDING
enum:
- ASCENDING
- DESCENDING
status:
type: string
description: If provided, you'll get a filtered list of users with the corresponding status.
example: ACTIVE
enum:
- PENDING
- ACTIVE
- DECLINED
- INACTIVE
- ALL
userGroups:
uniqueItems: true
type: array
description: If provided, you'll get a list of users that belong to the specified user group IDs.
example:
- 5a0ab5acb07987125438b60f
- 72wab5acb07987125438b564
items:
type: string
description: If provided, you'll get a list of users that belong to the specified user group IDs.
example: '["5a0ab5acb07987125438b60f","72wab5acb07987125438b564"]'
MemberProfileDtoV1:
type: object
properties:
email:
type: string
description: Represents email address of the user.
example: johndoe@example.com
hasPassword:
type: boolean
description: Indicates whether user has password or none.
default: false
hasPendingApprovalRequest:
type: boolean
description: Indicates whether user has pending approval request.
default: false
imageUrl:
type: string
description: Represents an image url.
example: https://www.url.com/imageurl-1234567890.jpg
name:
type: string
description: Represents name of the user.
example: John Doe
userCustomFieldValues:
type: array
description: Represents a list of value objects for user’s custom fields.
items:
$ref: '#/components/schemas/UserCustomFieldValueFullDtoV1'
weekStart:
type: string
description: Represents a day of the week.
example: MONDAY
enum:
- MONDAY
- TUESDAY
- WEDNESDAY
- THURSDAY
- FRIDAY
- SATURDAY
- SUNDAY
workCapacity:
type: string
description: Represents work capacity as a time duration in the ISO-8601 format.
example: PT7H
workingDays:
type: string
description: Represents a list of days of the week.
example: '["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY"]'
enum:
- MONDAY
- TUESDAY
- WEDNESDAY
- THURSDAY
- FRIDAY
- SATURDAY
- SUNDAY
workspaceNumber:
type: integer
description: Represents the number of workspace(s) the user is associated to.
format: int32
example: 3
RoleDtoV1:
type: object
properties:
id:
type: string
description: Represents role identifier across the system.
example: 60f91b3ffdaf031696ec61a8
name:
type: string
description: Represents a role name.
example: Administrator
source:
$ref: '#/components/schemas/AuthorizationSourceDtoV1'
description: Represents a role data transfer object.
SummaryReportSettingsDtoV1:
required:
- group
- subgroup
type: object
properties:
group:
minLength: 1
type: string
example: PROJECT
subgroup:
minLength: 1
type: string
example: CLIENT
description: Represents a summary report settings object.
MemberProfileFullRequestV1:
type: object
properties:
imageUrl:
type: string
description: Represents an image url. A field that can only be updated for limited users.
example: https://www.url.com/imageurl-1234567890.jpg
name:
maxLength: 100
minLength: 1
type: string
description: This body field is deprecated and can only be updated for limited users. Represents name of the user and can be changed on the CAKE.com Account profile page.
example: John Doe
deprecated: true
removeProfileImage:
type: boolean
description: Indicates whether to remove profile image or not. A field that can only be updated for limited users.
default: false
userCustomFields:
type: array
description: Represents a list of upsert user custom field objects.
items:
$ref: '#/components/schemas/UpsertUserCustomFieldRequest'
weekStart:
type: string
description: Represents a day of the week.
example: MONDAY
enum:
- MONDAY
- TUESDAY
- WEDNESDAY
- THURSDAY
- FRIDAY
- SATURDAY
- SUNDAY
workCapacity:
type: string
description: Represents work capacity as a time duration in the ISO-8601 format. For example, for a 7hr work day, input should be PT7H.
example: PT7H
workingDays:
type: string
description: Represents a list of days of the week.
example: '["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY"]'
enum:
- MONDAY
- TUESDAY
- WEDNESDAY
- THURSDAY
- FRIDAY
- SATURDAY
- SUNDAY
RoleRequestV1:
required:
- entityId
- role
type: object
properties:
entityId:
minLength: 1
type: string
description: Represents an entity identifier across the system.
example: 60f924bafdaf031696ec6218
role:
type: string
description: Represents a valid role.
example: TEAM_MANAGER
enum:
- WORKSPACE_ADMIN
- TEAM_MANAGER
- PROJECT_MANAGER
sourceType:
type: string
description: 'Optional field used to indicate that the target of the operation is a
user group, in which case the value USER_GROUP should be used, alongside a valid user group
ID for the entityId field. If omitted, a user ID should be used for the entityId field.
'
example: USER_GROUP
enum:
- USER_GROUP
RateDtoV1:
type: object
properties:
amount:
type: integer
description: Represents an amount as integer.
format: int32
example: 10500
currency:
type: string
description: Represents a currency.
example: USD
description: Represents cost rate object.
UpsertUserCustomFieldRequest:
required:
- customFieldId
type: object
properties:
customFieldId:
type: string
description: Represents custom field identifier across the system.
example: 5e4117fe8c625f38930d57b7
value:
type: object
description: Represents custom field value.
example: 20231211-12345
description: Represents a list of upsert user custom field objects.
UserCustomFieldValueFullDtoV1:
type: object
properties:
customField:
$ref: '#/components/schemas/CustomFieldDtoV1'
customFieldId:
type: string
description: Represents custom field identifier across the system.
example: 5e4117fe8c625f38930d57b7
name:
type: string
description: Represents user custom field name.
example: race
sourceType:
type: string
description: Represents user custom field source type.
example: WORKSPACE
enum:
- WORKSPACE
- USER
type:
type: string
description: Represents custom field type.
example: DROPDOWN_MULTIPLE
enum:
- TXT
- NUMBER
- DROPDOWN_SINGLE
- DROPDOWN_MULTIPLE
- CHECKBOX
- LINK
userId:
type: string
description: Represents user identifier across the system.
example: 5a0ab5acb07987125438b60f
value:
type: object
description: Represents user custom field value.
example: Asian
description: Represents
# --- truncated at 32 KB (47 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/clockify/refs/heads/main/openapi/clockify-user-api-openapi.yml