Users

get

Return basic information about user by ID

🔒 Requires the read:users permission

Authorizations
Path parameters
idstringRequired

The user's unique ID e.g. prov0|1234567890

Example: prov0|1234567890
Responses
200

Information about user

application/json
get
/api/v1/user/{id}
GET /api/v1/user/{id} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "prov0|1234567890",
  "name": "John Doe",
  "email": "[email protected]",
  "picture": "https://example.com/profile.jpg",
  "roles": [
    {
      "id": "rol_abCdeFghIjklMnmP",
      "name": "Admin",
      "description": "Role for managing Admin permissions"
    }
  ],
  "first_name": "John",
  "last_name": "Doe",
  "nickname": "JD",
  "created_at": "2025-11-10T12:19:26.487Z"
}
post

Update roles to user by id

🔒 Requires the update:users permission

Authorizations
Path parameters
idstringRequired

The user's unique ID e.g. prov0|1234567890

Example: prov0|1234567890
Body
rolesstring[]RequiredExample: ["rol_abCdeFghIjklMnmP"]
addbooleanOptional

If true, add the new role to an existing one. If false, override an existing role

Responses
200

User roles updated successfully

application/json
post
/api/v1/user/{id}/roles
POST /api/v1/user/{id}/roles HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 45

{
  "roles": [
    "rol_abCdeFghIjklMnmP"
  ],
  "add": true
}
{
  "id": "prov0|1234567890",
  "name": "John Doe",
  "email": "[email protected]",
  "picture": "https://example.com/profile.jpg",
  "roles": [
    {
      "id": "rol_abCdeFghIjklMnmP",
      "name": "Admin",
      "description": "Role for managing Admin permissions"
    }
  ],
  "assigned_environments": [
    {
      "id": "f27d96be-c486-4075-a926-0ee96775119e",
      "slug": "production-europe",
      "name": "Production Europe",
      "color": "#0000ff",
      "allow_pre_release": false,
      "is_default": true,
      "is_active": true,
      "is_deleted": true,
      "created": "2025-11-10T12:19:26.487Z",
      "cloud_account": null
    }
  ]
}

Last updated

Was this helpful?