{
	"info": {
		"_postman_id": "2a6ff17c-ebc3-4bb0-90c7-eb3a7c72bae0",
		"name": "Prezent Platform API Collection",
		"description": "Complete Postman collection for Prezent Platform APIs including AutoGen API for presentation generation and SCIM User Management API for user provisioning.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "46949613"
	},
	"item": [
		{
			"name": "AutoGen API",
			"item": [
				{
					"name": "Create Presentation",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"prompt\": \"Create a 2 slide presentation on diversity in a tech company. Add an image of people. The first slide should have a concise title. The second slide should cover points on why diversity is an important initiative.\",\n    \"template_id\": \"prezent_corporate_2022\"\n}"
						},
						"url": {
							"raw": "{{baseUrl}}/api/v1/autogenerator",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"autogenerator"
							]
						},
						"description": "Create a new presentation generation job"
					},
					"response": []
				},
				{
					"name": "Check Generation Status",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/api/v1/autogenerator/status?callback_id={{callback_id}}",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"autogenerator",
								"status"
							],
							"query": [
								{
									"key": "callback_id",
									"value": "{{callback_id}}",
									"description": "Callback ID from create presentation response"
								}
							]
						},
						"description": "Track the progress of a previously submitted presentation generation request"
					},
					"response": []
				},
				{
					"name": "Download Generated Presentation",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"callback_id\": \"{{callback_id}}\"\n}"
						},
						"url": {
							"raw": "{{baseUrl}}/api/v1/autogenerator/download",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"autogenerator",
								"download"
							]
						},
						"description": "Download a merged presentation file"
					},
					"response": []
				},
				{
					"name": "Get Themes",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/api/v1/themes",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"themes"
							]
						},
						"description": "Retrieve themes associated with the company"
					},
					"response": []
				},
				{
					"name": "Get Audiences",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/api/v1/audiences",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"audiences"
							]
						},
						"description": "Retrieve target audience metadata"
					},
					"response": []
				},
				{
					"name": "Upload File",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"fileContent\": \"string\",     // Required: Base64 encoded file content string\n    \"fileName\": \"string\"         // Required: Name of the file\n}"
						},
						"url": {
							"raw": "{{baseUrl}}/api/v1/upload",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"upload"
							]
						},
						"description": "Upload a file for processing"
					},
					"response": []
				}
			],
			"description": "API endpoints for automated presentation generation"
		},
		{
			"name": "SCIM User Management API",
			"item": [
				{
					"name": "Get All Users",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/api/v1/scim/Users",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"scim",
								"Users"
							],
							"query": [
								{
									"key": "filter",
									"value": "{{filter}}",
									"description": "Filter users by email (format: email eq user@example.com)",
									"disabled": true
								},
								{
									"key": "startIndex",
									"value": "{{startIndex}}",
									"description": "Starting index for pagination (must be non-negative)",
									"disabled": true
								},
								{
									"key": "count",
									"value": "{{count}}",
									"description": "Number of results to return (must be non-negative)",
									"disabled": true
								}
							]
						},
						"description": "Retrieve a list of users associated in your organization"
					},
					"response": []
				},
				{
					"name": "Get User by ID",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/api/v1/scim/Users/24testing@prezent.ai",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"scim",
								"Users",
								"24testing@prezent.ai"
							]
						},
						"description": "Retrieve a specific user by their Email ID"
					},
					"response": []
				},
				{
					"name": "Create New User",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"userName\": \"pentest-user-1@prezent.ai\",\n    \"name\": {\n        \"givenName\": \"John\",\n        \"familyName\": \"Doe\"\n    },\n    \"active\": true,\n    \"urn:scim:schemas:prezent:1.0:User\": {\n        \"team\": \"Testing-Prezent\"\n    }\n}"
						},
						"url": {
							"raw": "{{baseUrl}}/api/v1/scim/Users",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"scim",
								"Users"
							]
						},
						"description": "Create a new user in Prezent"
					},
					"response": []
				},
				{
					"name": "Update User (PUT)",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"name\": {\n        \"givenName\": \"John\",\n        \"familyName\": \"Doe\"\n    },\n    \"active\": true\n}"
						},
						"url": {
							"raw": "{{baseUrl}}/api/v1/scim/Users/{{user_email}}",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"scim",
								"Users",
								"{{user_email}}"
							]
						},
						"description": "Update an existing user's information using PUT (full replacement)"
					},
					"response": []
				},
				{
					"name": "Update User (PATCH)",
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"name\": {\n        \"givenName\": \"John\",\n        \"familyName\": \"Doe\"\n    },\n    \"active\": true\n}"
						},
						"url": {
							"raw": "{{baseUrl}}/api/v1/scim/Users/{{user_email}}",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"scim",
								"Users",
								"{{user_email}}"
							]
						},
						"description": "Update an existing user's information using PATCH (partial modification)"
					},
					"response": []
				},
				{
					"name": "Get Resource Types",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/api/v1/scim/ResourceTypes",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"scim",
								"ResourceTypes"
							]
						},
						"description": "Retrieve available SCIM resource types"
					},
					"response": []
				},
				{
					"name": "Get Resource Type by ID",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/api/v1/scim/ResourceTypes/{{resource_type_id}}",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"scim",
								"ResourceTypes",
								"{{resource_type_id}}"
							]
						},
						"description": "Retrieve a specific resource type by ID"
					},
					"response": []
				},
				{
					"name": "Get Schemas",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/api/v1/scim/Schemas",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"scim",
								"Schemas"
							]
						},
						"description": "Retrieve available SCIM schemas"
					},
					"response": []
				},
				{
					"name": "Get Schema by ID",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{baseUrl}}/api/v1/scim/Schemas/{{schema_id}}",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"api",
								"v1",
								"scim",
								"Schemas",
								"{{schema_id}}"
							]
						},
						"description": "Retrieve a specific schema by ID"
					},
					"response": []
				}
			],
			"description": "API endpoints for SCIM-based user management and provisioning"
		}
	],
	"auth": {
		"type": "bearer",
		"bearer": [
			{
				"key": "token",
				"value": "{{apiKey}}",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "baseUrl",
			"value": "https://uatstage-api-framework.myprezent.com",
			"type": "string"
		},
		{
			"key": "apiKey",
			"value": "KHkd7Gby2lafxlmiNydNb3dt60t5Tria8VrPBuLB",
			"type": "string"
		}
	]
}