# Create a manual time entry

> `POST` `/v1/time-entries`

URL: https://www.agencytitan.com/docs/tag/time-entries/POST/v1/time-entries

Operation ID: `time_entries_create`

Tag: [time_entries](https://www.agencytitan.com/docs/tag/time-entries.md)

## Description

Creates a completed manual time entry and returns its id. Members may log their own time; logging time for another user requires reports.manage.

## Parameters

_None_

## Request body

- Required: yes
- Content-Type: `application/json`
  - Type: `object`
  - Properties:
    - `category` (`string`) — Tracking category for the work.
    - `client_id` (`string|null`) — Client associated with the work.
    - `department_id` (`string|null`) — Department associated with the work.
    - `ended_at` (`string`, required) — When the work ended; must be after started_at.
    - `escalation_id` (`string|null`) — Escalation associated with the work.
    - `process_definition_id` (`string|null`) — Process definition associated with the work.
    - `process_instance_id` (`string|null`) — Task associated with the work.
    - `stage_id` (`string|null`) — Process stage definition associated with the work.
    - `stage_instance_id` (`string|null`) — Task stage instance associated with the work.
    - `started_at` (`string`, required) — When the work started; must be in the past.
    - `ticket_id` (`string|null`) — Ticket associated with the work.
    - `user_id` (`string|null`) — User who performed the work. Omit for yourself; creating for another user requires reports.manage.

## Responses

- `200` (`application/json`): Successful response.
  - Type: `object`
  - Properties:
    - `data` (`string`, required)
- `400` (`application/json`): Request validation failed (unknown or out-of-range parameters/properties are rejected).
  - Type: `object`
  - Properties:
    - `error` (`object`, required)
- `401` (`application/json`): Missing, invalid, expired, or revoked bearer token.
  - Type: `object`
  - Properties:
    - `error` (`string`, required)
    - `error_description` (`string`, required)
- `403` (`application/json`): The authenticated user does not have permission for this operation.
  - Type: `object`
  - Properties:
    - `error` (`object`, required)
- `404` (`application/json`): The requested resource was not found.
  - Type: `object`
  - Properties:
    - `error` (`object`, required)
- `409` (`application/json`): The request conflicts with an existing record or partially applied.
  - Type: `object`
  - Properties:
    - `error` (`object`, required)
- `429` (`application/json`): Per-tenant rate limit exceeded (600 requests/minute across all /v1 REST endpoints). The Retry-After header indicates how many seconds to wait.
  - Type: `object`
  - Properties:
    - `error` (`object`, required)
- `500` (`application/json`): An unexpected internal error occurred.
  - Type: `object`
  - Properties:
    - `error` (`object`, required)

## Authentication

- `bearerAuth` — http (bearer) — All /v1 endpoints (except `/v1/openapi.json` and `/v1/llms.txt`) require a bearer token. Two equal first-class paths: (1) an OAuth 2.0 access token from the au…

## Useful links

- Interactive page: https://www.agencytitan.com/docs/tag/time-entries/POST/v1/time-entries
- API reference home: https://www.agencytitan.com/docs/
- Tag page: https://www.agencytitan.com/docs/tag/time-entries.md
- This operation as Markdown: https://www.agencytitan.com/docs/tag/time-entries/POST/v1/time-entries.md
- OpenAPI JSON: https://www.agencytitan.com/docs/openapi.json
- Full API Markdown: https://api.agencytitan.com/v1/llms.txt
- API keys: https://app.agencytitan.com/settings/api-mcp
