> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.makimoto.ai/llms.txt.
> For full documentation content, see https://apidocs.makimoto.ai/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.makimoto.ai/_mcp/server.

# Tag conversation transcripts

POST https://tag
Content-Type: application/json

Process and tag conversation transcripts with relevant labels or categories. Returns results inline when `callback_url` is omitted; otherwise returns 202 Accepted and POSTs the result to the callback when ready.

Reference: https://apidocs.makimoto.ai/makimoto-api-docs/tag/tag-conversation-transcripts

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /tag:
    post:
      operationId: tag-conversation-transcripts
      summary: Tag conversation transcripts
      description: >-
        Process and tag conversation transcripts with relevant labels or
        categories. Returns results inline when `callback_url` is omitted;
        otherwise returns 202 Accepted and POSTs the result to the callback when
        ready.
      tags:
        - subpackage_tag
      parameters:
        - name: apikey
          in: header
          description: Optional API key when calling through an API gateway.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Inline mode (no callback_url).
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/tag_Tag conversation
                  transcripts_Response_200
        '401':
          description: Missing or invalid apikey.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTagRequestUnauthorizedError'
        '500':
          description: Unexpected internal error or configuration failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTagRequestInternalServerError'
        '502':
          description: llm-model returned an error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTagRequestBadGatewayError'
        '503':
          description: llm-model not ready.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTagRequestServiceUnavailableError'
        '504':
          description: llm-model unreachable or inference timed out.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostTagRequestGatewayTimeoutError'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                call_uuid:
                  type: string
                transcripts:
                  type: array
                  items:
                    type: string
                callback_url:
                  type: string
                  format: uri
              required:
                - call_uuid
                - transcripts
                - callback_url
servers:
  - url: https:/
    description: https://{baseurl}
components:
  schemas:
    TagPostResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        msg_id:
          type: string
          format: uuid
        message:
          type: string
        request_id:
          type: string
        callback_url:
          type: string
          format: uri
      required:
        - msg_id
        - message
        - request_id
        - callback_url
      title: TagPostResponsesContentApplicationJsonSchemaData
    tag_Tag conversation transcripts_Response_200:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/TagPostResponsesContentApplicationJsonSchemaData
        status:
          type: string
      required:
        - data
        - status
      title: tag_Tag conversation transcripts_Response_200
    PostTagRequestUnauthorizedError:
      type: object
      properties:
        message:
          type: string
        request_id:
          type: string
      required:
        - message
        - request_id
      title: PostTagRequestUnauthorizedError
    TagPostResponsesContentApplicationJsonSchemaError:
      type: object
      properties:
        code:
          type: string
        type:
          type: string
        message:
          type: string
      required:
        - code
        - type
        - message
      title: TagPostResponsesContentApplicationJsonSchemaError
    PostTagRequestInternalServerError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/TagPostResponsesContentApplicationJsonSchemaError
        status:
          type: string
      required:
        - error
        - status
      title: PostTagRequestInternalServerError
    PostTagRequestBadGatewayError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/TagPostResponsesContentApplicationJsonSchemaError
        status:
          type: string
      required:
        - error
        - status
      title: PostTagRequestBadGatewayError
    PostTagRequestServiceUnavailableError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/TagPostResponsesContentApplicationJsonSchemaError
        status:
          type: string
      required:
        - error
        - status
      title: PostTagRequestServiceUnavailableError
    PostTagRequestGatewayTimeoutError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/TagPostResponsesContentApplicationJsonSchemaError
        status:
          type: string
      required:
        - error
        - status
      title: PostTagRequestGatewayTimeoutError

