Prerequisites
In order to upload products, you must already have created your category taxonomy. For information on creating categories in the Product Agent UI, see Creating Categories.
Step 1: Postman Environment Setup
This part of the guide walks you through setting up a Postman environment to interact with the Product Agent API.Create a new environment
- Open Postman.
- Click Environments in the sidebar.
- Click + to create a new environment. Provide a name such as Product Agent - Prod.
Add the environment variables
Add the following variables to your environment.access_token and the various defined IDs will be empty initially — they will be populated after making API calls. | Variable | Description | Example |
|---|---|---|
baseUrl | Base URL for the API | https://commerceos.aiagents.fabric.inc/api |
authUrl | Auth URL for the API | https://commerceos.aiagents.fabric.inc |
access_token | Token used for authenticated requests | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... |
taxonomyWorkflowId | ID of the taxonomy workflow (used for status endpoints) | a1462a91-f733-45fe-993b-5d0353f33ee3 |
attributeWorkflowId | ID of the attribute workflow (used for status endpoints) | a1462a91-f733-45fe-993b-5d0353f33ee3 |
clientId | Client ID provided by fabric. Used to create an access token | svc_peyFD9BXPRrZymhjJtFuYr7L3Ai |
clientSecret | Client secret provided by fabric. Used to create an access token | cw_GWve_9oI_aJKd-xcE7uuZJpr-WqfnRpDPznGNVI-fOc |
domain | Brand domain or identifier for scoping requests | acme.com |
Step 2: Authentication
This part of the guide walks you through authenticating with the Product Agent API and storing your access token in Postman for future requests.Create and set the access token
To authenticate, send a POST request to the token endpoint using yourclientId and clientSecret. If you do not have these credentials, contact fabric support.
Tokens expire every 60 minutes.
Example Response:
Example Response:
access_token for future requests:
- Go to the Scripts tab in your Postman request.
- Select Post-response.
-
Add the following script:
pm.environment.set("access_token", pm.response.json().access_token);
access_token environment variable is automatically updated each time a request to the endpoint is made.
Step 3 (Optional): Import Attribute Definitions
You can optionally import attribute definitions for enrichment and mapping workflows. For information on creating attributes in the Product Agent UI, see Creating Attributes. This endpoint accepts a CSV file and creates an import job you can monitor using the returnedimport_id. We will save this to our environment as attributeWorkflowId.
Expected CSV columns for each attribute definition
| Column | Required | Description |
|---|---|---|
attribute_name | Yes | Attribute display name |
attribute_key | No | Machine-readable key |
description | Yes | Attribute description |
data_type | No | Attribute data type |
scope | No | Attribute scope |
enum_values | No | Allowed values, pipe-delimited, for example S|M|L |
allow_ai_content | No | Allow AI to generate values (true or false) |
source | No | MERCHANT or GOLD_STANDARD |
guideline_reason | No | Guidance for AI enrichment |
Request
attributeWorkflowId for future requests:
- Go to the Scripts tab in your Postman request.
- Select Post-response.
-
Add the following script:
pm.environment.set("attributeWorkflowId", pm.response.json().import_id);
Example Response:
Example Response:
Check the import status
After the upload succeeds, use the savedattributeWorkflowId to check workflow status with:
Example Response:
Example Response:
- Log in to Product Agent.
- In the left nav, click Settings. The Settings menu is displayed.
- Click Taxonomy. The Categories tab is displayed by default.
- Click Attributes.

Step 4: Import Your Products
After importing your categories and attribute definitions, you can upload products. During processing, products will be automatically mapped to your categories and aligned with the attribute definitions you’ve provided. This endpoint accepts a CSV file and creates a taxonomy workflow you can monitor using the returned workflowid. We will save this to our environment as taxonomyWorkflowId.
Expected CSV columns
| Column | Required | Description |
|---|---|---|
title | Yes | Product title |
breadcrumb | Yes | Category breadcrumb path |
sku | No | Product SKU |
category | No | Product category |
description | No | Product description |
images | No | Image URLs |
attribute.* | No | Custom attributes, for example attribute.color |
Request
taxonomyWorkflowId for future requests:
- Go to the Scripts tab in your Postman request.
- Select Post-response.
-
Add the following script:
pm.environment.set("taxonomyWorkflowId", pm.response.json().workflow_id);
Example Response:
Example Response:
Check the import status
After the upload succeeds, use the savedtaxonomyWorkflowId to check workflow status with:
Example Response:
Example Response:
COMPLETED.
Once processing is complete, your products will appear in Activate. Based on your category structure, products will be organized accordingly—for example, sweaters under Tops > Sweaters and t-shirts under Tops > T-Shirts.

