{
	"info": {
		"_postman_id": "2e62ca15-ddf1-49fe-96b0-3acd7ca3f320",
		"name": "UniOne API Methods",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "116226",
		"version": "1.92",
		"description": "UniOne Web API methods, spec version 1.92.\n\n1. Set the `api_key` collection variable to your API key: https://cp.unione.io/en/settings/security/api\n2. To send the first email without DNS setup, run `domain-get-sandbox-domain`, add your address with `confirmed-email-create`, confirm it by the link in the email, then send with `email-send` from the sandbox domain.\n\nMethod reference: https://docs.unione.io/en/web-api-ref"
	},
	"item": [
		{
			"name": "Email Methods",
			"item": [
				{
					"name": "email-send",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"message\": {\r\n    \"recipients\": [\r\n      {\r\n        \"email\": \"user@example.com\",\r\n        \"substitutions\": {\r\n          \"CustomerId\": 12452,\r\n          \"to_name\": \"John Smith\"\r\n        },\r\n        \"metadata\": {\r\n          \"campaign_id\": \"c77f4f4e-3561-49f7-9f07-c35be01b4f43\",\r\n          \"customer_hash\": \"b253ac7\"\r\n        }\r\n      }\r\n    ],\r\n    \"tags\": [\r\n      \"tag1\"\r\n    ],\r\n    \"skip_unsubscribe\": 0,\r\n    \"global_language\": \"en\",\r\n    \"template_engine\": \"simple\",\r\n    \"global_substitutions\": {\r\n      \"property1\": \"string1\",\r\n      \"property2\": \"string2\"\r\n    },\r\n    \"global_metadata\": {\r\n      \"property3\": \"string3\",\r\n      \"property4\": \"string4\"\r\n    },\r\n    \"body\": {\r\n      \"html\": \"<b>Hello, {{to_name}}</b>\",\r\n      \"plaintext\": \"Hello, {{to_name}}\",\r\n      \"amp\": \"<!doctype html><html amp4email><head> <meta charset=\\\"utf-8\\\"><script async src=\\\"https://cdn.ampproject.org/v0.js\\\"></script> <style amp4email-boilerplate>body{visibility:hidden}</style></head><body> Hello, AMP4EMAIL world.</body></html>\"\r\n    },\r\n    \"subject\": \"string\",\r\n    \"from_email\": \"user@example.com\",\r\n    \"from_name\": \"John Smith\",\r\n    \"reply_to\": \"user@example.com\",\r\n    \"reply_to_name\": \"John Smith\",\r\n    \"track_links\": 0,\r\n    \"track_read\": 0,\r\n    \"bypass_global\": 0,\r\n    \"bypass_unavailable\": 0,\r\n    \"bypass_unsubscribed\": 0,\r\n    \"bypass_complained\": 0,\r\n    \"headers\": {\r\n      \"X-MyHeader\": \"some data\"\r\n    },\r\n    \"attachments\": [\r\n      {\r\n        \"type\": \"text/plain\",\r\n        \"name\": \"readme.txt\",\r\n        \"content\": \"SGVsbG8sIHdvcmxkIQ==\"\r\n      }\r\n    ],\r\n    \"inline_attachments\": [\r\n      {\r\n        \"type\": \"image/gif\",\r\n        \"name\": \"IMAGECID1\",\r\n        \"content\": \"R0lGODdhAwADAIABAP+rAP///ywAAAAAAwADAAACBIQRBwUAOw==\"\r\n      }\r\n    ]\r\n  }\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/email/send.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"email",
								"send.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Sends an email or a bunch of emails"
					},
					"response": []
				},
				{
					"name": "email-subscribe",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"from_email\": \"user@example.com\",\r\n  \"from_name\": \"John Smith\",\r\n  \"to_email\": \"user@example.com\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/email/subscribe.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"email",
								"subscribe.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Sends an email with (re)subscribe link."
					},
					"response": []
				}
			]
		},
		{
			"name": "Email-validation Methods",
			"item": [
				{
					"name": "email-validation-single",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"email\": \"user@example.com\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/email-validation/single.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"email-validation",
								"single.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "A maximum of two concurrent requests are allowed; if you send more requests, an error will be returned. Since the verification process should be completed promptly, we've set a time limit on email check. If we encounter a slow email server that does not respond in 5 seconds, you may get an “unknown” status."
					},
					"response": []
				}
			]
		},
		{
			"name": "Template Methods",
			"item": [
				{
					"name": "template-set",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"template\": {\r\n    \"name\": \"string\",\r\n    \"template_engine\": \"simple\",\r\n    \"global_substitutions\": {\r\n      \"property1\": \"string1\",\r\n      \"property2\": \"string2\"\r\n    },\r\n    \"global_metadata\": {\r\n      \"property3\": \"string3\",\r\n      \"property4\": \"string4\"\r\n    },\r\n    \"body\": {\r\n      \"html\": \"<b>Hello, {{to_name}}</b>\",\r\n      \"plaintext\": \"Hello, {{to_name}}\",\r\n      \"amp\": \"<!doctype html><html amp4email><head> <meta charset=\\\"utf-8\\\"><script async src=\\\"https://cdn.ampproject.org/v0.js\\\"></script> <style amp4email-boilerplate>body{visibility:hidden}</style></head><body> Hello, AMP4EMAIL world.</body></html>\"\r\n    },\r\n    \"subject\": \"string\",\r\n    \"from_email\": \"user@example.com\",\r\n    \"from_name\": \"John Smith\",\r\n    \"reply_to\": \"user@example.com\",\r\n    \"headers\": {\r\n      \"X-MyHeader\": \"some data\"\r\n    },\r\n    \"attachments\": [\r\n      {\r\n        \"type\": \"text/plain\",\r\n        \"name\": \"readme.txt\",\r\n        \"content\": \"SGVsbG8sIHdvcmxkIQ==\"\r\n      }\r\n    ],\r\n    \"inline_attachments\": [\r\n      {\r\n        \"type\": \"image/gif\",\r\n        \"name\": \"IMAGECID1\",\r\n        \"content\": \"R0lGODdhAwADAIABAP+rAP///ywAAAAAAwADAAACBIQRBwUAOw==\"\r\n      }\r\n    ]\r\n  }\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/template/set.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"template",
								"set.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Creates or updates an email template."
					},
					"response": []
				},
				{
					"name": "template-get",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"id\": \"bf822d10-1ef0-11ed-b000-d229d5fd57ae\"\r\n  \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/template/get.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"template",
								"get.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Gets template properties by it's id."
					},
					"response": []
				},
				{
					"name": "template-list",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"limit\": 50,\r\n  \"offset\": 0\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/template/list.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"template",
								"list.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Returns the list of all or some templates of the account."
					},
					"response": []
				},
				{
					"name": "template-delete",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"id\": \"bf822d10-1ef0-11ed-b000-d229d5fd57ae\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/template/delete.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"template",
								"delete.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Deletes a template by id."
					},
					"response": []
				}
			]
		},
		{
			"name": "Webhook Methods",
			"item": [
				{
					"name": "webhook-set",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"url\": \"https://yourhost.example.com/unione-webhook\",\r\n  \"status\": \"active\",\r\n  \"event_format\": \"json_post\",\r\n  \"delivery_info\": 0,\r\n  \"single_event\": 0,\r\n  \"max_parallel\": 10,\r\n  \"events\": {\r\n    \"spam_block\": [\r\n      \"*\"\r\n    ],\r\n    \"email_status\": [\r\n      \"delivered\",\r\n      \"opened\",\r\n      \"clicked\",\r\n      \"unsubscribed\",\r\n      \"subscribed\",\r\n      \"soft_bounced\",\r\n      \"hard_bounced\",\r\n      \"spam\"\r\n    ]\r\n  }\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/webhook/set.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"webhook",
								"set.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Sets or edits a webhook, i.e. an event notification handler."
					},
					"response": []
				},
				{
					"name": "webhook-get",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"url\": \"https://yourhost.example.com/unione-webhook\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/webhook/get.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"webhook",
								"get.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Gets properties of a webhook."
					},
					"response": []
				},
				{
					"name": "webhook-list",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"limit\": 0,\r\n  \"offset\": 0\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/webhook/list.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"webhook",
								"list.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "List all or some [webhooks](#webhook) (event notification handlers) of a user or a project."
					},
					"response": []
				},
				{
					"name": "webhook-delete",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"url\": \"https://yourhost.example.com/unione-webhook\"\r\n  }",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/webhook/delete.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"webhook",
								"delete.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Deletes an event notification handler"
					},
					"response": []
				}
			]
		},
		{
			"name": "Suppression Methods",
			"item": [
				{
					"name": "suppression-set",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"email\": \"user@example.com\",\r\n  \"cause\": \"unsubscribed\",\r\n  \"created\": \"2021-12-19 10:15:49\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/suppression/set.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"suppression",
								"set.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Adds an email address to the suppression list. You can always remove this address from the suppression list later using the [suppression/delete](#suppression-delete) method."
					},
					"response": []
				},
				{
					"name": "suppression-get",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"email\": \"user@example.com\",\r\n  \"all_projects\": false\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/suppression/get.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"suppression",
								"get.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Gets a reason and date of email suppression."
					},
					"response": []
				},
				{
					"name": "suppression-list",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"cause\": \"unsubscribed\",\r\n  \"source\": \"user\",\r\n  \"start_time\": \"2020-10-14 17:00:00\",\r\n  \"cursor\": \"Ajfb6Hvdkn3hdhhvG57xbdufhG5\",\r\n  \"limit\": 50\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/suppression/list.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"suppression",
								"list.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Returns a suppression list since provided date."
					},
					"response": []
				},
				{
					"name": "suppression-delete",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"email\": \"user@example.com\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/suppression/delete.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"suppression",
								"delete.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Deletes an email from suppression list (only records with is_deletable=true). If there are no entries of this email in the suppression list, API error 3003 is returned. If such entries exist but no one can be deleted, API error 3004 is returned. If daily limit of deletes exceeded, API error 906 is returned."
					},
					"response": []
				}
			]
		},
		{
			"name": "Domain Methods",
			"item": [
				{
					"name": "domain-get-sandbox-domain",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/domain/get-sandbox-domain.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"domain",
								"get-sandbox-domain.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Creates a sandbox domain for the account or returns the existing one."
					},
					"response": []
				},
				{
					"name": "domain-get-dns-records",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"domain\": \"example.com\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/domain/get-dns-records.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"domain",
								"get-dns-records.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Returns info on domain DNS setup for using with UniOne."
					},
					"response": []
				},
				{
					"name": "domain-validate-verification-record",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"domain\": \"example.com\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/domain/validate-verification-record.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"domain",
								"validate-verification-record.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Triggers verification record validation for domain."
					},
					"response": []
				},
				{
					"name": "domain-validate-dkim",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"domain\": \"example.com\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/domain/validate-dkim.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"domain",
								"validate-dkim.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Validates DKIM record for domain."
					},
					"response": []
				},
				{
					"name": "domain-list",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"domain\": \"example.com\",\r\n  \"limit\": 50,\r\n  \"offset\": 0\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/domain/list.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"domain",
								"list.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Returns a list of all registered domains for user or project, together with statuses of last validations."
					},
					"response": []
				},
				{
					"name": "domain-delete",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"domain\": \"example.com\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/domain/delete.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"domain",
								"delete.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Deletes a domain. Attention: you should use project's API key to delete a project's domain."
					},
					"response": []
				}
			]
		},
		{
			"name": "Confirmed-email Methods",
			"item": [
				{
					"name": "confirmed-email-create",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"email\": \"user@example.com\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/confirmed-email/create.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"confirmed-email",
								"create.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Adds an email address and sends a confirmation link."
					},
					"response": []
				},
				{
					"name": "confirmed-email-list",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/confirmed-email/list.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"confirmed-email",
								"list.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Lists confirmed and unconfirmed email addresses for the account."
					},
					"response": []
				},
				{
					"name": "confirmed-email-delete",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"email\": \"user@example.com\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/confirmed-email/delete.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"confirmed-email",
								"delete.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Deletes an email address from the account's confirmed email list."
					},
					"response": []
				}
			]
		},
		{
			"name": "Event-dump Methods",
			"item": [
				{
					"name": "event-dump-create",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"start_time\": \"2022-07-20 00:00:00\",\r\n  \"end_time\": \"2022-07-21 00:00:00\",\r\n  \"limit\": 50,\r\n  \"all_projects\": false,\r\n  \"filter\": {\r\n    \"job_id\": \"1ZymBc-00041N-9X\",\r\n    \"status\": \"hard_bounced\",\r\n    \"delivery_status\": \"err_user_unknown\",\r\n    \"email\": \"david@example.org\",\r\n    \"email_from\": \"sender@example.com\",\r\n    \"domain\": \"example.org\",\r\n    \"campaign_id\": \"c77f4f4e-3561-49f7-9f07-c35be01b4f43\"\r\n  },\r\n  \"delimiter\": \";\",\r\n  \"format\": \"csv\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/event-dump/create.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"event-dump",
								"create.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "This asynchronous method initiates the preparation of data dump in CSV format. The number of dump files created or stored is limited to 10; to order more files, you have to delete one of the previous ones or wait until they will be deleted automatically. A newly created dump file is kept for 8 hours. If the request period is more than a day or there are too many events then several files will be generated and each file will contain no more than 100,000 events. File contains columns with the following information - 'event_time', 'job_id', 'from_email', 'email', 'status', 'delivery_status', 'metadata', 'destination_response', 'user_agent', 'url', 'ip', 'tags' and 'project_id' (for accounts with projects enabled). You can change the fields and include 'subject' field using 'dump_fileds' parameter."
					},
					"response": []
				},
				{
					"name": "event-dump-get",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"dump_id\": \"Gqfasjh34tlasd\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/event-dump/get.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"event-dump",
								"get.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Returns dump properties for a given identifier"
					},
					"response": []
				},
				{
					"name": "event-dump-list",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/event-dump/list.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"event-dump",
								"list.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "This method does not require any parameters; returns the full list of existing dumps."
					},
					"response": []
				},
				{
					"name": "event-dump-delete",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"dump_id\": \"Gqfasjh34tlasd\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/event-dump/delete.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"event-dump",
								"delete.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Removes dump from queue or storage."
					},
					"response": []
				}
			]
		},
		{
			"name": "Tag Methods",
			"item": [
				{
					"name": "tag-list",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/tag/list.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"tag",
								"list.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "This method returns the full list of user-defined tags. Does not receive any parameters."
					},
					"response": []
				},
				{
					"name": "tag-delete",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"tag_id\": 54\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/tag/delete.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"tag",
								"delete.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Removes tag."
					},
					"response": []
				}
			]
		},
		{
			"name": "Project Methods",
			"item": [
				{
					"name": "project-create",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"project\": {\n    \"name\": \"Project 1A\",\n    \"country\": \"ES\",\n    \"send_enabled\": true,\n    \"custom_unsubscribe_url_enabled\": true,\n    \"backend_domain_id\": 1234\n  }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/project/create.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"project",
								"create.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Creates a new project."
					},
					"response": []
				},
				{
					"name": "project-update",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"project_id\": \"123456\",\n  \"project\": {\n    \"name\": \"Project 1A\",\n    \"country\": \"ES\",\n    \"send_enabled\": true,\n    \"custom_unsubscribe_url_enabled\": true,\n    \"backend_domain_id\": 1234\n  }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/project/update.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"project",
								"update.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Updates a project."
					},
					"response": []
				},
				{
					"name": "project-list",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"project_id\": \"123456\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/project/list.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"project",
								"list.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Lists projects."
					},
					"response": []
				},
				{
					"name": "project-delete",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"project_id\": \"123456\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/project/delete.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"project",
								"delete.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Deletes a project."
					},
					"response": []
				}
			]
		},
		{
			"name": "System Methods",
			"item": [
				{
					"name": "system-ping",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/system/ping.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"system",
								"ping.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Checks API key validity and returns user ID."
					},
					"response": []
				},
				{
					"name": "system-info",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base_url}}/en/transactional/api/v1/system/info.json?platform=postman",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"en",
								"transactional",
								"api",
								"v1",
								"system",
								"info.json"
							],
							"query": [
								{
									"key": "platform",
									"value": "postman"
								}
							]
						},
						"description": "Gets user or project info by API key."
					},
					"response": []
				}
			]
		}
	],
	"auth": {
		"type": "apikey",
		"apikey": [
			{
				"key": "value",
				"value": "{{api_key}}",
				"type": "string"
			},
			{
				"key": "in",
				"value": "header",
				"type": "string"
			},
			{
				"key": "key",
				"value": "X-API-KEY",
				"type": "string"
			}
		]
	},
	"variable": [
		{
			"key": "base_url",
			"value": "https://api.unione.io",
			"type": "string"
		},
		{
			"key": "api_key",
			"value": "",
			"type": "string",
			"description": "UniOne API key, sent in the X-API-KEY header"
		}
	]
}