# Sample Postman collection

> Download a sample Postman collection for testing text chat APIs.

You can copy this Text Evidence Management JSON file and import it to Postman as a new collection. Fill in the placeholders with the parameters outlined in [Evidence report API](./evidence-report-api).

```plaintext
{
	"info": {
		"_postman_id": "fe07cef1-8492-4dd4-88ab-fe03cac59f60",
		"name": "Text Evidence Management",
		"description": "This collection contains sample requests for the Vivox Text Evidence Management API. Fill the placeholders with custom data to use the API.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "25270591"
	},
	"item": [
		{
			"name": "Get Auth Token",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{Environment_URL}}/api2/viv_signin.php?userid=<add userid>&pwd=<add_password>",
					"host": [
						"{{Environment_URL}}"
					],
					"path": [
						"api2",
						"viv_signin.php"
					],
					"query": [
						{
							"key": "userid",
							"value": "<add userid>"
						},
						{
							"key": "pwd",
							"value": "<add_password>"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Evidence Report",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{Environment_URL}}/evidence/report?auth_token=<add auth_token>&user_uri=<add user_uri>&sender_uri=<add sender_uri>&target_uri=<add target_uri>",
					"host": [
						"{{Environment_URL}}"
					],
					"path": [
						"evidence",
						"report"
					],
					"query": [
						{
							"key": "auth_token",
							"value": "<add auth_token>"
						},
						{
							"key": "user_uri",
							"value": "<add user_uri>"
						},
						{
							"key": "sender_uri",
							"value": "<add sender_uri>"
						},
						{
							"key": "target_uri",
							"value": "<add target_uri>"
						},
						{
							"key": "num_messages",
							"value": "<optional>",
							"disabled": true
						},
						{
							"key": "start_ts",
							"value": "<optional unix timestamp>",
							"disabled": true
						},
						{
							"key": "end_ts",
							"value": "<optional unix timestamp>",
							"disabled": true
						},
						{
							"key": "as_file",
							"value": "<optional boolen>",
							"disabled": true
						},
						{
							"key": "file_type",
							"value": "<optional file type>",
							"disabled": true
						}
					]
				}
			},
			"response": []
		}
	]
}
```
