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

# https://business.me-mate.net/api/betav3/tagmanage/tag/create

POST https://business.me-mate.net/api/betav3/tagmanage/tag/create
Content-Type: application/json

### Purpose

Create a new **Tag** in the Tag Management system.

### Endpoint

`POST https://business.me-mate.net/api/betav3/tagmanage/tag/create`

### Authentication

This endpoint expects an API key in the request body:

* `api_key`: `{{api_key}}`

> Ensure the `api_key` variable is set in your active environment/collection/global variables.

### Headers

* `X-Requested-With: XMLHttpRequest`

> Keep this header as-is if the backend expects an XMLHttpRequest-style call.

### Request Body (JSON)

| Field            | Required | Type   | Constraints / Notes            |
| ---------------- | -------- | ------ | ------------------------------ |
| `api_key`        | Yes      | string | Use `{{api_key}}`.             |
| `tag_name`       | No       | string | Tag name to create.            |
| `access_type`    | No       | string | Allowed values: `private`      |
| `TagDescription` | No       | string | Max length **255** characters. |

#### Example request body

```json
{
  "api_key": "{{api_key}}",
  "tag_name": "New Customer sec",
  "access_type": "private",
  "TagDescription": "Short description about the tag"
}

```

### Example Success Response (200)

```json
{
  "message": "Tag created successfully",
  "data": {
    "tag_name": "New Customer sec",
    "tag_id": 275
  }
}

```

### Notes

* **`access_type`** **values**

  * `private`: intended for restricted/private use.

  * `public`: intended for broadly visible/available tags.

  * `admin`: intended for administrative-level tags.
* If `tag_name`, `access_type`, or `TagDescription` are omitted, backend behavior depends on server defaults/validation rules.

Reference: https://apidocs.me-mate.net/business-me-mate-net-ap-is-document-v-1-0/manage-contact/create-edit-tag/create/https-business-me-mate-net-api-betav-3-tagmanage-tag-create

## Request

### Headers

- `X-Requested-With` (string, optional)

### Body (application/json)

- `string`

## Response

### 200

OK

- `data` (object, required)
  - `tag_id` (integer, required)
  - `tag_name` (string, required)
- `message` (string, required)

## Examples

**Request**

```json
"{\r\n  \"api_key\": \"{{api_key}}\", // required\r\n  \"tag_name\": \"New Customer sec\",          // optional, integer\r\n  \"access_type\": \"private\",    // optional: \"private\" | \"public\" | \"admin\"\r\n  \"TagDescription\": \"Short description about the tag\" // optional, max 255 chars\r\n}"
```

**Response**

```json
{
  "data": {
    "tag_id": 275,
    "tag_name": "New Customer sec"
  },
  "message": "Tag created successfully"
}
```

**SDK Code**

```python https://business.me-mate.net/api/betav3/tagmanage/tag/create
import requests

url = "https://business.me-mate.net/api/betav3/tagmanage/tag/create"

payload = "{
  \"api_key\": \"{{api_key}}\", // required
  \"tag_name\": \"New Customer sec\",          // optional, integer
  \"access_type\": \"private\",    // optional: \"private\" | \"public\" | \"admin\"
  \"TagDescription\": \"Short description about the tag\" // optional, max 255 chars
}"
headers = {
    "X-Requested-With": "XMLHttpRequest",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript https://business.me-mate.net/api/betav3/tagmanage/tag/create
const url = 'https://business.me-mate.net/api/betav3/tagmanage/tag/create';
const options = {
  method: 'POST',
  headers: {'X-Requested-With': 'XMLHttpRequest', 'Content-Type': 'application/json'},
  body: '"{\r\n  \"api_key\": \"{{api_key}}\", // required\r\n  \"tag_name\": \"New Customer sec\",          // optional, integer\r\n  \"access_type\": \"private\",    // optional: \"private\" | \"public\" | \"admin\"\r\n  \"TagDescription\": \"Short description about the tag\" // optional, max 255 chars\r\n}"'
};

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

```go https://business.me-mate.net/api/betav3/tagmanage/tag/create
package main

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

