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

# Create Queue Map API

[Back to API List](https://koreai.mintlify.site/ai-for-service/apis/quality-ai/api-list)

The Create Queue Map API lets you to create a queue mapping for Quality AI evaluation. This mapping defines how queues are associated with evaluation criteria and helps in organizing and analyzing quality data across different queues.

| **METHOD** | **POST** |
| :- | :- |
| Endpoint | `https://{{host}}/qualityManagement/api/v1/public/{{botId}}/qm/queuemappings/create` |
| Content Type | `application/json` |
| Authorization | `auth: {{JWT}}` — See [How to generate the JWT Token](https://koreai.mintlify.site/ai-for-service/apis/automation/api-introduction.md#generating-the-jwt-token). |
| API Scope | Quality Management Analytics. |

## Header Parameters

| Parameter | Description | Type |
| :- | :- | :- |
| `Content-Type` | `application/json` | String, required |
| `accountId` | Unique account identifier. For example, `67a9ca06cf0e510a8632xxxx` | String, required |
| `auth` | JWT token used for authentication. | String, required |

## Path Parameters

| Parameter | Description | Type |
| :- | :- | :- |
| `host` | Environment URL. For example, `https://platform.kore.ai/` | String, required |
| `botId` | Bot identifier. Retrieve this from the [App Profile](https://koreai.mintlify.site/ai-for-service/app-settings/app-profile) page. | String, required |

## Sample Request

```bash theme={null}
curl --location 'https://{{host}}/qualityManagement/api/v1/public/{{botId}}/qm/queuemappings/create' \
--header 'accountId: {{accountId}}' \
--header 'auth: {{JWT_TOKEN}}' \
--header 'Content-Type: application/json' \
--data '{
  "customQueueId": "checkjune12Q",
  "queueName": "check june12 queue",
  "conversationSource": "QMExpressAI"
}'
```

## Body Parameters

| Parameter | Description | Type |
| :- | :- | :- |
| `customQueueId` | Unique queue identifier. | String, required |
| `queueName` | Queue name. | String, required |
| `conversationSource` | Conversation source (`AgentAI` or `QMExpressAI`). | String, required |

## Sample Response

```json theme={null}
{
  "results": {
    "customQueueId": "checkjune12Q",
    "queueName": "check june12 queue",
    "conversationSource": "QMExpressAI"
  }
}
```

## Response Body Parameters

| Parameter | Description | Type |
| :- | :- | - |
| `customQueueId` | Unique queue identifier. | String |
| `queueName` | Queue name. | String |
| `conversationSource` | Conversation source. | String |


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