Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/clockodo:clockodo-targethour-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: Clockodo API Documentation Target Hour API
description: '# Clockodo REST API
Our API opens Clockodo for other systems. Billing and project management applications or custom shell scripts, for example, are useful mash-ups with Clockodo. As a REST API, the interface allows you to query and modify Clockodo data and control the clock via HTTP in JSON format. ## URL of the Clockodo API
You can access our API via the following URL:
```text
https://my.clockodo.com/api/[resource type]
```
The resource type represents a class of your data. Once you request a specific resource, for example, query information about exactly one entity, you can use the following URL:
```text
https://my.clockodo.com/api/[resource type]/[resource ID]
```
In the following sections of this documentation, you will find more detailed descriptions of the available endpoints for each resource type. For example, under Entry you will find detailed information on how you can manage time entries in your Clockodo environment. ## HTTP Verbs
To tell the API which operations you want to perform on the resources, the so-called verbs of the HTTP protocol are used. The following operations are usually possible:
| HTTP Verb | Description |
|-----------------------------|-----------------------------------------------------------------|
| `GET` | Query a list of all the resources of the selected resource type |
| `GET` (with resource ID) | Query exactly one resource |
| `POST` | Create a new resource |
| `PUT` (with resource ID) | Update or edit a resource |
| `DELETE` (with resource ID) | Delete a resource |
## Authentication
Clockodo supports two authentication approaches:
- **API key authentication**, using a Clockodo user''s email address and personal API key. The credentials can be sent either via HTTP Basic authentication or via Clockodo-specific HTTP headers. - **OAuth 2.0**, using delegated access with scoped bearer tokens. ### API key authentication
Each Clockodo user has personal API access that takes the user''s access rights into account. You can find your API key under the menu item "Personal data" in your Clockodo account. Changing your Clockodo password invalidates your existing API key. If you use the API key for an integration, you must update the integration with the new API key after changing your password. #### HTTP Basic authentication
To access your data via the API, authenticate using your email address and API key with the basic authentication mechanism of the HTTP protocol:
```text
User: [email address]
Password: [API key]
```
Basic authentication is transmitted in the `Authorization` HTTP header. Most HTTP clients generate this header automatically from the credentials above:
```http
Authorization: Basic
```
**Example:** For the user `admin@clockodo.com` with the API key `nl9tzwlwr4kzmd1qcbmtli60jpwd2c9g`, the header is:
```http
Authorization: Basic YWRtaW5AY2xvY2tvZG8uY29tOm5sOXR6d2x3cjRrem1kMXFjYm10bGk2MGpwd2QyYzln
```
#### Clockodo API headers
Alternatively, you can send the same credentials using Clockodo-specific HTTP headers:
```http
X-ClockodoApiUser: [email address]
X-ClockodoApiKey: [API key]
```
#### Client identification
Requests using either of the API-key authentication methods described above must also identify the calling application and provide the email address of a technical contact person. For this purpose, include the following HTTP header with every request:
```http
X-Clockodo-External-Application: [name of application or company];[email address]
```
**Example:**
```http
X-Clockodo-External-Application: Clockodo;admin@clockodo.com
```
This header is not required for requests authenticated with an OAuth bearer token. ### OAuth 2.0
Clockodo supports OAuth 2.0 for integrations that use delegated access with scoped bearer tokens. It is accepted across the whole API as an alternative to API key authentication. Every access token is tied to a Clockodo user and is subject to that user''s access rights, just like an API key.'
termsOfService: https://www.clockodo.com/en/terms-and-conditions/
contact:
name: Clockodo support
url: https://www.clockodo.com/en/about-us/
email: support@clockodo.com
version: '2026-10-16'
x-logo:
url: /clockodo-logo.svg
href: /
altText: Clockodo Logo
backgroundColor: '#3d2a5a'
servers:
- url: https://my.clockodo.com/api
security:
- BasicAuth: []
ExternalApp: []
- User: []
Key: []
ExternalApp: []
- OAuth2: []
tags:
- name: TargetHour
description: Manage target hours (planned hours)
paths:
/targethours:
get:
tags:
- TargetHour
operationId: getTargetHours
parameters:
- name: users_id
in: query
required: false
schema:
oneOf:
- type: array
items:
type: integer
maximum: 500
- type: integer
maximum: 500
- type: string
format: csv-string
x-csv-element-schema:
type: integer
maximum: 500
responses:
'200':
description: Successful operation
content:
application/json:
schema:
required:
- targethours
properties:
targethours:
type: array
items:
$ref: '#/components/schemas/TargetHourV1'
type: object
deprecated: false
summary: Get target hours
x-summary-source: derived
post:
tags:
- TargetHour
operationId: createTargetHour
requestBody:
required: true
content:
application/json:
schema:
required:
- users_id
- type
- date_since
- date_until
- compensation_monthly
properties:
users_id:
type: integer
minimum: 1
type:
$ref: '#/components/schemas/TargetHourType'
date_since:
type: string
format: date
examples:
- '2023-02-28'
date_until:
type:
- string
- 'null'
format: date
examples:
- '2023-02-28'
monday:
type: number
format: float
maximum: 24
minimum: 0
tuesday:
type: number
format: float
maximum: 24
minimum: 0
wednesday:
type: number
format: float
maximum: 24
minimum: 0
thursday:
type: number
format: float
maximum: 24
minimum: 0
friday:
type: number
format: float
maximum: 24
minimum: 0
saturday:
type: number
format: float
maximum: 24
minimum: 0
sunday:
type: number
format: float
maximum: 24
minimum: 0
monthly_target:
type: number
format: float
maximum: 744
minimum: 0
workday_monday:
type: boolean
workday_tuesday:
type: boolean
workday_wednesday:
type: boolean
workday_thursday:
type: boolean
workday_friday:
type: boolean
workday_saturday:
type: boolean
workday_sunday:
type: boolean
compensation_daily:
description: Automatic time compensation per day in minutes
type: integer
maximum: 1440
minimum: 0
compensation_monthly:
description: Compensation for monthly target hours in minutes
type: integer
maximum: 744
minimum: 0
holiday_fixed_credit:
type: integer
enum:
- 0
- 1
surcharge_models_id:
type:
- integer
- 'null'
minimum: 1
type: object
responses:
'200':
description: Successful operation
content:
application/json:
schema:
required:
- targethoursRow
properties:
targethoursRow:
$ref: '#/components/schemas/TargetHourV1'
type: object
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/GeneralErrors'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/GeneralErrors'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/GeneralErrors'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/GeneralErrors'
deprecated: false
summary: Create target hour
x-summary-source: derived
/targethours/{id}:
get:
tags:
- TargetHour
operationId: getTargetHourById
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int64
examples:
- 1
responses:
'200':
description: Successful operation
content:
application/json:
schema:
required:
- targethoursRow
properties:
targethoursRow:
$ref: '#/components/schemas/TargetHourV1'
type: object
deprecated: false
summary: Get target hour by id
x-summary-source: derived
put:
tags:
- TargetHour
operationId: updateTargetHourById
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int64
examples:
- 1
requestBody:
required: true
content:
application/json:
schema:
required:
- type
- date_since
properties:
type:
$ref: '#/components/schemas/TargetHourType'
date_since:
type: string
format: date
examples:
- '2023-02-28'
date_until:
type:
- string
- 'null'
format: date
examples:
- '2023-02-28'
monday:
type: number
format: float
maximum: 24
minimum: 0
tuesday:
type: number
format: float
maximum: 24
minimum: 0
wednesday:
type: number
format: float
maximum: 24
minimum: 0
thursday:
type: number
format: float
maximum: 24
minimum: 0
friday:
type: number
format: float
maximum: 24
minimum: 0
saturday:
type: number
format: float
maximum: 24
minimum: 0
sunday:
type: number
format: float
maximum: 24
minimum: 0
monthly_target:
type: number
format: float
maximum: 744
minimum: 0
workday_monday:
type: boolean
workday_tuesday:
type: boolean
workday_wednesday:
type: boolean
workday_thursday:
type: boolean
workday_friday:
type: boolean
workday_saturday:
type: boolean
workday_sunday:
type: boolean
compensation_daily:
description: Compensation for daily target hours in minutes
type: integer
maximum: 1440
minimum: 0
compensation_monthly:
description: Compensation for monthly target hours in minutes
type: integer
maximum: 744
minimum: 0
holiday_fixed_credit:
type: integer
enum:
- 0
- 1
surcharge_models_id:
type:
- integer
- 'null'
minimum: 1
type: object
responses:
'200':
description: Successful operation
content:
application/json:
schema:
required:
- targethoursRow
properties:
targethoursRow:
$ref: '#/components/schemas/TargetHourV1'
type: object
deprecated: false
summary: Update target hour by id
x-summary-source: derived
delete:
tags:
- TargetHour
operationId: deleteTargetHourById
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int64
examples:
- 1
responses:
'200':
description: Successful operation
content:
application/json:
schema:
required:
- success
properties:
success:
title: Success
type: boolean
examples:
- true
type: object
deprecated: false
summary: Delete target hour by id
x-summary-source: derived
components:
schemas:
ApiErrors:
properties:
type:
description: Unique identifier of the error
type: string
examples:
- General
message:
description: Textual error description
type: string
examples:
- The requested resource could not be found.
details:
description: Additional error details if necessary
type:
- object
- 'null'
examples:
- null
path:
type:
- string
- 'null'
type: object
TargetHourV1Weekly:
required:
- id
- users_id
- type
- surcharge_models_id
- date_since
- date_until
- test_data
- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- sunday
- compensation_daily
- compensation_monthly
properties:
id:
description: The ID of the target hour settings
type: integer
format: int64
examples:
- 10
users_id:
description: The related employee's ID
type: integer
format: int64
examples:
- 10
surcharge_models_id:
description: The corresponding surcharge model
type:
- integer
- 'null'
format: int64
examples:
- 10
type:
description: Type of the target hours row
type: string
enum:
- weekly
examples:
- weekly
date_since:
description: Date from which on the target hours apply (Format YYYY-MM-DD)
type: string
format: date
examples:
- '2023-02-28'
date_until:
description: Date until which the target hours apply (Format YYYY-MM-DD)
type:
- string
- 'null'
format: date
examples:
- '2023-03-03'
test_data:
description: Defines if the Targethoursrow was generated as test data
type: boolean
monday:
description: Target hours for Monday
type: number
examples:
- 8.5
tuesday:
description: Target hours for Tuesday
type: number
examples:
- 8.5
wednesday:
description: Target hours for Wednesday
type: number
examples:
- 8.5
thursday:
description: Target hours for Thursday
type: number
examples:
- 8.5
friday:
description: Target hours for Friday
type: number
examples:
- 8.5
saturday:
description: Target hours for Saturday
type: number
examples:
- 8.5
sunday:
description: Target hours for Sunday
type: number
examples:
- 8.5
absence_fixed_credit:
description: true if credited absence hours are applied against the average target hours, false if credited absence hours match the target hours of the specific day
type: boolean
examples:
- true
compensation_daily:
description: Automatic time compensation per day in minutes
type: number
examples:
- 30.5
compensation_monthly:
description: Automatic time compensation per month in hours
type: number
examples:
- 0.5
type: object
TargetHourType:
title: Target hour type
description: 'Possible values:
- `weekly`: Weekly
- `monthly`: Monthly'
type: string
enum:
- weekly
- monthly
x-enumNames:
- Weekly
- Monthly
GeneralErrors:
required:
- errors
properties:
errors:
type: array
items:
$ref: '#/components/schemas/ApiErrors'
type: object
TargetHourV1Monthly:
required:
- id
- users_id
- type
- surcharge_models_id
- date_since
- date_until
- test_data
- workday_monday
- workday_tuesday
- workday_wednesday
- workday_thursday
- workday_friday
- workday_saturday
- workday_sunday
- monthly_target
- compensation_monthly
properties:
id:
description: The ID of the target hour settings
type: integer
format: int64
examples:
- 10
users_id:
description: The related employee's ID
type: integer
format: int64
examples:
- 10
surcharge_models_id:
description: The corresponding surcharge model
type:
- integer
- 'null'
format: int64
examples:
- 10
type:
description: Type of the target hours row
type: string
enum:
- monthly
examples:
- monthly
date_since:
description: Date from which on the target hours apply (Format YYYY-MM-DD)
type: string
format: date
examples:
- '2023-02-28'
date_until:
description: Date until which the target hours apply (Format YYYY-MM-DD)
type:
- string
- 'null'
format: date
examples:
- '2023-03-03'
test_data:
description: Defines if the Targethoursrow was generated as test data
type: boolean
workday_monday:
description: Is Monday a work day?
type: boolean
examples:
- true
workday_tuesday:
description: Is Tuesday a work day?
type: boolean
examples:
- true
workday_wednesday:
description: Is Wednesday a work day?
type: boolean
examples:
- true
workday_thursday:
description: Is Thursday a work day?
type: boolean
examples:
- true
workday_friday:
description: Is Friday a work day?
type: boolean
examples:
- true
workday_saturday:
description: Is Saturday a work day?
type: boolean
examples:
- true
workday_sunday:
description: Is Sunday a work day?
type: boolean
examples:
- true
monthly_target:
description: Monthly target hours to attain
type: number
examples:
- 172.5
compensation_monthly:
description: Automatic time compensation per month in hours
type: number
examples:
- 0.5
type: object
TargetHourV1:
oneOf:
- $ref: '#/components/schemas/TargetHourV1Weekly'
- $ref: '#/components/schemas/TargetHourV1Monthly'
securitySchemes:
BasicAuth:
type: http
description: The basic authentication of the HTTP protocol. Credentials are email address and API key.<br />Every co-worker will find his API key in the menu item "Personal data" in his Clockodo account.
scheme: basic
User:
type: apiKey
description: 'Must be filled together with <code>X-ClockodoApiKey</code><br /><strong>Example: admin@clockodo.com</strong>'
name: X-ClockodoApiUser
in: header
Key:
type: apiKey
description: Must be filled together with <code>X-ClockodoApiUser</code>
name: X-ClockodoApiKey
in: header
ExternalApp:
type: apiKey
description: 'Every request to our API must provide identification of the calling application, including the email address of a technical contact person.<br /><strong>Example: "Clockodo;admin@clockodo.com"</strong>'
name: X-Clockodo-External-Application
in: header
OAuth2:
type: oauth2
description: OAuth 2.0 for external integrations via authorization code flow with refresh tokens. OAuth clients can be provisioned via Dynamic Client Registration (POST /oauth/register) or Client ID Metadata Documents (CIMD). Dynamically registered clients are deleted after 90 days without any token or authorization code activity; store the issued client_id and client_secret permanently, as the secret is only returned once.
flows:
authorizationCode:
authorizationUrl: /oauth/authorize
tokenUrl: /token
refreshUrl: /token
scopes:
full_access: Full access to all API endpoints
accessGroups:read: Read access group data
accessGroups:write: Write access group data
absences:read: Read absence data
absences:write: Write absence data
browserExtensionRules:read: Read browser extension rule data
browserExtensionRules:write: Write browser extension rule data
clock:read: Read clock data
clock:write: Write clock data
company:read: Read company data
customers:read: Read customer data
customers:write: Write customer data
entryGroups:read: Read entry group data
entryGroups:write: Write entry group data
entries:read: Read time entry data
entries:write: Write time entry data
entriesTexts:read: Read time entry text data
entriesTexts:write: Write time entry text data
holidaysCarry:read: Read holiday carryover data
holidaysCarry:write: Write holiday carryover data
holidaysQuota:read: Read holiday quota data
holidaysQuota:write: Write holiday quota data
lumpSumServices:read: Read lump sum service data
lumpSumServices:write: Write lump sum service data
nonbusinessDays:read: Read nonbusiness day data
nonbusinessDays:write: Write nonbusiness day data
nonbusinessGroups:read: Read nonbusiness group data
nonbusinessGroups:write: Write nonbusiness group data
overtimeCarry:read: Read overtime carryover data
overtimeCarry:write: Write overtime carryover data
overtimeReductions:read: Read overtime reduction data
overtimeReductions:write: Write overtime reduction data
projects:read: Read project data
projects:write: Write project data
rates:read: Read rate data
rates:write: Write rate data
services:read: Read service data
services:write: Write service data
subprojects:read: Read subproject data
subprojects:write: Write subproject data
subscription:read: Read subscription data
targetHours:read: Read planned hours data
targetHours:write: Write planned hours data
teams:read: Read team data
teams:write: Write team data
userReports:read: Read co-worker report data
users:read: Read co-worker data
users:write: Write co-worker data
usersNonbusinessDays:read: Read co-worker nonbusiness day data
usersNonbusinessGroups:read: Read co-worker nonbusiness group data
usersNonbusinessGroups:write: Write co-worker nonbusiness group data
workTimes:read: Read work time data
workTimes:write: Write work time data
x-provenance:
method: harvested
publisher: Clockodo
source: https://docs.clockodo.com/openapi.yaml
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)