Zum Inhalt springen
Leadtime
Deutsch
Esc
navigateopen⌘Jpreview

Get employee journal entry details

Returns complete details for a specific employee journal entry.

What is returned:

  • Journal entry ID and associated employee ID
  • Rich text content (body) converted to HTML format from the internal document format
  • Mood indicator (Happy, Neutral, or Sad)
  • Optional reminder date in ISO 8601 format (null if not set)
  • Creation timestamp (when the entry was created)
  • Last update timestamp (when the entry was last modified)
  • Creator user ID (who created the entry)

Access control:

  • Creator of the entry can access
  • Users with Employees.edit permission can access any journal entry
  • Returns 404 if the entry does not exist, has been deleted, or the user does not have access

Note: The body content is automatically converted from the internal document format (IDoc) to HTML for easy display in web applications.

GET/employees/journal/{id}
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:read
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired
Responses
200
bodystringrequired
Journal entry content in HTML format. The content is automatically converted from the internal document format (IDoc) to HTML for easy display in web applications. Contains the rich text content including headings, paragraphs, lists, links, and formatting as originally provided.
createdAtstringrequired
ISO 8601 timestamp indicating when this journal entry was created. Format: YYYY-MM-DDTHH:mm:ssZ (e.g., "2024-01-15T10:30:00Z").
createdBystringrequired
UUID of the user who created this journal entry. This identifies who wrote the entry, which is useful for tracking authorship and accountability.
employeeIdstringrequired
UUID of the employee this journal entry is associated with. This identifies which employee the entry is about.
idstringrequired
Unique identifier (UUID) for this journal entry
lastUpdatedstringrequired
ISO 8601 timestamp indicating when this journal entry was last modified. Format: YYYY-MM-DDTHH:mm:ssZ (e.g., "2024-01-16T14:20:00Z"). This is automatically updated whenever the entry is edited via the PATCH endpoint.
moodstringrequired
Emotional indicator for the journal entry. Values: `Happy` (positive interaction), `Neutral` (standard/neutral interaction), or `Sad` (negative or concerning interaction). This helps categorize and filter entries by emotional context.
Allowed:SadNeutralHappy
reminderobject | nullrequired
Optional reminder date in ISO 8601 format (YYYY-MM-DD). Set when creating or updating the entry to track follow-up dates for goals, agreements, or actions. Returns `null` if no reminder is set. Example: "2024-12-31" for December 31, 2024.
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X GET "https://leadtime.app/api/public/employees/journal/string" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "body": "<h1>Employee Update</h1><p>Had a productive meeting today. Discussed project timeline and next steps.</p>",
  "createdAt": "2024-01-15T10:30:00Z",
  "createdBy": "550e8400-e29b-41d4-a716-446655440000",
  "employeeId": "550e8400-e29b-41d4-a716-446655440000",
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "lastUpdated": "2024-01-16T14:20:00Z",
  "mood": "Neutral",
  "reminder": "2024-12-31"
}