# Application

> Source: https://developers.cloud66.com/v3/webhooks/application/

## Application Health Check Failed

URL: https://developers.cloud66.com/v3/webhooks/application/#health-check-failed
Event type: application.health_check.failed
Related models: stack

Triggered when application health checks fail.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "application.health_check.failed",
  "uid": "stack-550e8400-e29b-41d4-a716",
  "name": "my-production-app",
  "account_id": 12345,
  "git": "git@github.com:mycompany/myapp.git",
  "git_branch": "main",
  "environment": "production",
  "cloud": "aws",
  "fqdn": "myapp.example.com",
  "language": "ruby",
  "framework": "rails",
  "status": 1,
  "health": 3,
  "last_activity": "2024-02-15 14:30:00 UTC",
  "last_activity_iso": "2024-02-15T14:30:00Z",
  "maintenance_mode": false,
  "has_loadbalancer": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:30:00Z",
  "deploy_directory": "/var/deploy/myapp",
  "cloud_status": "deployed",
  "backend": "kubernetes",
  "version": "4",
  "revision": "42",
  "is_busy": false,
  "account_name": "Production Team (team@example.com)",
  "is_cluster": false,
  "is_inside_cluster": true,
  "cluster_name": "production-cluster",
  "application_address": "https://myapp.example.com",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
  "namespaces": [
    "myapp-production",
    "myapp-staging"
  ],
  "considerations": {
    "warnings": [],
    "notices": [
      "Stack is healthy"
    ]
  },
  "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
}
```

---

## Application Integration Configured

URL: https://developers.cloud66.com/v3/webhooks/application/#integration-configured
Event type: application.integration.configured
Related models: stack

Triggered when a new integration (like monitoring tools) is configured for the stack.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "application.integration.configured",
  "uid": "stack-550e8400-e29b-41d4-a716",
  "name": "my-production-app",
  "account_id": 12345,
  "git": "git@github.com:mycompany/myapp.git",
  "git_branch": "main",
  "environment": "production",
  "cloud": "aws",
  "fqdn": "myapp.example.com",
  "language": "ruby",
  "framework": "rails",
  "status": 1,
  "health": 3,
  "last_activity": "2024-02-15 14:30:00 UTC",
  "last_activity_iso": "2024-02-15T14:30:00Z",
  "maintenance_mode": false,
  "has_loadbalancer": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:30:00Z",
  "deploy_directory": "/var/deploy/myapp",
  "cloud_status": "deployed",
  "backend": "kubernetes",
  "version": "4",
  "revision": "42",
  "is_busy": false,
  "account_name": "Production Team (team@example.com)",
  "is_cluster": false,
  "is_inside_cluster": true,
  "cluster_name": "production-cluster",
  "application_address": "https://myapp.example.com",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
  "namespaces": [
    "myapp-production",
    "myapp-staging"
  ],
  "considerations": {
    "warnings": [],
    "notices": [
      "Stack is healthy"
    ]
  },
  "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
}
```

---

## Application Integration Removed

URL: https://developers.cloud66.com/v3/webhooks/application/#integration-removed
Event type: application.integration.removed
Related models: stack

