API keys and supported business reads
Call the Businesses list with scoped credentials using Scalar, Postman or curl.
The public business boundary is GET /api/businesses. This is a read operation for businesses in the authenticated workspace, subject to current authority and subscription read access. A developer credential cannot create, edit or delete businesses, or call account, admin, internal worker or other unpublished business APIs.
Prepare a scoped API key
Register an application in the intended workspace.
Enable API keys and approve Businesses.View in Access.
Choose Generate API key, select that permission explicitly and optionally enter a future UTC expiration.
Copy the full public-ID.secret value once into a private secret store. Historical metadata never returns it.
The API equivalents are list supported permissions, save app settings with the returned authorization.version, and generate a key with an explicit permissionIds array. Empty arrays grant nothing.
Scalar
Open the Businesses operation. Select ApiKey in Authentication and enter the complete generated key. Scalar supplies X-QX-Key. Do not also send a human Bearer or another integration identity in the same test. Set page and pageSize, then send the request. Use a pageSize from 1 to 100. An out-of-range value resets to 10; inspect the returned page and pageSize. Use the schema and current server response for response fields; no sample row represents your live workspace.
Postman and curl
In Postman choose API Key authorization, key X-QX-Key, value from a private/local variable, Add to Header. Use GET and the URL below. Never sync the credential into a shared collection or exported environment.
GET https://api.prastav.io/api/businesses?page=1&pageSize=10
X-QX-Key: {{privateApiKey}}
Accept: application/json
For a controlled shell session, set the secret using your approved secret manager. The example variable is not a real credential:
curl --fail-with-body 'https://api.prastav.io/api/businesses?page=1&pageSize=10' \
-H "X-QX-Key: $PRASTAV_API_KEY" -H 'Accept: application/json'
Avoid verbose HTTP tracing and shell history containing literal secrets. With OAuth, select IntegrationBearer and supply only the access_token from token exchange. Human Bearer is a separate authentication alternative with its own active-session requirements.
Verify revocation and workspace isolation
In a controlled workspace, call Businesses successfully, revoke that exact key through Credentials, then repeat the same request. Expect 401 without generating another key. Removing application approval while a key remains valid instead produces 403; restoring approval permits the original scope again only if all other authority remains valid.
Credentials are bound to a workspace. A caller-supplied workspace ID or header cannot select another tenant. Test two separately authorized workspaces with their own keys and distinct records. Do not perform destructive checks against production credentials merely to repeat acceptance.
Read the API Contract Standard V1 for pagination, filters, response examples and safe retries, and 401/403 troubleshooting and audit.
New credential issuance applies the effective platform/application validity limit. An omitted expiry is bounded; an explicit value beyond the limit is rejected. Existing credentials keep their saved expiry, and no added API scope is assigned implicitly. See expiry and replacement guidance.