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

# create one or multiple copilotAuditLogs

`POST /api/serviceorganizations/copilotAuditLogs`

## Request

- Base URL: `https://services.fountain.com`
- URL: `https://services.fountain.com/api/serviceorganizations/copilotAuditLogs`
- Auth: HTTP bearer

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, nullable: Internal ExAgent ID of the agent that ran the call. Null for a custom agent's own calls
    - `exAgentThreadId` integer: Internal ExAgent Thread ID
    - `exAgentUuid` string, uuid, nullable: External ExAgent UUID of the agent that ran the call. Null for a custom agent's own calls
    - `customAgentId` integer, nullable: Internal ID of the custom agent that made the call, or that spawned the worker that made it
    - `customAgentUuid` string, uuid, nullable: UUID of the custom agent in customAgentId
    - `subAgentId` integer, nullable: Internal ID of the worker (sub-agent) that made the call
    - `subAgentUuid` string, uuid, nullable: UUID of the worker in subAgentId
    - `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
    - `source` 'platform' | 'mcp_connector' | 'server_tool': Where the tool call ran: the Fountain platform, an MCP connector, or an Anthropic-hosted server tool (web fetch, web search, code execution, tool search, advisor)
    - `provider` string, nullable: Provider key for non-platform sources: the connector key when source is mcp_connector, or "anthropic" when source is server_tool
    - `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, nullable: Internal ExAgent ID of the agent that ran the call. Null for a custom agent's own calls
    - `exAgentThreadId` integer: Internal ExAgent Thread ID
    - `exAgentUuid` string, uuid, nullable: External ExAgent UUID of the agent that ran the call. Null for a custom agent's own calls
    - `customAgentId` integer, nullable: Internal ID of the custom agent that made the call, or that spawned the worker that made it
    - `customAgentUuid` string, uuid, nullable: UUID of the custom agent in customAgentId
    - `subAgentId` integer, nullable: Internal ID of the worker (sub-agent) that made the call
    - `subAgentUuid` string, uuid, nullable: UUID of the worker in subAgentId
    - `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
    - `source` 'platform' | 'mcp_connector' | 'server_tool': Where the tool call ran: the Fountain platform, an MCP connector, or an Anthropic-hosted server tool (web fetch, web search, code execution, tool search, advisor)
    - `provider` string, nullable: Provider key for non-platform sources: the connector key when source is mcp_connector, or "anthropic" when source is server_tool
    - `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, nullable: Internal ExAgent ID of the agent that ran the call. Null for a custom agent's own calls
      - `exAgentThreadId` integer: Internal ExAgent Thread ID
      - `exAgentUuid` string, uuid, nullable: External ExAgent UUID of the agent that ran the call. Null for a custom agent's own calls
      - `customAgentId` integer, nullable: Internal ID of the custom agent that made the call, or that spawned the worker that made it
      - `customAgentUuid` string, uuid, nullable: UUID of the custom agent in customAgentId
      - `subAgentId` integer, nullable: Internal ID of the worker (sub-agent) that made the call
      - `subAgentUuid` string, uuid, nullable: UUID of the worker in subAgentId
      - `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
      - `source` 'platform' | 'mcp_connector' | 'server_tool': Where the tool call ran: the Fountain platform, an MCP connector, or an Anthropic-hosted server tool (web fetch, web search, code execution, tool search, advisor)
      - `provider` string, nullable: Provider key for non-platform sources: the connector key when source is mcp_connector, or "anthropic" when source is server_tool
      - `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, nullable: Internal ExAgent ID of the agent that ran the call. Null for a custom agent's own calls
      - `exAgentThreadId` integer: Internal ExAgent Thread ID
      - `exAgentUuid` string, uuid, nullable: External ExAgent UUID of the agent that ran the call. Null for a custom agent's own calls
      - `customAgentId` integer, nullable: Internal ID of the custom agent that made the call, or that spawned the worker that made it
      - `customAgentUuid` string, uuid, nullable: UUID of the custom agent in customAgentId
      - `subAgentId` integer, nullable: Internal ID of the worker (sub-agent) that made the call
      - `subAgentUuid` string, uuid, nullable: UUID of the worker in subAgentId
      - `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
      - `source` 'platform' | 'mcp_connector' | 'server_tool': Where the tool call ran: the Fountain platform, an MCP connector, or an Anthropic-hosted server tool (web fetch, web search, code execution, tool search, advisor)
      - `provider` string, nullable: Provider key for non-platform sources: the connector key when source is mcp_connector, or "anthropic" when source is server_tool
      - `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
    - `capped` boolean: The server lowered filter[limit] to its ceiling. Page with filter[skip] to read past it.
    - `status` string
    - `duration` number
    - `size` number

## Other responses

- `500`: default error response

---

[API](https://skmtc.dev/fountain/apis/worker-experience-public-api.md) - [All operations](https://skmtc.dev/fountain/apis/worker-experience-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fountain/apis/worker-experience-public-api/revisions/6b9a31f79e22?raw)
