Turia IAM API Product
Operations with members, including creation, listing, deletion, and management of individual or batch grants.
Email (string) or Email (null) (Email) Example: email=john.doe@example.com |
[- {
- "uuid": "550e8400-e29b-41d4-a716-446655440000",
- "email": "john.doe@example.com",
- "name": "John Doe",
- "tenant_id": "123e4567-e89b-12d3-a456-426614174000",
- "profile": "administrator"
}
]| email required | string <email> (Email) |
| roles | Array of strings (Roles) |
| permissions | Array of strings (Permissions) |
{- "email": "user@example.com",
- "roles": [
- "editor"
], - "permissions": [
- "turia_iam_editor"
]
}{- "uuid": "550e8400-e29b-41d4-a716-446655440000",
- "email": "john.doe@example.com",
- "name": "John Doe",
- "tenant_id": "123e4567-e89b-12d3-a456-426614174000",
- "profile": "administrator",
- "action": "added"
}| uuid required | string <uuid> (Uuid) Example: 9f1c2d3e-4567-89ab-cdef-1234567890ab |
{- "detail": {
- "message": "Only organization owner can remove another administrator account",
- "error_code": 20025
}
}| uuid required | string <uuid> (Uuid) Example: 9f1c2d3e-4567-89ab-cdef-1234567890ab |
| operation required | string (Operation) Enum: "add" "remove" |
| roles | Array of strings (Roles) Default: [] |
| permissions | Array of strings (Permissions) Default: [] |
{- "operation": "add",
- "roles": [
- "editor"
], - "permissions": [
- "turia_iam_editor"
]
}{- "origin": "permissionsAPI",
- "permission": "turia_iam_editor",
- "product": "turiaiam",
- "message": "User action not authorized for permission turia_iam_editor"
}| member_ids required | Array of strings <uuid> (Member Ids) [ items <uuid > ] |
| operation required | string (Operation) Enum: "add" "remove" |
| role_names | Array of strings (Role Names) Default: [] |
| permission_names | Array of strings (Permission Names) Default: [] |
{- "member_ids": [
- "550e8400-e29b-41d4-a716-446655440000"
], - "operation": "add",
- "role_names": [
- "editor"
], - "permission_names": [
- "turia_iam_editor"
]
}{- "origin": "permissionsAPI",
- "permission": "turia_iam_editor",
- "product": "turiaiam",
- "message": "User action not authorized for permission turia_iam_editor"
}Operations with access control, including detailed retrieval, creation, and updating of settings
Name (string) or Name (null) (Name) | |
Description (string) or Description (null) (Description) |
{- "name": "Turia",
- "description": "Organization managing IAM and access settings"
}null| status | boolean (Status) |
| enforce_mfa | boolean (Enforce Mfa) |
{- "status": true,
- "enforce_mfa": true
}{- "name": "Turia",
- "description": "Organization managing IAM and access settings",
- "tenant_id": "8e4f75f4-4298-49e7-87c9-652178c0ecd0",
- "enabled": true,
- "enforce_mfa": true
}Product Name (string) or Product Name (null) (Product Name) | |
Partial Match (boolean) or Partial Match (null) (Partial Match) Default: false | |
Case Sensitive (boolean) or Case Sensitive (null) (Case Sensitive) Default: true |
[- {
- "id": "string",
- "name": "string",
- "permissions": [
- {
- "id": "string",
- "name": "string",
- "description": "string"
}
]
}
]Operations with roles, including creation, listing, deletion, permission management, and member listing.
| role_name | string Example: role_name=editor Optional role name to filter results |
[- {
- "name": "financeiro",
- "description": "Papel com responsabilidade de leitura de dados de faturamento",
- "origin": "default"
}
]| name required | string (Name) |
| description | string (Description) |
| permissions | Array of strings (Permissions) Default: [] |
| based_role | string (Based Role) |
{- "name": "manager",
- "description": "Role with administrative privileges for managing users",
- "permissions": [
- "turia_iam_editor"
], - "based_role": "editor"
}{- "name": "financeiro",
- "description": "Papel com responsabilidade de leitura de dados de faturamento",
- "origin": "default"
}{- "origin": "permissionsAPI",
- "permission": "turia_iam_editor",
- "product": "turiaiam",
- "message": "User action not authorized for permission turia_iam_editor"
}| role_name required | string (Role Name) |
{- "name": "manager",
- "description": "Role with administrative privileges for managing users",
- "origin": "custom",
- "permissions": [
- "turia_iam_editor"
]
}| role_name required | string (Role Name) Example: manager Name of the role to update |
| add | Array of strings (Add) Default: [] |
| remove | Array of strings (Remove) Default: [] |
{- "add": [
- "turia_iam_adm"
], - "remove": [
- "turia_iam_editor"
]
}[- {
- "name": "financeiro",
- "description": "Papel com responsabilidade de leitura de dados de faturamento",
- "origin": "default"
}
]| role_name required | string (Role Name) |
[- {
- "member_uuid": "a4bddb3f-0acf-4981-bb85-03feb4ee0d08",
- "name": "John Doe",
- "email": "john.doe@example.com",
- "member_role": "administrator",
- "roles": [
- "editor"
]
}
]Operations with service accounts, including creation, listing, editing, deletion, and management of their API keys.
[- {
- "uuid": "d4f3a9c2-1b8a-4e6b-b5a1-9f2d3e7c4b1a",
- "name": "Analytics Engine",
- "description": "Service account for analytics pipelines",
- "email": "analytics.engine.001@company.example.com",
- "tenant": {
- "uuid": "f1a2b3c4-5678-90ab-cdef-1234567890ab",
- "legal_name": "Example Corp Ltda"
}
}
]| name required | string (Name) |
| description required | string (Description) |
| email required | string <email> (Email) |
{- "name": "Analytics Engine",
- "description": "Service account for analytics pipelines",
- "email": "analytics.engine.001@company.example.com"
}{- "uuid": "d4f3a9c2-1b8a-4e6b-b5a1-9f2d3e7c4b1a",
- "name": "Analytics Engine",
- "description": "Service account for analytics pipelines",
- "email": "analytics.engine.001@company.example.com",
- "tenant": {
- "uuid": "f1a2b3c4-5678-90ab-cdef-1234567890ab",
- "legal_name": "Example Corp Ltda"
}
}| sa_uuid required | string <uuid> (Service Account Uuid) Example: d4f3a9c2-1b8a-4e6b-b5a1-9f2d3e7c4b1a |
{- "origin": "permissionsAPI",
- "permission": "turia_iam_editor",
- "product": "turiaiam",
- "message": "User action not authorized for permission turia_iam_editor"
}| sa_uuid required | string <uuid> (Service Account Uuid) Example: d4f3a9c2-1b8a-4e6b-b5a1-9f2d3e7c4b1a |
Name (string) or Name (null) (Name) | |
Description (string) or Description (null) (Description) |
{- "name": "Analytics Engine",
- "description": "Service account for analytics pipelines"
}{- "uuid": "d4f3a9c2-1b8a-4e6b-b5a1-9f2d3e7c4b1a",
- "name": "Analytics Engine",
- "description": "Service account for analytics pipelines",
- "email": "analytics.engine.001@company.example.com",
- "tenant": {
- "uuid": "f1a2b3c4-5678-90ab-cdef-1234567890ab",
- "legal_name": "Example Corp Ltda"
}
}| sa_uuid required | string <uuid> (Service Account Uuid) Example: d4f3a9c2-1b8a-4e6b-b5a1-9f2d3e7c4b1a |
| name required | string (Name) |
Description (string) or Description (null) (Description) | |
Array of Scopes (strings) or Scopes (null) (Scopes) Default: [] |
{- "name": "Analytics Key",
- "description": "Key for accessing analytics service",
- "scopes": [
- "iam:read"
]
}{- "uuid": "e8a77a53-ea0b-49a7-9f8d-a7116a800df5",
- "name": "Analytics Key",
- "description": "Key for accessing analytics service",
- "key_pair_id": "be88e4f8-24ac-4cab-a59d-42cfdc02cbe7",
- "key_pair_secret": "8b4c58bc-d905-435b-8cd0-05bf4b150d52",
- "scopes": [
- "iam:read"
], - "scopes_pending_approval": [
- "iam:write"
], - "start_validity": "string",
- "end_validity": "string",
- "revoked_at": "string",
- "revoked_by": "string",
- "api_key": "eeac0a24-9948-4e92-b5d4-0aa2ea91d539"
}| sa_uuid required | string <uuid> (Sa Uuid) Example: 8cf19575-674c-4bb0-b5c7-4dde54923183 |
APIKeyStatusEnum (string) or Status (null) (Status) |
[- {
- "uuid": "e8a77a53-ea0b-49a7-9f8d-a7116a800df5",
- "name": "Analytics Key",
- "description": "Key for accessing analytics service",
- "key_pair_id": "be88e4f8-24ac-4cab-a59d-42cfdc02cbe7",
- "key_pair_secret": "8b4c58bc-d905-435b-8cd0-05bf4b150d52",
- "scopes": [
- "iam:read"
], - "scopes_pending_approval": [
- "iam:write"
], - "start_validity": "string",
- "end_validity": "string",
- "revoked_at": "string",
- "revoked_by": "string",
- "api_key": "eeac0a24-9948-4e92-b5d4-0aa2ea91d539"
}
]| sa_uuid required | string <uuid> (Sa Uuid) Example: 8cf19575-674c-4bb0-b5c7-4dde54923183 |
| apikey_uuid required | string <uuid> (Apikey Uuid) Example: e8a77a53-ea0b-49a7-9f8d-a7116a800df5 |
{- "origin": "permissionsAPI",
- "permission": "turia_iam_editor",
- "product": "turiaiam",
- "message": "User action not authorized for permission turia_iam_editor"
}| sa_uuid required | string <uuid> (Sa Uuid) Example: 8cf19575-674c-4bb0-b5c7-4dde54923183 |
| apikey_uuid required | string <uuid> (Apikey Uuid) Example: e8a77a53-ea0b-49a7-9f8d-a7116a800df5 |
Name (string) or Name (null) (Name) | |
Description (string) or Description (null) (Description) | |
Array of Scopes (strings) or Scopes (null) (Scopes) Default: [] |
{- "name": "My API Key",
- "description": "API key for automation tasks",
- "scopes": [
- "iam:read"
]
}{- "uuid": "e8a77a53-ea0b-49a7-9f8d-a7116a800df5",
- "name": "Analytics Key",
- "description": "Key for accessing analytics service",
- "key_pair_id": "be88e4f8-24ac-4cab-a59d-42cfdc02cbe7",
- "key_pair_secret": "8b4c58bc-d905-435b-8cd0-05bf4b150d52",
- "scopes": [
- "iam:read"
], - "scopes_pending_approval": [
- "iam:write"
], - "start_validity": "string",
- "end_validity": "string",
- "revoked_at": "string",
- "revoked_by": "string",
- "api_key": "eeac0a24-9948-4e92-b5d4-0aa2ea91d539"
}[- {
- "uuid": "c5457157-4359-44d7-a0ed-188362c91013",
- "name": "Magalu Cloud",
- "api_products": [
- {
- "uuid": "1dcfa8ce-4576-4944-a4fe-a0ca1f2f455d",
- "name": "API Product CMS",
- "scopes": [
- {
- "uuid": "28beb8a2-9d99-44db-8fb7-5b724eac79a2",
- "name": "cms:cloud-product-management:write",
- "title": "Write permission for cloud product management"
}
]
}
]
}
]Operations with invitations, including sending, resending, canceling, and listing organization invites.
InviteStatusEnum (string) or Status (null) (Status) |
[- {
- "id": "9f1c2d3e-4567-89ab-cdef-1234567890ab",
- "email": "john.doe@example.com",
- "status": "pending",
- "profile": "employee"
}
]| invite_id required | string (Invite Id) |
{- "origin": "permissionsAPI",
- "permission": "turia_iam_editor",
- "product": "turiaiam",
- "message": "User action not authorized for permission turia_iam_editor"
}Operations with groups, including creation, listing, updating, deletion, and management of group members.
List groups for the authenticated user. PF (Pessoa Física) returns groups with profile and email. PJ (Pessoa Jurídica) returns groups with email but without profile.
Email (string) or Email (null) (Email) Example: email=group@example.com |
{- "items": [
- {
- "id": "b3c4d5e6-7890-12ab-cdef-1234567890ab",
- "name": "Finance Team",
- "description": "Group for the finance department",
- "email": "finance-team@company.example.com",
- "profile": "administrator"
}
]
}| identifier required | string (Identifier) |
| name required | string (Name) |
Description (string) or Description (null) (Description) |
{- "identifier": "finance-team",
- "name": "Finance Team",
- "description": "Group for the finance department"
}{- "id": "b3c4d5e6-7890-12ab-cdef-1234567890ab",
- "name": "Finance Team",
- "description": "Group for the finance department",
- "email": "finance-team@company.example.com"
}| group_id required | string (Group Id) Example: a1b2c3d4-5678-90ab-cdef-1234567890ab |
Description (string) or Description (null) (Description) | |
Any of string (Description) | |
{- "description": "Updated group description"
}{- "id": "b3c4d5e6-7890-12ab-cdef-1234567890ab",
- "name": "Finance Team",
- "description": "Group for the finance department",
- "email": "finance-team@company.example.com"
}| group_id required | string (Group Id) Example: a1b2c3d4-5678-90ab-cdef-1234567890ab |
{- "origin": "permissionsAPI",
- "permission": "turia_iam_editor",
- "product": "turiaiam",
- "message": "User action not authorized for permission turia_iam_editor"
}List members of a group with pagination (max 20 per page).
| group_id required | string (Group Id) Example: a1b2c3d4-5678-90ab-cdef-1234567890ab |
| page | integer (Page) >= 1 Default: 1 Example: page=1 Page number |
| per_page | integer (Per Page) [ 1 .. 20 ] Default: 20 Example: per_page=20 Items per page (max 20) |
{- "items": [
- {
- "group_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
- "member_id": "550e8400-e29b-41d4-a716-446655440000",
- "profile": "administrator",
- "email": "john.doe@example.com",
- "name": "John Doe"
}
], - "meta": {
- "page": 1,
- "per_page": 20,
- "total_pages": 5,
- "total_items": 100
}
}| group_id required | string (Group Id) Example: a1b2c3d4-5678-90ab-cdef-1234567890ab |
| member_id required | string (Member Id) |
| profile required | string (Profile) |
{- "member_id": "550e8400-e29b-41d4-a716-446655440000",
- "profile": "administrator"
}{- "group_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
- "member_id": "550e8400-e29b-41d4-a716-446655440000",
- "profile": "administrator",
- "email": "john.doe@example.com",
- "name": "John Doe"
}| group_id required | string (Group Id) Example: a1b2c3d4-5678-90ab-cdef-1234567890ab |
| member_id required | string (Member Id) Example: 550e8400-e29b-41d4-a716-446655440000 |
| profile required | string (Profile) |
{- "profile": "employee"
}{- "group_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
- "member_id": "550e8400-e29b-41d4-a716-446655440000",
- "profile": "administrator",
- "email": "john.doe@example.com",
- "name": "John Doe"
}| group_id required | string (Group Id) Example: a1b2c3d4-5678-90ab-cdef-1234567890ab |
| member_id required | string (Member Id) Example: 550e8400-e29b-41d4-a716-446655440000 |
{- "origin": "permissionsAPI",
- "permission": "turia_iam_editor",
- "product": "turiaiam",
- "message": "User action not authorized for permission turia_iam_editor"
}