API rootGet the REST v2 root document

Get the REST v2 root document

Returns the TimeLog build, site facts (product, edition, company, locale, status, frontend URL) and a link to every REST v2 controller.

The entry point of REST v2 in the TAF style.

Use it to:

  • Credential and connectivity check for a v2 client (200 = the token works on this account)
  • Read product type, edition and site status to switch front-end features

Not for:

  • A machine-readable contract — use the OpenAPI document.

Behaviour:

  • Idempotent.
  • Safe to retry.
  • Changes are visible to the next read immediately.

Next: GET /v2/users/me

See also: GET /v1

Not yet documented: response → success.

curl -X GET "https://app3.timelog.com/your-account/api/v2" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "Properties": {
    "Version": "example_string",
    "ChangeSet": "example_string",
    "ServerTimeZoneId": "example_string",
    "ProductType": "TLP",
    "ShortName": "John Doe",
    "Edition": "Enterprise",
    "CustomerPortalUrl": "null",
    "CompanyName": "John Doe",
    "SiteLcid": 123,
    "SiteStatus": "Production",
    "FrontendAddressUrl": "123 Main St"
  },
  "Links": [
    {
      "Href": "example_string",
      "Rel": "example_string"
    }
  ],
  "Actions": [
    {}
  ]
}
GET
/v2
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. JWT and reference tokens are both accepted. The token must carry the required scope (default tlp). The token's sub claim is the acting user. A token WITHOUT sub (client-credentials) acts as the system service user. If the sub user cannot log in (inactive, locked, deleted), the request is rejected with 401 — it is no longer let through without a user. > Not yet documented: how to obtain a token. > Not yet documented: token lifetime.

OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. JWT and reference tokens are both accepted. The token must carry the required scope (default tlp). The token's sub claim is the acting user. A token WITHOUT sub (client-credentials) acts as the system service user. If the sub user cannot log in (inactive, locked, deleted), the request is rejected with 401 — it is no longer let through without a user. > Not yet documented: how to obtain a token. > Not yet documented: token lifetime.
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. JWT and reference tokens are both accepted. The token must carry the required scope (default tlp).

The token's sub claim is the acting user. A token WITHOUT sub (client-credentials) acts as the system service user. If the sub user cannot log in (inactive, locked, deleted), the request is rejected with 401 — it is no longer let through without a user.

Not yet documented: how to obtain a token.

Not yet documented: token lifetime.

Responses

Propertiesobject

The Properties of the REST v2 root document: which TimeLog build answered, and facts about the account site that a front end needs at start-up (product type, edition, company name, locale, production status, frontend address and, for some users, the customer-portal link).

Linksarray
Actionsobject[]