curl --request GET \
--url https://api.portkey.ai/v1/integrations/{slug}/workspaces \
--header 'x-portkey-api-key: <api-key>'{
"total": 123,
"workspaces": [
{
"id": "ws-my-team-1234",
"enabled": true,
"usage_limits": [
{
"credit_limit": 10,
"periodic_reset": "monthly",
"alert_threshold": 8
}
],
"rate_limits": [
{
"type": "requests",
"unit": "rpd",
"value": 123
}
]
}
]
}Retrieves workspace access configuration for an integration, including usage limits and rate limits.
curl --request GET \
--url https://api.portkey.ai/v1/integrations/{slug}/workspaces \
--header 'x-portkey-api-key: <api-key>'{
"total": 123,
"workspaces": [
{
"id": "ws-my-team-1234",
"enabled": true,
"usage_limits": [
{
"credit_limit": 10,
"periodic_reset": "monthly",
"alert_threshold": 8
}
],
"rate_limits": [
{
"type": "requests",
"unit": "rpd",
"value": 123
}
]
}
]
}List of workspace access configurations
Total number of workspaces
Show child attributes
Workspace ID
"ws-my-team-1234"
Whether the workspace has access
Show child attributes
Credit Limit. Used for tracking usage
x >= 1Type of credit limit
cost, tokens Alert Threshold. Used for alerting when usage reaches more than this
x >= 1Reset the usage periodically.
monthly, weekly Was this page helpful?