Triggered when an integration is removed from the stack.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "application.integration.removed",
  "uid": "stack-550e8400-e29b-41d4-a716",
  "name": "my-production-app",
  "account_id": 12345,
  "git": "git@github.com:mycompany/myapp.git",
  "git_branch": "main",
  "environment": "production",
  "cloud": "aws",
  "fqdn": "myapp.example.com",
  "language": "ruby",
  "framework": "rails",
  "status": 1,
  "health": 3,
  "last_activity": "2024-02-15 14:30:00 UTC",
  "last_activity_iso": "2024-02-15T14:30:00Z",
  "maintenance_mode": false,
  "has_loadbalancer": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:30:00Z",
  "deploy_directory": "/var/deploy/myapp",
  "cloud_status": "deployed",
  "backend": "kubernetes",
  "version": "4",
  "revision": "42",
  "is_busy": false,
  "account_name": "Production Team (team@example.com)",
  "is_cluster": false,
  "is_inside_cluster": true,
  "cluster_name": "production-cluster",
  "application_address": "https://myapp.example.com",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
  "namespaces": [
    "myapp-production",
    "myapp-staging"
  ],
  "considerations": {
    "warnings": [],
    "notices": [
      "Stack is healthy"
    ]
  },
  "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
}
```

---

## Application Update Failed

URL: https://developers.cloud66.com/v3/webhooks/application/#update-failed
Event type: application.update.failed
Related models: stack

Triggered when an application update fails.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "application.update.failed",
  "uid": "stack-550e8400-e29b-41d4-a716",
  "name": "my-production-app",
  "account_id": 12345,
  "git": "git@github.com:mycompany/myapp.git",
  "git_branch": "main",
  "environment": "production",
  "cloud": "aws",
  "fqdn": "myapp.example.com",
  "language": "ruby",
  "framework": "rails",
  "status": 1,
  "health": 3,
  "last_activity": "2024-02-15 14:30:00 UTC",
  "last_activity_iso": "2024-02-15T14:30:00Z",
  "maintenance_mode": false,
  "has_loadbalancer": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:30:00Z",
  "deploy_directory": "/var/deploy/myapp",
  "cloud_status": "deployed",
  "backend": "kubernetes",
  "version": "4",
  "revision": "42",
  "is_busy": false,
  "account_name": "Production Team (team@example.com)",
  "is_cluster": false,
  "is_inside_cluster": true,
  "cluster_name": "production-cluster",
  "application_address": "https://myapp.example.com",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
  "namespaces": [
    "myapp-production",
    "myapp-staging"
  ],
  "considerations": {
    "warnings": [],
    "notices": [
      "Stack is healthy"
    ]
  },
  "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
}
```

---

## Application Update Pending

URL: https://developers.cloud66.com/v3/webhooks/application/#update-pending
Event type: application.update.pending
Related models: stack

This webhook is sent when an application update is queued. The payload includes stack information and the update type symbol.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "application.update.pending",
  "uid": "stack-550e8400-e29b-41d4-a716",
  "name": "my-production-app",
  "account_id": 12345,
  "git": "git@github.com:mycompany/myapp.git",
  "git_branch": "main",
  "environment": "production",
  "cloud": "aws",
  "fqdn": "myapp.example.com",
  "language": "ruby",
  "framework": "rails",
  "status": 1,
  "health": 3,
  "last_activity": "2024-02-15 14:30:00 UTC",
  "last_activity_iso": "2024-02-15T14:30:00Z",
  "maintenance_mode": false,
  "has_loadbalancer": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:30:00Z",
  "deploy_directory": "/var/deploy/myapp",
  "cloud_status": "deployed",
  "backend": "kubernetes",
  "version": "4",
  "revision": "42",
  "is_busy": false,
  "account_name": "Production Team (team@example.com)",
  "is_cluster": false,
  "is_inside_cluster": true,
  "cluster_name": "production-cluster",
  "application_address": "https://myapp.example.com",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
  "namespaces": [
    "myapp-production",
    "myapp-staging"
  ],
  "considerations": {
    "warnings": [],
    "notices": [
      "Stack is healthy"
    ]
  },
  "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
}
```

---

## Application Update Started

URL: https://developers.cloud66.com/v3/webhooks/application/#update-started
Event type: application.update.started
Related models: stack

Triggered when an application update begins.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "application.update.started",
  "uid": "stack-550e8400-e29b-41d4-a716",
  "name": "my-production-app",
  "account_id": 12345,
  "git": "git@github.com:mycompany/myapp.git",
  "git_branch": "main",
  "environment": "production",
  "cloud": "aws",
  "fqdn": "myapp.example.com",
  "language": "ruby",
  "framework": "rails",
  "status": 1,
  "health": 3,
  "last_activity": "2024-02-15 14:30:00 UTC",
  "last_activity_iso": "2024-02-15T14:30:00Z",
  "maintenance_mode": false,
  "has_loadbalancer": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:30:00Z",
  "deploy_directory": "/var/deploy/myapp",
  "cloud_status": "deployed",
  "backend": "kubernetes",
  "version": "4",
  "revision": "42",
  "is_busy": false,
  "account_name": "Production Team (team@example.com)",
  "is_cluster": false,
  "is_inside_cluster": true,
  "cluster_name": "production-cluster",
  "application_address": "https://myapp.example.com",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
  "namespaces": [
    "myapp-production",
    "myapp-staging"
  ],
  "considerations": {
    "warnings": [],
    "notices": [
      "Stack is healthy"
    ]
  },
  "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
}
```

---

## Application Update Succeeded

URL: https://developers.cloud66.com/v3/webhooks/application/#update-succeeded
Event type: application.update.succeeded
Related models: stack