```

## Examples

### tag_Tag conversation transcripts_example



**Request**

```json
{
  "call_uuid": "call-abc123",
  "transcripts": [
    "Agent: Hello, how can I help you today?\nCustomer: I have a billing issue."
  ],
  "callback_url": "https://hooks.example.com/cb"
}
```

**Response**

```json
{
  "data": {
    "tags": [
      {
        "call_reason": [
          "general_inquiry"
        ],
        "call_outcome": [
          "issue_resolved"
        ],
        "agent_approach": [
          "agent_helpful"
        ],
        "agent_behaviour": [
          "agent_acts_professionally",
          "agent_greets_at_start",
          "agent_ends_professionally"
        ],
        "customer_behaviour": [
          "customer_polite"
        ],
        "customer_sentiment": [
          "customer_negative_sentiment"
        ],
        "malicious_agent_behaviour": []
      }
    ],
    "meta_data": {
      "msg_id": "089f4f5c-32b3-4e98-9e76-e3eeca7f6aaf",
      "total_tokens": 686,
      "prompt_tokens": 589,
      "time_taken_secs": 19.275431,
      "completion_tokens": 97,
      "time_per_example_secs": 19.275431,
      "per_example_completion_tokens": [
        97
      ]
    }
  },
  "status": "S001"
}
```

**SDK Code**

```python tag_Tag conversation transcripts_example
import requests

url = "https://https/tag"

