---
title: "Create agent recording configuration"
method: POST
path: "/ccaas/voice/2/agent-recording-configs/{agentId}"
tags: ["customer-engagement", "conversations", "recording-configuration-calls"]
---

# Create agent recording configuration

`POST /ccaas/voice/2/agent-recording-configs/{agentId}`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/ccaas/voice/2/agent-recording-configs/{agentId}`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`

Use this method to create an agent recording configuration. <a href="https://www.infobip.com/docs/conversations/calls#recording-set-up-calls" target="_blank">More info</a>.

## Path parameters

- `agentId` string, required

## Request body

- B979cda441a7c661201042835d7dc18eaec3fa68a2905164912469051f8b8866AgentRecordingConfigApiModel
  - `agentId` string, required: ID of the agent to which the recording configuration belongs.
  - `inbound` boolean: Inbound record call direction enabled. At least one of the parameters 'inbound' or 'outbound' must be set to true.
  - `outbound` boolean: Outbound record call direction enabled. At least one of the parameters 'inbound' or 'outbound' must be set to true.
  - `mediaType` 'AUDIO' | 'AUDIO_AND_VIDEO', required: Specifies whether the recording should be done on audio or both audio and video.
  - `useDefault` boolean: Use account recording config as default.
  - `enabled` boolean
  - `enabledChangedAt` integer

## Response `200`

OK

- B979cda441a7c661201042835d7dc18eaec3fa68a2905164912469051f8b8866AgentRecordingConfigApiModel
  - `agentId` string, required: ID of the agent to which the recording configuration belongs.
  - `inbound` boolean: Inbound record call direction enabled. At least one of the parameters 'inbound' or 'outbound' must be set to true.
  - `outbound` boolean: Outbound record call direction enabled. At least one of the parameters 'inbound' or 'outbound' must be set to true.
  - `mediaType` 'AUDIO' | 'AUDIO_AND_VIDEO', required: Specifies whether the recording should be done on audio or both audio and video.
  - `useDefault` boolean: Use account recording config as default.
  - `enabled` boolean
  - `enabledChangedAt` integer

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
