Skip to content

IAM policies API reference

The IAM policy API is part of the Thalassa Cloud platform API. Full OpenAPI definitions are available in the API reference.

IAM policy routes require the projects feature gate. See Projects.

Required headers

HeaderIAM policy APIsResource APIs
AuthorizationYesYes
X-Organisation-IdentityYesYes
X-Project-IdentityYesOptional

Project resolution order on resource APIs: OIDC claim projectX-Project-Identity?project= query parameter.

Endpoints

Base path: /v1/projects/iam/policies

Always requires X-Project-Identity.

MethodPathDescription
GET/resourcesList assignable API resource types
GET/List policies (includes rules, bindings, conditionals)
POST/Create policy
GET/{identity}Get policy
PUT/{identity}Update description, labels, annotations, conditionals
DELETE/{identity}Delete policy
POST/{identity}/rulesAdd permission rule
DELETE/{identity}/rules/{ruleIdentity}Remove permission rule
GET/{identity}/bindingsList bindings
POST/{identity}/bindingsCreate binding
PUT/{identity}/bindings/{bindingIdentity}Update binding metadata
DELETE/{identity}/bindings/{bindingIdentity}Remove binding

Common response codes

HTTPMeaning
403projects feature gate disabled; insufficient iam_policy permission
400Validation error; mutating system or read-only replica; escalation attempt; invalid resource type or conditional
404Policy, binding, or project not found
409Duplicate policy slug

Documentation by topic

TopicGuide
ProjectsProjects
ConceptsConcepts
Permission rulesPermission rules
Default policiesDefault policies
Organisation rolesOrganisation roles