12. API get tags

{
	"info": {
		"_postman_id": "9b836260-c5e1-4786-909b-948da398e2d9",
		"name": "Tags & Agent",
		"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
		"_exporter_id": "20561657"
	},
	"item": [
		{
			"name": "Get list tags",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "apikey",
						"value": "{{apikey}}",
						"type": "text"
					}
				],
				"url": "{{apiUrl}}/tags"
			},
			"response": []
		},
		{
			"name": "Create new tag",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "apikey",
						"value": "{{apikey}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"bgcolor\": \"#8f2852\",\n    \"color\": \"#675959\",\n    \"name\": \"apiring\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": "{{apiUrl}}/tags"
			},
			"response": []
		},
		{
			"name": "Update tag",
			"request": {
				"method": "PUT",
				"header": [
					{
						"key": "apikey",
						"value": "{{apikey}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"id\": \"6776357759c65d4fbfef6c88\",\n    \"bgcolor\": \"#8f2852\",\n    \"color\": \"#675959\",\n    \"name\": \"apiring1\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": "{{apiUrl}}/tags"
			},
			"response": []
		},
		{
			"name": "Delete tag",
			"request": {
				"method": "DELETE",
				"header": [
					{
						"key": "apikey",
						"value": "123456789",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"id\": \"6776357759c65d4fbfef6c88\",\n    \"bgcolor\": \"#8f2852\",\n    \"color\": \"#675959\",\n    \"name\": \"apiring1\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{apiUrl}}/tags?id={{apikey}}",
					"host": [
						"{{apiUrl}}"
					],
					"path": [
						"tags"
					],
					"query": [
						{
							"key": "id",
							"value": "{{apikey}}"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Assign tag session",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "apikey",
						"value": "{{apikey}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"id\": \"66a1fb9dc3f3425a31eb1424\",\n    \"pageId\": \"105552399289423\",\n    \"conversationId\": \"t_105552399289423_84967492536\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": "{{apiUrl}}/tags/assign-session"
			},
			"response": []
		},
		{
			"name": "Unassign tag session",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "apikey",
						"value": "{{apikey}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"id\": \"66a1fb9dc3f3425a31eb1424\",\n    \"pageId\": \"105552399289423\",\n    \"conversationId\": \"t_105552399289423_84967492536\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": "{{apiUrl}}/tags/unassign-session"
			},
			"response": []
		},
		{
			"name": "Get agent info",
			"protocolProfileBehavior": {
				"disableBodyPruning": true
			},
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "apikey",
						"value": "{{apikey}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"id\": \"66a1fb9dc3f3425a31eb1424\",\n    \"pageId\": \"105552399289423\",\n    \"conversationId\": \"t_105552399289423_84967492536\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{apiUrl}}/sessions?pageId=259166910615134&conversationId=t_259166910615134_84967492536",
					"host": [
						"{{apiUrl}}"
					],
					"path": [
						"sessions"
					],
					"query": [
						{
							"key": "pageId",
							"value": "259166910615134"
						},
						{
							"key": "conversationId",
							"value": "t_259166910615134_84967492536"
						},
						{
							"key": "id",
							"value": "67659f757a8196da3032c17c",
							"disabled": true
						}
					]
				}
			},
			"response": []
		}
	]
}

Last updated