Triggered when an application update completes successfully.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "application.update.succeeded",
  "uid": "stack-550e8400-e29b-41d4-a716",
  "name": "my-production-app",
  "account_id": 12345,
  "git": "git@github.com:mycompany/myapp.git",
  "git_branch": "main",
  "environment": "production",
  "cloud": "aws",
  "fqdn": "myapp.example.com",
  "language": "ruby",
  "framework": "rails",
  "status": 1,
  "health": 3,
  "last_activity": "2024-02-15 14:30:00 UTC",
  "last_activity_iso": "2024-02-15T14:30:00Z",
  "maintenance_mode": false,
  "has_loadbalancer": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:30:00Z",
  "deploy_directory": "/var/deploy/myapp",
  "cloud_status": "deployed",
  "backend": "kubernetes",
  "version": "4",
  "revision": "42",
  "is_busy": false,
  "account_name": "Production Team (team@example.com)",
  "is_cluster": false,
  "is_inside_cluster": true,
  "cluster_name": "production-cluster",
  "application_address": "https://myapp.example.com",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
  "namespaces": [
    "myapp-production",
    "myapp-staging"
  ],
  "considerations": {
    "warnings": [],
    "notices": [
      "Stack is healthy"
    ]
  },
  "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
}
```

---

## Stack Created

URL: https://developers.cloud66.com/v3/webhooks/application/#created
Event type: stack.created
Related models: stack

This webhook is sent when a new stack is created. The payload includes complete stack information and deployment setup details.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "stack.created",
  "uid": "stack-550e8400-e29b-41d4-a716",
  "name": "my-production-app",
  "account_id": 12345,
  "git": "git@github.com:mycompany/myapp.git",
  "git_branch": "main",
  "environment": "production",
  "cloud": "aws",
  "fqdn": "myapp.example.com",
  "language": "ruby",
  "framework": "rails",
  "status": 1,
  "health": 3,
  "last_activity": "2024-02-15 14:30:00 UTC",
  "last_activity_iso": "2024-02-15T14:30:00Z",
  "maintenance_mode": false,
  "has_loadbalancer": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:30:00Z",
  "deploy_directory": "/var/deploy/myapp",
  "cloud_status": "deployed",
  "backend": "kubernetes",
  "version": "4",
  "revision": "42",
  "is_busy": false,
  "account_name": "Production Team (team@example.com)",
  "is_cluster": false,
  "is_inside_cluster": true,
  "cluster_name": "production-cluster",
  "application_address": "https://myapp.example.com",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
  "namespaces": [
    "myapp-production",
    "myapp-staging"
  ],
  "considerations": {
    "warnings": [],
    "notices": [
      "Stack is healthy"
    ]
  },
  "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
}
```

---

## Deploy Started

URL: https://developers.cloud66.com/v3/webhooks/application/#deploy-started
Event type: stack.deploy.started
Related models: stack, deploy-context

