Prerequisites
- API Key created in StackOne Dashboard and copied to a secure location
- Basic Authentication Setup - Learn how to properly authenticate with StackOne API using your API key
- Required provider integration enabled
- Account linked successfully
- (Optional) Use an SDK or Postman
Getting Account ID
Authentication: When using
curl -u "$API_KEY:", encoding is handled automatically. When setting the Authorization header manually, you must base64 encode your API key first. See the Basic Authentication Guide for details.- List your linked accounts to find the account ID:
- From the response, copy the
idvalue for your desired provider account.
Making your first request
Check whether a user can read a specific resource. Replace the placeholder values with your own account ID, user identifier, and resource ID.- cURL
- TypeScript
- Python
Example response
Reading the response
user.permissions— the full set of permissions this user holds on the resource. Always present.allowed— only present when you sent anaction.trueif the action is inuser.permissions.resource.type— the resolved resource type used for the check.
When allowed is false
When the user doesn’t have access, the response returns 200 with an empty user.permissions array and allowed: false:
Next steps
Check Permissions reference
Full request/response schema, resource ID formats, and error codes
List Resource Types
Discover which resource types the connected provider supports