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

# Agent tool get device timeline



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/workspaces/{workspaceId}/agent/tools/devices/{deviceId}/timeline
openapi: 3.1.1
info:
  title: ContraForce API
  description: ContraForce platform API for security operations management.
  version: '2.0'
servers: []
security: []
tags:
  - name: Incidents
  - name: Gamebooks
  - name: Data sources
  - name: Service tickets
  - name: Investigation
  - name: agent-tools
  - name: Cross-workspace incidents
  - name: Cross-workspace gamebooks
  - name: Cross-workspace data sources
  - name: Webhooks
  - name: Service accounts
  - name: Users
  - name: Azure resources
paths:
  /api/v2/workspaces/{workspaceId}/agent/tools/devices/{deviceId}/timeline:
    get:
      tags:
        - agent-tools
      summary: Agent tool get device timeline
      operationId: v2-agent-tool-get-device-timeline
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: deviceId
          in: path
          required: true
          schema:
            type: string
        - name: alertTime
          in: query
          required: true
          schema:
            type: string
            format: date-time
        - name: entityName
          in: query
          schema:
            type: string
        - name: resourceId
          in: query
          schema:
            type: string
        - name: resourceName
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseOfAgentToolTabularResult'
        '400':
          description: Bad request — validation or parameter binding failed.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
        '401':
          description: Unauthorized — missing or invalid Bearer token.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
        '403':
          description: Forbidden — insufficient scope or workspace access.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
        '404':
          description: Not found — workspace or resource is missing.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
        '500':
          description: Internal server error.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
components:
  schemas:
    ApiResponseOfAgentToolTabularResult:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/AgentToolTabularResult'
        meta:
          $ref: '#/components/schemas/ResponseMeta'
      description: Standard v2 API response envelope for single-item responses.
    ApiProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
        code:
          type:
            - 'null'
            - string
        requestId:
          type:
            - 'null'
            - string
        timestamp:
          type:
            - 'null'
            - string
        target:
          type:
            - 'null'
            - string
        errors:
          type:
            - 'null'
            - object
          additionalProperties:
            type: array
            items:
              type: string
      description: >-
        API extension of ProblemDetails that surfaces the stable error code,

        trace identifier, timestamp, optional target, and optional field-keyed
        validation

        error map alongside the RFC 7807 members.
    AgentToolTabularResult:
      type: object
      properties:
        success:
          type: boolean
          description: >-
            True when the underlying lookup completed and the rows reflect real
            data. False for upstream failures, prerequisite-missing errors (e.g.
            module disabled, no aadUserId), or empty-with-reason responses — see
            `summary` for the cause.
        summary:
          type:
            - 'null'
            - string
          description: >-
            Compact human-readable digest: row count + truncation hint, or a
            one-line failure reason. Omitted when there is nothing meaningful to
            say beyond the rows themselves.
        row_count:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: >-
            Number of rows actually returned in `rows`. Zero when the lookup ran
            successfully but produced no matches.
          format: int32
        truncated:
          type: boolean
          description: >-
            True when the upstream produced more rows than were returned (row
            cap hit). Narrow the query / time window rather than attempting
            pagination — these tools have no pagination contract unless
            `next_page_link` is present.
        columns:
          type:
            - 'null'
            - array
          items:
            type: string
          description: >-
            Column names in order. Index into each row in `rows` using the
            position of the column name here. Columns whose values were
            null/empty across every projected row are auto-pruned so the agent
            isn't asked to reason about noise.
        rows:
          type:
            - 'null'
            - array
          items:
            type: array
            items:
              type: string
          description: >-
            Result rows as parallel arrays aligned to `columns`.
            Position-aligned: rows[r][c] is the value of columns[c] for row r.
            Values are stringified — booleans become 'true'/'false', timestamps
            are ISO-8601 UTC, oversized cells are truncated with a `…(N more)`
            suffix.
        constants:
          type:
            - 'null'
            - object
          additionalProperties:
            type: string
          description: >-
            Columns whose value was identical across every projected row,
            promoted out of `rows` and emitted once here. Saves tokens when
            (e.g.) every sign-in event has the same userPrincipalName.
        next_page_link:
          type:
            - 'null'
            - string
          description: >-
            Opaque pagination cursor returned by the upstream provider. Pass
            back as `next_page_link` on the next call to continue paging; omit
            for the first page. Absent when the upstream does not support
            pagination or there are no more pages.
      description: >-
        Token-efficient envelope for agent-tool list responses. Rows are stored
        as parallel

        arrays aligned to a single shared List&lt;string&gt;
        AgentToolTabularResult.Columns header so column names are

        written exactly once rather than once per row.
    ResponseMeta:
      type: object
      properties:
        requestId:
          type:
            - 'null'
            - string
        timestamp:
          type:
            - 'null'
            - string

````