Skip to main content
DELETE
/
timers
/
current
Stop Timer
curl --request DELETE \
  --url https://api.everhour.com/timers/current \
  --header 'X-Api-Key: <api-key>'
import requests

url = "https://api.everhour.com/timers/current"

headers = {"X-Api-Key": "<api-key>"}

response = requests.delete(url, headers=headers)

print(response.text)
const options = {method: 'DELETE', headers: {'X-Api-Key': '<api-key>'}};

fetch('https://api.everhour.com/timers/current', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.everhour.com/timers/current",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.everhour.com/timers/current"

req, _ := http.NewRequest("DELETE", url, nil)

req.Header.Add("X-Api-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.delete("https://api.everhour.com/timers/current")
.header("X-Api-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.everhour.com/timers/current")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["X-Api-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "status": "stopped",
  "taskTime": {
    "id": 2660155,
    "time": 3600,
    "user": 1304,
    "date": "2018-01-20",
    "task": {
      "id": "ev:9876543210",
      "name": "Task Name",
      "projects": [
        "ev:1234567890"
      ],
      "section": 1234,
      "labels": [
        "high",
        "bug"
      ],
      "position": 1,
      "description": "<string>",
      "dueAt": "2018-03-05 16:00:00",
      "status": "open",
      "time": {
        "total": 7200,
        "users": {
          "1304": 3600,
          "1543": 3600
        }
      },
      "estimate": {
        "total": 7200,
        "type": "overall",
        "users": {
          "1304": 3600,
          "1543": 3600
        }
      },
      "attributes": {
        "Client": "Everhour",
        "Priority": "high"
      },
      "metrics": {
        "efforts": 42,
        "expenses": 199
      },
      "unbillable": true
    },
    "isLocked": false,
    "isInvoiced": false,
    "comment": "some notes"
  },
  "timecard": {}
}

Authorizations

X-Api-Key
string
header
required

Response

OK

The stopped timer plus the time record it saved.

status
string
Example:

"stopped"

taskTime
object
timecard
object | null