API key information
GET/pim/keyinfo
- No permissions are required for ApiKey.
- Example URI:
Your own API key: https://instancename.piminto.com/api/en-us/pim/keyinfo
Other verification API key: https://instancename.piminto.com/api/en-us/pim/keyinfo/?key=VerifyAPIkey
Provides the ability to retrieve information about your own API key or another API key other than your own.
Returns
- Permissions Information: Returns details about the permissions associated with the provided API key or the key specified in the {key} query parameter. These permissions dictate the actions that can be performed.
- Available Views: Provides a list of Views accessible to the specified key, allowing users to access specific subsets of data.
- PIM Counters: Includes information such as the total count of views, attributes defined in the PIM, size of assets (in bytes), and the total count of SKUs.
- PIM Limits: Presents details about the limits imposed on PIMS within the selected plan, covering aspects like the total count of views, attributes, asset size, and SKU count.
Returns an Error if the API key is invalid or expired.
The following permissions are available for API keys in PIMS:
- Access Manager (system permission name: pim_security): Allows the management of access groups and API keys.
- Data Manager (system permission name: pim_manager): Permits the definition of attributes, categories, and views in the PIMS.
- Data Viewer (system permission name: pim_user): Provides read-only access to product and category data in the PIMS.
- Data Editor (system permission name: pim_editor): Enables adding, editing, and deleting products in the PIMS.
- Data Importer (system permission name: pim_import): Allows the importing of data into the PIMS.
- Data Exporter (system permission name: pim_export): Allows the exporting of data from the PIMS.
The API key expiration date is a global parameter set in the PIMS settings.
Information about permissions for the verification key will only contain information about the permissions to which you have access.
Please note the following important aspect of data management in PIM:
- When granting pim_security permissions, pim_manager permissions are automatically granted.
- When granting pim_manager permissions, pim_editor permissions are automatically granted.
- When granting pim_editor permissions, pim_user permissions are automatically granted.
- Accounts with pim_security or pim_manager permissions cannot be associated with views (views define which data is available for the API key).
Request
Query Parameters
API key different from your own that you want to verify.
Responses
- 200
- default
success
- application/json
- Schema
- Example (from schema)
Schema
Provides a message about the API key's status and the expiration date of the key.
operations objectrequired
The "operations" object contains a set of operations that are authorized for the API key. Each operation has an "allowed" key that indicates whether the operation is permitted or not. A value of 1 for the "allowed" key signifies that the operation is allowed. The "label" key provides a human-readable description of the operation, while the "group" key specifies the category to which the operation belongs. The "group" key can be used to group operations together, making it easier for the users to understand the purpose of each operation.
pim_security object
Allows the management of access groups and API keys.
pim_manager object
Permits the definition of attributes, categories, and views in the PIMS.
pim_user object
Provides read-only access to product and category data in the PIMS.
pim_editor object
Enables adding, editing, and deleting products in the PIMS.
pim_import object
Allows the importing of data into the PIMS.
pim_export object
Allows the exporting of data from the PIMS.
views object
nameview object
Possible values: [y
, n
]
pim_counters objectrequired
totalViews objectrequired
totalAttributes objectrequired
totalStorageSize objectrequired
totalSKUs objectrequired
pim_limits objectrequired
maxViews objectrequired
maxAttributes objectrequired
maxStorageSize objectrequired
maxSKUs objectrequired
The status of the API request. A value of "OK" indicates that the request was successfully sent and processed
{
"status_message": "ApiKey is good. Expiration: Sat Jun 3 04:43:15 2023",
"operations": {
"pim_security": {
"allowed": 1,
"group": "Security",
"label": "Access Manager (manage access groups and API keys)"
},
"pim_manager": {
"allowed": 1,
"group": "Data access/configuration",
"label": "Data Manager (define attributes, categories, views)"
},
"pim_user": {
"allowed": 1,
"group": "Data access/configuration",
"label": "Data Viewer (read only access to product and category data)"
},
"pim_editor": {
"allowed": 1,
"group": "Data access/configuration",
"label": "Data Editor (add, edit, delete products)"
},
"pim_import": {
"allowed": 1,
"group": "Data access/configuration",
"label": "Data Importer"
},
"pim_export": {
"allowed": 1,
"group": "Data access/configuration",
"label": "Data Exporter"
}
},
"views": {
"nameview": {
"isDefault": "y",
"comment": "string"
}
},
"pim_counters": {
"totalViews": {
"value": 0,
"description": "Total count of views"
},
"totalAttributes": {
"value": 0,
"description": "Total count of attributes defined in the PIM"
},
"totalStorageSize": {
"value": 0,
"description": "Total size of assets (in bytes)"
},
"totalSKUs": {
"value": 0,
"description": "Total count of SKUs"
}
},
"pim_limits": {
"maxViews": {
"value": 0,
"description": "Maximum quantity of views in the PIM"
},
"maxAttributes": {
"value": 0,
"description": "Maximum quantity of attributes defined in the PIM"
},
"maxStorageSize": {
"description": "Maximum total size of assets in bytes",
"value": 0
},
"maxSKUs": {
"description": "Maximum SKU allowed in the PIM",
"value": 0
}
},
"status": "OK"
}
The reason for the error is included in the response body
- application/json
- Schema
- Example (from schema)
Schema
Indicates the status of the API request. In this case, the value "Error" means that an error occurred while processing the request.
Provides a message that describes the reason for the error that occurred during processing the API request. In this case, the value "ApiKey is wrong!" indicates that the API key used in the request is incorrect.
{
"status": "Error",
"status_message": "ApiKey is wrong!"
}