func main() {

	url := "https://business.me-mate.net/api/betav3/tagmanage/tag/create"

	payload := strings.NewReader("\"{\\r\\n  \\\"api_key\\\": \\\"{{api_key}}\\\", // required\\r\\n  \\\"tag_name\\\": \\\"New Customer sec\\\",          // optional, integer\\r\\n  \\\"access_type\\\": \\\"private\\\",    // optional: \\\"private\\\" | \\\"public\\\" | \\\"admin\\\"\\r\\n  \\\"TagDescription\\\": \\\"Short description about the tag\\\" // optional, max 255 chars\\r\\n}\"")

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

	req.Header.Add("X-Requested-With", "XMLHttpRequest")
	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 https://business.me-mate.net/api/betav3/tagmanage/tag/create
require 'uri'
require 'net/http'

url = URI("https://business.me-mate.net/api/betav3/tagmanage/tag/create")

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

request = Net::HTTP::Post.new(url)
request["X-Requested-With"] = 'XMLHttpRequest'
request["Content-Type"] = 'application/json'
request.body = "\"{\\r\\n  \\\"api_key\\\": \\\"{{api_key}}\\\", // required\\r\\n  \\\"tag_name\\\": \\\"New Customer sec\\\",          // optional, integer\\r\\n  \\\"access_type\\\": \\\"private\\\",    // optional: \\\"private\\\" | \\\"public\\\" | \\\"admin\\\"\\r\\n  \\\"TagDescription\\\": \\\"Short description about the tag\\\" // optional, max 255 chars\\r\\n}\""

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

```java https://business.me-mate.net/api/betav3/tagmanage/tag/create
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://business.me-mate.net/api/betav3/tagmanage/tag/create")
  .header("X-Requested-With", "XMLHttpRequest")
  .header("Content-Type", "application/json")
  .body("\"{\\r\\n  \\\"api_key\\\": \\\"{{api_key}}\\\", // required\\r\\n  \\\"tag_name\\\": \\\"New Customer sec\\\",          // optional, integer\\r\\n  \\\"access_type\\\": \\\"private\\\",    // optional: \\\"private\\\" | \\\"public\\\" | \\\"admin\\\"\\r\\n  \\\"TagDescription\\\": \\\"Short description about the tag\\\" // optional, max 255 chars\\r\\n}\"")
  .asString();
```

```php https://business.me-mate.net/api/betav3/tagmanage/tag/create
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://business.me-mate.net/api/betav3/tagmanage/tag/create', [
  'body' => '"{\\r\\n  \\"api_key\\": \\"{{api_key}}\\", // required\\r\\n  \\"tag_name\\": \\"New Customer sec\\",          // optional, integer\\r\\n  \\"access_type\\": \\"private\\",    // optional: \\"private\\" | \\"public\\" | \\"admin\\"\\r\\n  \\"TagDescription\\": \\"Short description about the tag\\" // optional, max 255 chars\\r\\n}"',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-Requested-With' => 'XMLHttpRequest',
  ],
]);

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

```csharp https://business.me-mate.net/api/betav3/tagmanage/tag/create
using RestSharp;

var client = new RestClient("https://business.me-mate.net/api/betav3/tagmanage/tag/create");
var request = new RestRequest(Method.POST);
request.AddHeader("X-Requested-With", "XMLHttpRequest");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "\"{\\r\\n  \\\"api_key\\\": \\\"{{api_key}}\\\", // required\\r\\n  \\\"tag_name\\\": \\\"New Customer sec\\\",          // optional, integer\\r\\n  \\\"access_type\\\": \\\"private\\\",    // optional: \\\"private\\\" | \\\"public\\\" | \\\"admin\\\"\\r\\n  \\\"TagDescription\\\": \\\"Short description about the tag\\\" // optional, max 255 chars\\r\\n}\"", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift https://business.me-mate.net/api/betav3/tagmanage/tag/create
import Foundation

let headers = [
  "X-Requested-With": "XMLHttpRequest",
  "Content-Type": "application/json"
]
let parameters = "{
  \"api_key\": \"{{api_key}}\", // required
  \"tag_name\": \"New Customer sec\",          // optional, integer
  \"access_type\": \"private\",    // optional: \"private\" | \"public\" | \"admin\"
  \"TagDescription\": \"Short description about the tag\" // optional, max 255 chars
}" as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://business.me-mate.net/api/betav3/tagmanage/tag/create")! 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()
```