> ## Documentation Index
> Fetch the complete documentation index at: https://ago.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Log Work

> Log work you start (`in_progress`), finish (`done`) or drop (`abandoned`).

Send the same `key` when the work ends to close the entry its start opened. Keep `title` and
`comment` high level: no customer data, credentials or file contents. Work in the `hr`,
`personal` or `sensitive_strategy` category, or about a topic your workspace excludes in the work
log settings, is never stored: the answer is 204, and an entry already logged under that key is
removed. A 503 means the excluded-topics check could not run and nothing was stored: try again.



## OpenAPI

````yaml /openapi-v1.json post /api/v1/work-log
openapi: 3.1.0
info:
  title: AGO Public API
  version: 1.0.0
  description: Programmatic access to your AGO workspace.
servers:
  - url: https://{tenant_id}.api.useago.com
    description: AGO Public API v1
    variables:
      tenant_id:
        default: your-tenant-id
        description: Your AGO tenant identifier
security: []
paths:
  /api/v1/work-log:
    post:
      tags:
        - Work log
      summary: Log Work
      description: >-
        Log work you start (`in_progress`), finish (`done`) or drop
        (`abandoned`).


        Send the same `key` when the work ends to close the entry its start
        opened. Keep `title` and

        `comment` high level: no customer data, credentials or file contents.
        Work in the `hr`,

        `personal` or `sensitive_strategy` category, or about a topic your
        workspace excludes in the work

        log settings, is never stored: the answer is 204, and an entry already
        logged under that key is

        removed. A 503 means the excluded-topics check could not run and nothing
        was stored: try again.
      operationId: log_work
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkLogEntryIn'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkLogEntryOut'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkLogEntryOut'
        '204':
          description: No Content
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    WorkLogEntryIn:
      properties:
        status:
          enum:
            - in_progress
            - done
            - abandoned
          title: Status
          type: string
        key:
          default: ''
          description: >-
            Your own stable name for this piece of work (a branch, a pull
            request, a project). Logging again with the same key updates the
            entry instead of adding one.
          maxLength: 200
          title: Key
          type: string
        title:
          anyOf:
            - maxLength: 200
              type: string
            - type: 'null'
          description: What the work is, in one high-level sentence. Required to add.
          title: Title
        comment:
          anyOf:
            - maxLength: 1000
              type: string
            - type: 'null'
          title: Comment
        category:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            engineering, product, sales, support, marketing, operations, finance
            or other. Work sent as hr, personal or sensitive_strategy is never
            stored.
          title: Category
        work_type:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The kind of work: feature, fix, maintenance, research,
            documentation, customer_request, review or other.
          title: Work Type
        reference_url:
          anyOf:
            - maxLength: 500
              type: string
            - type: 'null'
          description: Where the result lives.
          title: Reference Url
        source:
          anyOf:
            - maxLength: 40
              type: string
            - type: 'null'
          description: The tool that logged it.
          title: Source
        task_id:
          anyOf:
            - type: string
            - type: 'null'
          description: Task UUID or identifier such as TASK-12
          title: Task Id
        team:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Team name or id the work belongs to. Defaults to your team when you
            are in exactly one.
          title: Team
        tags:
          anyOf:
            - items:
                type: string
              maxItems: 10
              type: array
            - type: 'null'
          description: Free labels to filter on, such as a project or a customer segment.
          title: Tags
      required:
        - status
      title: WorkLogEntryIn
      type: object
    WorkLogEntryOut:
      properties:
        object:
          default: work_log_entry
          title: Object
          type: string
        id:
          title: Id
          type: string
        author:
          $ref: '#/components/schemas/TaskUserRef'
        key:
          title: Key
          type: string
        title:
          title: Title
          type: string
        comment:
          title: Comment
          type: string
        category:
          title: Category
          type: string
        work_type:
          title: Work Type
          type: string
        status:
          title: Status
          type: string
        reference_url:
          title: Reference Url
          type: string
        source:
          title: Source
          type: string
        task:
          anyOf:
            - $ref: '#/components/schemas/WorkLogTaskRef'
            - type: 'null'
        team:
          anyOf:
            - $ref: '#/components/schemas/WorkLogTeamRef'
            - type: 'null'
        tags:
          items:
            type: string
          title: Tags
          type: array
        started_at:
          format: date-time
          title: Started At
          type: string
        ended_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Ended At
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - id
        - author
        - key
        - title
        - comment
        - category
        - work_type
        - status
        - reference_url
        - source
        - tags
        - started_at
        - updated_at
      title: WorkLogEntryOut
      type: object
    TaskUserRef:
      properties:
        id:
          title: Id
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
      required:
        - id
      title: TaskUserRef
      type: object
    WorkLogTaskRef:
      properties:
        id:
          title: Id
          type: string
        identifier:
          anyOf:
            - type: string
            - type: 'null'
          title: Identifier
      required:
        - id
      title: WorkLogTaskRef
      type: object
    WorkLogTeamRef:
      properties:
        id:
          title: Id
          type: string
        name:
          title: Name
          type: string
      required:
        - id
        - name
      title: WorkLogTeamRef
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.