Tasks

get

Return task information

Authorizations
Path parameters
taskIdstring · uuidRequired

The task's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

Responses
200

Task details

application/json
get
/api/v1/task/{taskId}
GET /api/v1/task/{taskId} HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Accept: */*
{
  "taskId": "123e4567-e89b-12d3-a456-426614174000",
  "command": "force_install",
  "planOnly": true,
  "user": "text",
  "organization": "text",
  "stage": "pending",
  "environment": {
    "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-11T15:54:19.923Z",
    "users": [
      {
        "id": "prov0|1234567890",
        "name": "John Doe",
        "email": "[email protected]",
        "nickname": "JD",
        "picture": "https://example.com/profile.jpg",
        "roles": [
          {
            "id": "rol_abCdeFghIjklMnmP",
            "name": "Admin",
            "description": "Role for managing Admin permissions"
          }
        ]
      }
    ],
    "cloud_account": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Production Europe",
      "provider": "aws",
      "slug": "production-europe",
      "is_active": true,
      "is_deleted": false,
      "created": "2025-11-11T15:54:19.923Z",
      "cloud_account": "123456789012",
      "assume_role_arn": "arn:aws:iam::123456789012:role/Bluebricks-Setup-BluebricksReadOnlyRole-123abc456DEF",
      "external_id": "abcdef-ghijklm",
      "cloud_config": {
        "service_account_email": "sa@project_id.iam.gserviceaccount.com",
        "scopes": "https://www.googleapis.com/auth/cloud-platform",
        "cluster_name": "text",
        "service_account_namespace": "text",
        "service_account_name": "text",
        "cluster_oidc_url": "https://example.com",
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "is_primary": true,
      "profile": "secrets-manager"
    }
  },
  "props": null,
  "secrets": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "decryptionKeyId": null,
  "deployments": [
    {
      "guid": "123e4567-e89b-12d3-a456-426614174000",
      "parent": null,
      "taskId": "123e4567-e89b-12d3-a456-426614174000",
      "depend": null,
      "stage": "pending",
      "type": "blueprint",
      "plan_file": null,
      "state_file": null,
      "origin_state_location": null,
      "slug": null,
      "package": {
        "qualified_name": "text",
        "url": null,
        "version": "text",
        "uniqueId": "text"
      }
    }
  ]
}
delete

Delete task and deployments

🔒 Requires the delete:deployment permission

Authorizations
Path parameters
taskIdstring · uuidRequired

The task's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

Responses
200

Task deleted with related deployments

application/json
delete
/api/v1/task/{taskId}
DELETE /api/v1/task/{taskId} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "task": "123e4567-e89b-12d3-a456-426614174000",
  "deployments": [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
}
get

Return a task's status

🔒 Requires the read:task permission

Authorizations
Path parameters
taskIdstring · uuidRequired

The task's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

Query parameters
expandbooleanOptional

If true, return elaborated version of the status. Otherwise, return a summarized version

Responses
200

Task details

application/json
get
/api/v1/task/{taskId}/status
GET /api/v1/task/{taskId}/status HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "task": "123e4567-e89b-12d3-a456-426614174000",
  "status": "pending",
  "command": "force_install",
  "planOnly": true,
  "deployments": {
    "total": 1,
    "states": {
      "pending": 1,
      "planning": 1,
      "no_change": 1,
      "planned": 1,
      "plan_approved": 1,
      "installing": 1,
      "canceled": 1,
      "completed": 1,
      "error": 1
    }
  },
  "statusTimestamps": {
    "pending": "2025-11-11T15:54:19.923Z",
    "planning": "2025-11-11T15:54:19.923Z",
    "no_change": "2025-11-11T15:54:19.923Z",
    "planned": "2025-11-11T15:54:19.923Z",
    "plan_approved": "2025-11-11T15:54:19.923Z",
    "installing": "2025-11-11T15:54:19.923Z",
    "completed": "2025-11-11T15:54:19.923Z",
    "canceled": "2025-11-11T15:54:19.923Z",
    "error": "2025-11-11T15:54:19.923Z"
  },
  "errors": null,
  "created": "2025-11-11T15:54:19.923Z",
  "updated": null,
  "completed": null
}
post

Update task status

Authorizations
Path parameters
taskIdstring · uuidRequired

The task's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

Query parameters
expandbooleanOptional

If true, return elaborated version of the status. Otherwise, return a summarized version

Body
statusstring · enumRequiredPossible values:
errorstringOptional
Responses
200

Task details

application/json
post
/api/v1/task/{taskId}/status
POST /api/v1/task/{taskId}/status HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "status": "pending",
  "error": "text"
}
{
  "task": "123e4567-e89b-12d3-a456-426614174000",
  "status": "pending",
  "deployments": {
    "total": 1,
    "states": {
      "pending": 1,
      "planning": 1,
      "no_change": 1,
      "planned": 1,
      "plan_approved": 1,
      "installing": 1,
      "canceled": 1,
      "completed": 1,
      "error": 1
    }
  },
  "created": "2025-11-11T15:54:19.923Z",
  "updated": null,
  "completed": null
}
post

Return task information

Authorizations
Path parameters
taskIdstring · uuidRequired

The task's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

Bodyone of[]
itemsone ofOptional
or
or
or
or
or
or
Responses
200

Inserted deployment ids

application/json
post
/api/v1/task/{taskId}/deployments
POST /api/v1/task/{taskId}/deployments HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 185

[
  {
    "package": {
      "name": "my-app",
      "version": "1.2.3",
      "uniqueId": "my-unique-id",
      "type": "blueprint"
    },
    "dependencies": {
      "direct": "my-dependent-app"
    },
    "parent": null,
    "action": "pending",
    "payload": {}
  }
]
[
  {
    "deployment": "123e4567-e89b-12d3-a456-426614174000"
  }
]
get

Return pending tasks

Authorizations
Responses
200

Pending tasks list

application/json
get
/api/v1/tasks
GET /api/v1/tasks HTTP/1.1
Host: api.bluebricks.co
Authorization: Basic username:password
Accept: */*
[
  {
    "taskId": "123e4567-e89b-12d3-a456-426614174000",
    "token": null,
    "stage": "pending"
  }
]

Last updated

Was this helpful?