Entwickler

Bereiche

Authentifizierung
Der API-Schlüssel muss als Bearer-Token im Authorization-Header der Anfrage gesendet werden. API-Schlüssel abrufen.
Liste

API-Endpunkt

GET
https://clck.plus/api/v1/spaces

Anfragebeispiel

curl --location --request GET 'https://clck.plus/api/v1/spaces' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'

Parameter

Name
Typ
Beschreibung
search
optional string
Suchanfrage.
search_by
optional string
Suchen nach. Mögliche Werte: name für Name. Standardwert: name.
sort_by
optional string
Sortieren nach. Mögliche Werte: id für Erstellungsdatum, name für Name. Standardwert: id.
sort
optional string
Reihenfolge. Mögliche Werte: desc für Absteigend, asc für Aufsteigend. Standardwert: desc.
per_page
optional integer
Ergebnisse pro Seite. Mögliche Werte: 10, 25, 50, 100. Standardwert: 50.
Anzeigen

API-Endpunkt

GET
https://clck.plus/api/v1/spaces/{id}

Anfragebeispiel

curl --location --request GET 'https://clck.plus/api/v1/spaces/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Speicher

API-Endpunkt

POST
https://clck.plus/api/v1/spaces

Anfragebeispiel

curl --location --request POST 'https://clck.plus/api/v1/spaces' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}'

Parameter

Name
Typ
Beschreibung
name
erforderlich string
Name.
color
optional integer
Farbe. Mögliche Werte: 1, 2, 3, 4, 5, 6. Standardwert: 1.
Aktualisieren

API-Endpunkt

PUT PATCH
https://clck.plus/api/v1/spaces/{id}

Anfragebeispiel

curl --location --request PUT 'https://clck.plus/api/v1/spaces/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'

Parameter

Name
Typ
Beschreibung
name
optional string
Name.
color
optional integer
Farbe. Mögliche Werte: 1, 2, 3, 4, 5, 6.
Löschen

API-Endpunkt

DELETE
https://clck.plus/api/v1/spaces/{id}

Anfragebeispiel

curl --location --request DELETE 'https://clck.plus/api/v1/spaces/{id}' \
--header 'Authorization: Bearer {api_key}'