This webhook is sent when a deployment begins. The payload includes stack information and deployment context with start details.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "stack.deploy.started",
  "stack": {
    "uid": "stack-550e8400-e29b-41d4-a716",
    "name": "my-production-app",
    "account_id": 12345,
    "git": "git@github.com:mycompany/myapp.git",
    "git_branch": "main",
    "environment": "production",
    "cloud": "aws",
    "fqdn": "myapp.example.com",
    "language": "ruby",
    "framework": "rails",
    "status": 1,
    "health": 3,
    "last_activity": "2024-02-15 14:30:00 UTC",
    "last_activity_iso": "2024-02-15T14:30:00Z",
    "maintenance_mode": false,
    "has_loadbalancer": true,
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-02-15T14:30:00Z",
    "deploy_directory": "/var/deploy/myapp",
    "cloud_status": "deployed",
    "backend": "kubernetes",
    "version": "4",
    "revision": "42",
    "is_busy": false,
    "account_name": "Production Team (team@example.com)",
    "is_cluster": false,
    "is_inside_cluster": true,
    "cluster_name": "production-cluster",
    "application_address": "https://myapp.example.com",
    "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
    "namespaces": [
      "myapp-production",
      "myapp-staging"
    ],
    "considerations": {
      "warnings": [],
      "notices": [
        "Stack is healthy"
      ]
    },
    "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
  },
  "deploy_context": {
    "id": 78901,
    "stack_id": 12345,
    "uid": "dc-a1b2c3d4e5f6",
    "type": "kubernetes",
    "created_at": "2024-02-15T09:30:00Z",
    "updated_at": "2024-02-15T10:15:00Z",
    "apply_infrastructure_upgrades": true,
    "apply_security_upgrades": true,
    "async_action_id": 55667,
    "authorized_by": "user-456",
    "auto_update_docker_versions": true,
    "deploy_strategy": "rolling",
    "deploy_type": "redeploy",
    "deployment_profile_id": 123,
    "force_infrastructure_upgrades": false,
    "github_deployment_id": 789012,
    "reboot_servers": false,
    "triggered_by": "john@example.com",
    "triggered_via": "webhook",
    "is_advanced": false,
    "scaler_id": 334,
    "take_server_snapshots": true
  }
}
```

---

## Stack Provision Failure

URL: https://developers.cloud66.com/v3/webhooks/application/#provision-fail
Event type: stack.provision.fail
Related models: stack, deploy-context

This webhook is sent when a stack provisioning operation fails. The payload includes the same stack information as successful provisioning but with failure details in the deploy context.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "stack.provision.fail",
  "uid": "stack-550e8400-e29b-41d4-a716",
  "name": "my-production-app",
  "account_id": 12345,
  "git": "git@github.com:mycompany/myapp.git",
  "git_branch": "main",
  "environment": "production",
  "cloud": "aws",
  "fqdn": "myapp.example.com",
  "language": "ruby",
  "framework": "rails",
  "status": 1,
  "health": 3,
  "last_activity": "2024-02-15 14:30:00 UTC",
  "last_activity_iso": "2024-02-15T14:30:00Z",
  "maintenance_mode": false,
  "has_loadbalancer": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:30:00Z",
  "deploy_directory": "/var/deploy/myapp",
  "cloud_status": "deployed",
  "backend": "kubernetes",
  "version": "4",
  "revision": "42",
  "is_busy": false,
  "account_name": "Production Team (team@example.com)",
  "is_cluster": false,
  "is_inside_cluster": true,
  "cluster_name": "production-cluster",
  "application_address": "https://myapp.example.com",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
  "namespaces": [
    "myapp-production",
    "myapp-staging"
  ],
  "considerations": {
    "warnings": [],
    "notices": [
      "Stack is healthy"
    ]
  },
  "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456",
  "deploy_context": {
    "id": 158,
    "triggered_by": "Cloudia Sixton",
    "triggered_via": "web",
    "started_at": "2024-01-01T11:55:00Z",
    "finished_at": "2024-01-01T12:00:00Z",
    "started_at_iso": "2024-01-01T11:55:00Z",
    "finished_at_iso": "2024-01-01T12:00:00Z",
    "outcome": "success",
    "git_hash": "f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0",
    "deploy_session": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
    "deploy_type": "build",
    "is_head": true,
    "is_live": true,
    "reverted": false,
    "reverted_by": null,
    "reverted_at": null,
    "reverted_at_iso": null
  }
}
```

---

## Stack Provision Success

URL: https://developers.cloud66.com/v3/webhooks/application/#provision-ok
Event type: stack.provision.ok
Related models: stack, deploy-context

