---
title: "create one or multiple copilotAuditLogs"
method: POST
path: "/api/serviceorganizations/copilotAuditLogs"
tags: ["copilotAuditLogs"]
---

# create one or multiple copilotAuditLogs

`POST /api/serviceorganizations/copilotAuditLogs`

Create one or multiple copilotAuditLogs

## Request body

- union
  - CopilotAuditLog
    - `uuid` string, uuid
    - `createdAt` string, date-time
    - `createdBy` string, uuid
    - `lastUpdatedAt` string, date-time
    - `lastUpdatedBy` string, uuid
    - `lastUpdatedByAudience` string
    - `lastUpdatedByAudienceUuid` string, uuid
    - `lastUpdatedByImpersonatedBy` string, uuid
    - `lastUpdatedByCompanyUuid` string, uuid
    - `lastUpdatedByEnterpriseUuid` string, uuid
    - `companyUuid` string, uuid, required — Unique identifier for the company
    - `agentName` string, required — Name of the agent
    - `exAgentId` integer, required — Internal ExAgent ID
    - `exAgentThreadId` integer, required — Internal ExAgent Thread ID
    - `exAgentUuid` string, uuid — External ExAgent UUID
    - `exAgentThreadUuid` string, uuid — External ExAgent Thread UUID
    - `userId` string — User ID who triggered the tool call
    - `userEmail` string — User email who triggered the tool call
    - `actionType` string — Action type (if applicable)
    - `output` string — Serialized output of the tool call
    - `status` string — Status of the tool call
    - `annotations` object — Any extra metadata annotations
  - CopilotAuditLog[]
    - `uuid` string, uuid
    - `createdAt` string, date-time
    - `createdBy` string, uuid
    - `lastUpdatedAt` string, date-time
    - `lastUpdatedBy` string, uuid
    - `lastUpdatedByAudience` string
    - `lastUpdatedByAudienceUuid` string, uuid
    - `lastUpdatedByImpersonatedBy` string, uuid
    - `lastUpdatedByCompanyUuid` string, uuid
    - `lastUpdatedByEnterpriseUuid` string, uuid
    - `companyUuid` string, uuid, required — Unique identifier for the company
    - `agentName` string, required — Name of the agent
    - `exAgentId` integer, required — Internal ExAgent ID
    - `exAgentThreadId` integer, required — Internal ExAgent Thread ID
    - `exAgentUuid` string, uuid — External ExAgent UUID
    - `exAgentThreadUuid` string, uuid — External ExAgent Thread UUID
    - `userId` string — User ID who triggered the tool call
    - `userEmail` string — User email who triggered the tool call
    - `actionType` string — Action type (if applicable)
    - `output` string — Serialized output of the tool call
    - `status` string — Status of the tool call
    - `annotations` object — Any extra metadata annotations

## Response `201`

One or many copilotAuditLog documents created. Wrapped in a JsonAPI root response.

- object
  - `data` union
    - CopilotAuditLog
      - `uuid` string, uuid
      - `createdAt` string, date-time
      - `createdBy` string, uuid
      - `lastUpdatedAt` string, date-time
      - `lastUpdatedBy` string, uuid
      - `lastUpdatedByAudience` string
      - `lastUpdatedByAudienceUuid` string, uuid
      - `lastUpdatedByImpersonatedBy` string, uuid
      - `lastUpdatedByCompanyUuid` string, uuid
      - `lastUpdatedByEnterpriseUuid` string, uuid
      - `companyUuid` string, uuid, required — Unique identifier for the company
      - `agentName` string, required — Name of the agent
      - `exAgentId` integer, required — Internal ExAgent ID
      - `exAgentThreadId` integer, required — Internal ExAgent Thread ID
      - `exAgentUuid` string, uuid — External ExAgent UUID
      - `exAgentThreadUuid` string, uuid — External ExAgent Thread UUID
      - `userId` string — User ID who triggered the tool call
      - `userEmail` string — User email who triggered the tool call
      - `actionType` string — Action type (if applicable)
      - `output` string — Serialized output of the tool call
      - `status` string — Status of the tool call
      - `annotations` object — Any extra metadata annotations
    - CopilotAuditLog[]
      - `uuid` string, uuid
      - `createdAt` string, date-time
      - `createdBy` string, uuid
      - `lastUpdatedAt` string, date-time
      - `lastUpdatedBy` string, uuid
      - `lastUpdatedByAudience` string
      - `lastUpdatedByAudienceUuid` string, uuid
      - `lastUpdatedByImpersonatedBy` string, uuid
      - `lastUpdatedByCompanyUuid` string, uuid
      - `lastUpdatedByEnterpriseUuid` string, uuid
      - `companyUuid` string, uuid, required — Unique identifier for the company
      - `agentName` string, required — Name of the agent
      - `exAgentId` integer, required — Internal ExAgent ID
      - `exAgentThreadId` integer, required — Internal ExAgent Thread ID
      - `exAgentUuid` string, uuid — External ExAgent UUID
      - `exAgentThreadUuid` string, uuid — External ExAgent Thread UUID
      - `userId` string — User ID who triggered the tool call
      - `userEmail` string — User email who triggered the tool call
      - `actionType` string — Action type (if applicable)
      - `output` string — Serialized output of the tool call
      - `status` string — Status of the tool call
      - `annotations` object — Any extra metadata annotations
  - `meta` ResponsesPartMeta
    - `timestamp` string, date-time, required
    - `verb` 'OPTION' | 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE'
    - `path` string
    - `jti` string
    - `rid` string
    - `count` number
    - `status` string
    - `duration` number
    - `size` number

## Other responses

- `500` — default error response

---

[API](https://skmtc.net/fountain/apis/hire-public-api.md) · [All operations](https://skmtc.net/fountain/apis/hire-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fountain/hire-public-api/versions/5f406c0e9462/schema)
