๐Ÿ“˜ Overview This document provides a step-by-step guide for uploading a file, processing it, and retrieving the results using the API with Postman. โœ… Prerequisites To use these collections, you will need: Postman installed client_id and client_secret credentials Download following files: Postman collection Postman environment ๐Ÿงฉ Setup 1๏ธโƒฃ Import the Collection Open Postman Select "Collections" Click "Import" Import the file: CIN-PROD_Postman.json 2๏ธโƒฃ Import the Environment Select "Environments" Click "Import" Import the file: PROD.Postman_environment.json 3๏ธโƒฃ Select the Environment In the top-right corner, select the environment: CIN ๐Ÿ” Authentication , health check & available actions 4๏ธโƒฃ Check API Health Send the HealthCheck request (GET) โœ… Expected response: 200 OK with: "Healthy" 5๏ธโƒฃ Set Your Credentials Open the Authorize request (POST) Go to the Body tab Set the following keys and values: client_id: your client ID client_secret: your client secret 6๏ธโƒฃ Authenticate & check available actions Run the Authorize request again (POST) โœ… Response: 200 OK ๐Ÿง  The token is automatically stored as environment variable โ€” no need to copy it manually Trigger "Retrieve available actions" request to get available actions (it will also check if authorization worked properly) โœ… Response: 200 OK eg: [ "image-description", "image-metadata-generation", "text-classification", "text-summarization", "image-classification", "image-embeddings", "text-embeddings", "named-entity-recognition-image", "named-entity-recognition-text" ] ๐Ÿ“ค File Upload 7๏ธโƒฃ Generate a Presigned URL Currently we support only .jpg, .png files for images and .pdf for documents Use the PresignedUrl request (GET) In the Params, specify the file type using the contentType key Image Example: contentType = image%2Fjpg Document Example: contentType = application%2Fpdf ๐Ÿ”— You can find a list of supported file types at: Technical information โœ… On success (200 OK), the response will contain: presignedUrl โ€“ ๐Ÿ“‹ Copy this value; you'll need it in the next step objectKey โ€“ ๐Ÿ“‹ Copy this value; you'll need it for "Execute the Action" step 9 8๏ธโƒฃ Upload the File Use the Upload file request (PUT) The request URL will automatically use the presignedUrl from step 7 In the Body tab: Select binary Select the file you want to upload Send request โœ… Response should be: 200 OK โš™๏ธ Execute the Action 9๏ธโƒฃ Trigger Content Processing Use the Content processing request (POST) In the Body, insert the copied objectKey from step 7. Example: 2.1 Valid object key eg. from step 7 and valid action from step 6 { "objectKeys": ["your-object-key-from-step-7"], "actions": ["image-description"] } ๐Ÿ’ก Each action may behave differently depending on the use case. Please refer to the documentation for more information. โœ… On success: Response: 200 OK Response body will include a processingId ๐Ÿง  The processingId is automatically stored as an environment variable ๐Ÿ“ฅ Retrieve Processing Results ๐Ÿ”Ÿ Get Results by Result ID Use the Retrieve result by ID request (GET). The processingId from Step 9 is automatically included in the request URL You can also manually provide any valid processingId โœ… Response: Status: 200 OK Body: Contains the final result from the processed file โœ… Summary ๐Ÿ” Authenticate using the IDP - AUTH request ๐Ÿงช Check health using the HealthCheck request ๐Ÿ“‚ Upload Flow Get presignedUrl and objectKey Upload the file via PUT using the Upload file request Trigger content processing with the Content processing request Retrieve results using the Retrieve result by ID request with processingId