Skip to Content
DevelopersAPI referenceTime

Import time

POST
/v1/time/import/{source}

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (blk_…) from Settings → API keys.

Path Parameters

source*string

Query Parameters

dryRun?string
Value in"true""false"
dateFormat?string
Default"auto"
Value in"auto""MDY""DMY""YMD"

Response Body

application/json
  1. response
dryRun*boolean
batchId*string|null
rows*integer
Range-9007199254740991 <= value <= 9007199254740991
imported*integer
Range-9007199254740991 <= value <= 9007199254740991
duplicates*integer
Range-9007199254740991 <= value <= 9007199254740991
invalid*array<>
totalSeconds*integer
Range-9007199254740991 <= value <= 9007199254740991
dateFormat*string
Value in"MDY""DMY""YMD"
newClients*array<string>
newProjects*array<>
newTasks*integer
Range-9007199254740991 <= value <= 9007199254740991
newTags*array<string>
members*array<>
Example Request
curl -X POST 'https://your-billleaf-api/v1/time/import/string'
Example Response201
{  "dryRun": true,  "batchId": "string",  "rows": -9007199254740991,  "imported": -9007199254740991,  "duplicates": -9007199254740991,  "invalid": [    {      "line": -9007199254740991,      "message": "string"    }  ],  "totalSeconds": -9007199254740991,  "dateFormat": "MDY",  "newClients": [    "string"  ],  "newProjects": [    {      "name": "string",      "clientName": "string"    }  ],  "newTasks": -9007199254740991,  "newTags": [    "string"  ],  "members": [    {      "name": "string",      "email": "string",      "matched": true,      "entries": -9007199254740991    }  ]}