This webhook is sent when a stack provisioning operation completes successfully. The payload includes complete stack information and detailed deployment context.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "stack.provision.ok",
  "uid": "stack-550e8400-e29b-41d4-a716",
  "name": "my-production-app",
  "account_id": 12345,
  "git": "git@github.com:mycompany/myapp.git",
  "git_branch": "main",
  "environment": "production",
  "cloud": "aws",
  "fqdn": "myapp.example.com",
  "language": "ruby",
  "framework": "rails",
  "status": 1,
  "health": 3,
  "last_activity": "2024-02-15 14:30:00 UTC",
  "last_activity_iso": "2024-02-15T14:30:00Z",
  "maintenance_mode": false,
  "has_loadbalancer": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:30:00Z",
  "deploy_directory": "/var/deploy/myapp",
  "cloud_status": "deployed",
  "backend": "kubernetes",
  "version": "4",
  "revision": "42",
  "is_busy": false,
  "account_name": "Production Team (team@example.com)",
  "is_cluster": false,
  "is_inside_cluster": true,
  "cluster_name": "production-cluster",
  "application_address": "https://myapp.example.com",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
  "namespaces": [
    "myapp-production",
    "myapp-staging"
  ],
  "considerations": {
    "warnings": [],
    "notices": [
      "Stack is healthy"
    ]
  },
  "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456",
  "deploy_context": {
    "id": 158,
    "triggered_by": "Cloudia Sixton",
    "triggered_via": "web",
    "started_at": "2024-01-01T11:55:00Z",
    "finished_at": "2024-01-01T12:00:00Z",
    "started_at_iso": "2024-01-01T11:55:00Z",
    "finished_at_iso": "2024-01-01T12:00:00Z",
    "outcome": "success",
    "git_hash": "f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0",
    "deploy_session": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
    "deploy_type": "build",
    "is_head": true,
    "is_live": true,
    "reverted": false,
    "reverted_by": null,
    "reverted_at": null,
    "reverted_at_iso": null
  }
}
```

---

## Stack Redeploy Failure

URL: https://developers.cloud66.com/v3/webhooks/application/#redeploy-fail
Event type: stack.redeploy.fail
Related models: stack, deploy-context

This webhook is sent when stack redeployment fails. The payload includes stack information and deploy context with failure details.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "stack.redeploy.fail",
  "stack": {
    "uid": "stack-550e8400-e29b-41d4-a716",
    "name": "my-production-app",
    "account_id": 12345,
    "git": "git@github.com:mycompany/myapp.git",
    "git_branch": "main",
    "environment": "production",
    "cloud": "aws",
    "fqdn": "myapp.example.com",
    "language": "ruby",
    "framework": "rails",
    "status": 1,
    "health": 3,
    "last_activity": "2024-02-15 14:30:00 UTC",
    "last_activity_iso": "2024-02-15T14:30:00Z",
    "maintenance_mode": false,
    "has_loadbalancer": true,
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-02-15T14:30:00Z",
    "deploy_directory": "/var/deploy/myapp",
    "cloud_status": "deployed",
    "backend": "kubernetes",
    "version": "4",
    "revision": "42",
    "is_busy": false,
    "account_name": "Production Team (team@example.com)",
    "is_cluster": false,
    "is_inside_cluster": true,
    "cluster_name": "production-cluster",
    "application_address": "https://myapp.example.com",
    "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
    "namespaces": [
      "myapp-production",
      "myapp-staging"
    ],
    "considerations": {
      "warnings": [],
      "notices": [
        "Stack is healthy"
      ]
    },
    "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
  },
  "deploy_context": {
    "id": 78901,
    "stack_id": 12345,
    "uid": "dc-a1b2c3d4e5f6",
    "type": "kubernetes",
    "created_at": "2024-02-15T09:30:00Z",
    "updated_at": "2024-02-15T10:15:00Z",
    "apply_infrastructure_upgrades": true,
    "apply_security_upgrades": true,
    "async_action_id": 55667,
    "authorized_by": "user-456",
    "auto_update_docker_versions": true,
    "deploy_strategy": "rolling",
    "deploy_type": "redeploy",
    "deployment_profile_id": 123,
    "force_infrastructure_upgrades": false,
    "github_deployment_id": 789012,
    "reboot_servers": false,
    "triggered_by": "john@example.com",
    "triggered_via": "webhook",
    "is_advanced": false,
    "scaler_id": 334,
    "take_server_snapshots": true
  }
}
```

---

## Redeploy Hook Failed

URL: https://developers.cloud66.com/v3/webhooks/application/#redeploy-hook-fail
Event type: stack.redeploy.hook.fail
Related models: stack

