# Server

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

## Server Back Online

URL: https://developers.cloud66.com/v3/webhooks/server/#backon
Event type: server.backon
Related models: agent

This webhook is sent when a previously offline server comes back online. The payload structure is the same as server.stopped but indicates the server is now responding.

### Payload

```json
{
  "timestamp": 1640995200,
  "event_type": "server.backon",
  "uid": "550e8400-e29b-41d4-a716-446655440001",
  "status": 1,
  "server": "550e8400-e29b-41d4-a716-446655440001",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:20:00Z",
  "created_at_iso": "2024-01-15T10:30:00Z",
  "updated_at_iso": "2024-02-15T14:20:00Z"
}
```

---

## Server IP Change Failed

URL: https://developers.cloud66.com/v3/webhooks/server/#ip-change-fail
Event type: server.ip.change.fail
Related models: agent

This webhook is sent when an IP address change operation fails for a server. The payload includes server information and the new_ext_ipv4 field containing the IP address that failed to be assigned.

### Payload

```json
{
  "timestamp": 1640995200,
  "event_type": "server.ip.change.fail",
  "uid": "550e8400-e29b-41d4-a716-446655440001",
  "status": 1,
  "server": "550e8400-e29b-41d4-a716-446655440001",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:20:00Z",
  "created_at_iso": "2024-01-15T10:30:00Z",
  "updated_at_iso": "2024-02-15T14:20:00Z",
  "new_ext_ipv4": "111.111.111.111"
}
```

---

## Server Stopped

URL: https://developers.cloud66.com/v3/webhooks/server/#stopped
Event type: server.stopped
Related models: agent

This webhook is sent when a server stops responding or becomes unavailable. This typically indicates infrastructure issues, server crashes, or network connectivity problems.

### Payload

```json
{
  "timestamp": 1640995200,
  "event_type": "server.stopped",
  "uid": "550e8400-e29b-41d4-a716-446655440001",
  "status": 1,
  "server": "550e8400-e29b-41d4-a716-446655440001",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-02-15T14:20:00Z",
  "created_at_iso": "2024-01-15T10:30:00Z",
  "updated_at_iso": "2024-02-15T14:20:00Z"
}
```