payload = {
    "call_uuid": "call-abc123",
    "transcripts": ["Agent: Hello, how can I help you today?
Customer: I have a billing issue."],
    "callback_url": "https://hooks.example.com/cb"
}
headers = {
    "apikey": "{{apikey}}",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript tag_Tag conversation transcripts_example
const url = 'https://https/tag';
const options = {
  method: 'POST',
  headers: {apikey: '{{apikey}}', 'Content-Type': 'application/json'},
  body: '{"call_uuid":"call-abc123","transcripts":["Agent: Hello, how can I help you today?\nCustomer: I have a billing issue."],"callback_url":"https://hooks.example.com/cb"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go tag_Tag conversation transcripts_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/tag"

	payload := strings.NewReader("{\n  \"call_uuid\": \"call-abc123\",\n  \"transcripts\": [\n    \"Agent: Hello, how can I help you today?\\nCustomer: I have a billing issue.\"\n  ],\n  \"callback_url\": \"https://hooks.example.com/cb\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("apikey", "{{apikey}}")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby tag_Tag conversation transcripts_example
require 'uri'
require 'net/http'

url = URI("https://https/tag")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["apikey"] = '{{apikey}}'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"call_uuid\": \"call-abc123\",\n  \"transcripts\": [\n    \"Agent: Hello, how can I help you today?\\nCustomer: I have a billing issue.\"\n  ],\n  \"callback_url\": \"https://hooks.example.com/cb\"\n}"

response = http.request(request)
puts response.read_body
```

```java tag_Tag conversation transcripts_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/tag")
  .header("apikey", "{{apikey}}")
  .header("Content-Type", "application/json")
  .body("{\n  \"call_uuid\": \"call-abc123\",\n  \"transcripts\": [\n    \"Agent: Hello, how can I help you today?\\nCustomer: I have a billing issue.\"\n  ],\n  \"callback_url\": \"https://hooks.example.com/cb\"\n}")
  .asString();
```

```php tag_Tag conversation transcripts_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/tag', [
  'body' => '{
  "call_uuid": "call-abc123",
  "transcripts": [
    "Agent: Hello, how can I help you today?\\nCustomer: I have a billing issue."
  ],
  "callback_url": "https://hooks.example.com/cb"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'apikey' => '{{apikey}}',
  ],
]);

echo $response->getBody();
```

```csharp tag_Tag conversation transcripts_example
using RestSharp;

var client = new RestClient("https://https/tag");
var request = new RestRequest(Method.POST);
request.AddHeader("apikey", "{{apikey}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"call_uuid\": \"call-abc123\",\n  \"transcripts\": [\n    \"Agent: Hello, how can I help you today?\\nCustomer: I have a billing issue.\"\n  ],\n  \"callback_url\": \"https://hooks.example.com/cb\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift tag_Tag conversation transcripts_example
import Foundation

let headers = [
  "apikey": "{{apikey}}",
  "Content-Type": "application/json"
]
let parameters = [
  "call_uuid": "call-abc123",
  "transcripts": ["Agent: Hello, how can I help you today?
Customer: I have a billing issue."],
  "callback_url": "https://hooks.example.com/cb"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://https/tag")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### tag_Tag conversation transcripts_example



**Request**

```json
{
  "call_uuid": "call-abc123",
  "transcripts": [
    "Agent: Hello, how can I help you today?\nCustomer: I have a billing issue."
  ],
  "callback_url": "https://hooks.example.com/cb"
}
```

**Response**

```json
{
  "data": {
    "msg_id": "089f4f5c-32b3-4e98-9e76-e3eeca7f6aaf",
    "message": "Tagging request received and is being processed",
    "request_id": "f9f23b27019a553c04c2d4280d37fd42",
    "callback_url": "https://hooks.example.com/cb"
  },
  "status": "S001"
}
```

**SDK Code**

```python tag_Tag conversation transcripts_example
import requests

url = "https://https/tag"

payload = {
    "call_uuid": "call-abc123",
    "transcripts": ["Agent: Hello, how can I help you today?
Customer: I have a billing issue."],
    "callback_url": "https://hooks.example.com/cb"
}
headers = {
    "apikey": "{{apikey}}",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript tag_Tag conversation transcripts_example
const url = 'https://https/tag';
const options = {
  method: 'POST',
  headers: {apikey: '{{apikey}}', 'Content-Type': 'application/json'},
  body: '{"call_uuid":"call-abc123","transcripts":["Agent: Hello, how can I help you today?\nCustomer: I have a billing issue."],"callback_url":"https://hooks.example.com/cb"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go tag_Tag conversation transcripts_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/tag"

	payload := strings.NewReader("{\n  \"call_uuid\": \"call-abc123\",\n  \"transcripts\": [\n    \"Agent: Hello, how can I help you today?\\nCustomer: I have a billing issue.\"\n  ],\n  \"callback_url\": \"https://hooks.example.com/cb\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("apikey", "{{apikey}}")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby tag_Tag conversation transcripts_example
require 'uri'
require 'net/http'

url = URI("https://https/tag")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["apikey"] = '{{apikey}}'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"call_uuid\": \"call-abc123\",\n  \"transcripts\": [\n    \"Agent: Hello, how can I help you today?\\nCustomer: I have a billing issue.\"\n  ],\n  \"callback_url\": \"https://hooks.example.com/cb\"\n}"

response = http.request(request)
puts response.read_body
```

```java tag_Tag conversation transcripts_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/tag")
  .header("apikey", "{{apikey}}")
  .header("Content-Type", "application/json")
  .body("{\n  \"call_uuid\": \"call-abc123\",\n  \"transcripts\": [\n    \"Agent: Hello, how can I help you today?\\nCustomer: I have a billing issue.\"\n  ],\n  \"callback_url\": \"https://hooks.example.com/cb\"\n}")
  .asString();
```

```php tag_Tag conversation transcripts_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/tag', [
  'body' => '{
  "call_uuid": "call-abc123",
  "transcripts": [
    "Agent: Hello, how can I help you today?\\nCustomer: I have a billing issue."
  ],
  "callback_url": "https://hooks.example.com/cb"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'apikey' => '{{apikey}}',
  ],
]);

echo $response->getBody();
```

```csharp tag_Tag conversation transcripts_example
using RestSharp;

var client = new RestClient("https://https/tag");
var request = new RestRequest(Method.POST);
request.AddHeader("apikey", "{{apikey}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"call_uuid\": \"call-abc123\",\n  \"transcripts\": [\n    \"Agent: Hello, how can I help you today?\\nCustomer: I have a billing issue.\"\n  ],\n  \"callback_url\": \"https://hooks.example.com/cb\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift tag_Tag conversation transcripts_example
import Foundation

let headers = [
  "apikey": "{{apikey}}",
  "Content-Type": "application/json"
]
let parameters = [
  "call_uuid": "call-abc123",
  "transcripts": ["Agent: Hello, how can I help you today?
Customer: I have a billing issue."],
  "callback_url": "https://hooks.example.com/cb"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://https/tag")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```