This webhook is sent when redeployment hooks fail to execute. The payload includes stack information and the failure reason.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "stack.redeploy.hook.fail",
  "uid": "stack-550e8400-e29b-41d4-a716",
  "name": "my-production-app",
  "account_id": 12345,
  "git": "git@github.com:mycompany/myapp.git",
  "git_branch": "main",
  "environment": "production",
  "cloud": "aws",
  "fqdn": "myapp.example.com",
  "language": "ruby",
  "framework": "rails",
  "status": 1,
  "health": 3,
  "last_activity": "2024-02-15 14:30:00 UTC",
  "last_activity_iso": "2024-02-15T14:30:00Z",
  "maintenance_mode": false,
  "has_loadbalancer": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:30:00Z",
  "deploy_directory": "/var/deploy/myapp",
  "cloud_status": "deployed",
  "backend": "kubernetes",
  "version": "4",
  "revision": "42",
  "is_busy": false,
  "account_name": "Production Team (team@example.com)",
  "is_cluster": false,
  "is_inside_cluster": true,
  "cluster_name": "production-cluster",
  "application_address": "https://myapp.example.com",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
  "namespaces": [
    "myapp-production",
    "myapp-staging"
  ],
  "considerations": {
    "warnings": [],
    "notices": [
      "Stack is healthy"
    ]
  },
  "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
}
```

---

## Stack Redeploy Success

URL: https://developers.cloud66.com/v3/webhooks/application/#redeploy-ok
Event type: stack.redeploy.ok
Related models: stack, deploy-context

This webhook is sent when stack redeployment completes successfully. The payload includes the same stack information as provisioning but with redeployment context.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "stack.redeploy.ok",
  "stack": {
    "uid": "stack-550e8400-e29b-41d4-a716",
    "name": "my-production-app",
    "account_id": 12345,
    "git": "git@github.com:mycompany/myapp.git",
    "git_branch": "main",
    "environment": "production",
    "cloud": "aws",
    "fqdn": "myapp.example.com",
    "language": "ruby",
    "framework": "rails",
    "status": 1,
    "health": 3,
    "last_activity": "2024-02-15 14:30:00 UTC",
    "last_activity_iso": "2024-02-15T14:30:00Z",
    "maintenance_mode": false,
    "has_loadbalancer": true,
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-02-15T14:30:00Z",
    "deploy_directory": "/var/deploy/myapp",
    "cloud_status": "deployed",
    "backend": "kubernetes",
    "version": "4",
    "revision": "42",
    "is_busy": false,
    "account_name": "Production Team (team@example.com)",
    "is_cluster": false,
    "is_inside_cluster": true,
    "cluster_name": "production-cluster",
    "application_address": "https://myapp.example.com",
    "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
    "namespaces": [
      "myapp-production",
      "myapp-staging"
    ],
    "considerations": {
      "warnings": [],
      "notices": [
        "Stack is healthy"
      ]
    },
    "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
  },
  "deploy_context": {
    "id": 78901,
    "stack_id": 12345,
    "uid": "dc-a1b2c3d4e5f6",
    "type": "kubernetes",
    "created_at": "2024-02-15T09:30:00Z",
    "updated_at": "2024-02-15T10:15:00Z",
    "apply_infrastructure_upgrades": true,
    "apply_security_upgrades": true,
    "async_action_id": 55667,
    "authorized_by": "user-456",
    "auto_update_docker_versions": true,
    "deploy_strategy": "rolling",
    "deploy_type": "redeploy",
    "deployment_profile_id": 123,
    "force_infrastructure_upgrades": false,
    "github_deployment_id": 789012,
    "reboot_servers": false,
    "triggered_by": "john@example.com",
    "triggered_via": "webhook",
    "is_advanced": false,
    "scaler_id": 334,
    "take_server_snapshots": true
  }
}
```

---

## Stack Score Changed

URL: https://developers.cloud66.com/v3/webhooks/application/#stackscore-changed
Event type: stack.stackscore.changed
Related models: stack

This webhook is sent when the stack score changes. The payload includes stack information and a diff object with details of what changed in the score.

### Payload

```json
{
  "timestamp": 1757011079,
  "event_type": "stack.stackscore.changed",
  "uid": "stack-550e8400-e29b-41d4-a716",
  "name": "my-production-app",
  "account_id": 12345,
  "git": "git@github.com:mycompany/myapp.git",
  "git_branch": "main",
  "environment": "production",
  "cloud": "aws",
  "fqdn": "myapp.example.com",
  "language": "ruby",
  "framework": "rails",
  "status": 1,
  "health": 3,
  "last_activity": "2024-02-15 14:30:00 UTC",
  "last_activity_iso": "2024-02-15T14:30:00Z",
  "maintenance_mode": false,
  "has_loadbalancer": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:30:00Z",
  "deploy_directory": "/var/deploy/myapp",
  "cloud_status": "deployed",
  "backend": "kubernetes",
  "version": "4",
  "revision": "42",
  "is_busy": false,
  "account_name": "Production Team (team@example.com)",
  "is_cluster": false,
  "is_inside_cluster": true,
  "cluster_name": "production-cluster",
  "application_address": "https://myapp.example.com",
  "configstore_namespace": "550e8400-e29b-41d4-a716-446655440000",
  "namespaces": [
    "myapp-production",
    "myapp-staging"
  ],
  "considerations": {
    "warnings": [],
    "notices": [
      "Stack is healthy"
    ]
  },
  "redeploy_hook": "https://hooks.cloud66.com/stacks/redeploy/abc123def456"
}
```
