---
title: Pods
---

## List Pods
**Endpoint**: `GET /agent/v0/pods`
**Authentication**: `Authorization: Bearer <token>`
### Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `ascending` | query | boolean | No |  |
| `limit` | query | integer | No |  |
| `page_token` | query | string | No |  |

### Responses

#### `200`

Response with status 200

Content-Type: `application/json`

##### Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `count` | integer | Yes | Number of items returned. |
| `limit` | integer | No | Limit of number of items returned. |
| `next_page_token` | string | No | Page token for pagination. |
| `pods` | array\<object\> | Yes | Ordered by `created_at` descending. |

##### Example

```json
{
  "count": 0,
  "limit": 0,
  "next_page_token": "<string>",
  "pods": [
    {
      "client_id": "<string>",
      "created_at": "2026-01-01T00:00:00Z",
      "name": "<string>",
      "pod_id": "<string>",
      "updated_at": "2026-01-01T00:00:00Z"
    }
  ]
}
```


## Create Pod
**Endpoint**: `POST /agent/v0/pods`
**Authentication**: `Authorization: Bearer <token>`
### Request Body
Content-Type: `application/json`
#### Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `client_id` | string | No | Client ID of pod. |
| `name` | string | No | Name of pod. |

#### Example

```json
{
  "client_id": "<string>",
  "name": "<string>"
}
```

### Responses

#### `200`

Response with status 200

Content-Type: `application/json`

##### Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `client_id` | string | No | Client ID of pod. |
| `created_at` | string | Yes | Time at which pod was created. |
| `name` | string | Yes | Name of pod. |
| `pod_id` | string | Yes | ID of pod. |
| `updated_at` | string | Yes | Time at which pod was last updated. |

##### Example

```json
{
  "client_id": "<string>",
  "created_at": "2026-01-01T00:00:00Z",
  "name": "<string>",
  "pod_id": "<string>",
  "updated_at": "2026-01-01T00:00:00Z"
}
```

#### `400`

Error response with status 400

Content-Type: `application/json`

##### Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `errors` | object | Yes | Validation errors. |
| `name` | string | Yes | Name of error. |

##### Example

```json
{
  "errors": null,
  "name": "<string>"
}
```


## Get Pod
**Endpoint**: `GET /agent/v0/pods/{pod_id}`
**Authentication**: `Authorization: Bearer <token>`
### Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `pod_id` | path | string | Yes |  |

### Responses

#### `200`

Response with status 200

Content-Type: `application/json`

##### Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `client_id` | string | No | Client ID of pod. |
| `created_at` | string | Yes | Time at which pod was created. |
| `name` | string | Yes | Name of pod. |
| `pod_id` | string | Yes | ID of pod. |
| `updated_at` | string | Yes | Time at which pod was last updated. |

##### Example

```json
{
  "client_id": "<string>",
  "created_at": "2026-01-01T00:00:00Z",
  "name": "<string>",
  "pod_id": "<string>",
  "updated_at": "2026-01-01T00:00:00Z"
}
```

#### `404`

Error response with status 404

Content-Type: `application/json`

##### Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `message` | string | Yes | Error message. |
| `name` | string | Yes | Name of error. |

##### Example

```json
{
  "message": "<string>",
  "name": "<string>"
}
```


## Delete Pod
**Endpoint**: `DELETE /agent/v0/pods/{pod_id}`
**Authentication**: `Authorization: Bearer <token>`
### Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `pod_id` | path | string | Yes |  |

### Responses

#### `200`

Successful response

#### `404`

Error response with status 404

Content-Type: `application/json`

##### Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `message` | string | Yes | Error message. |
| `name` | string | Yes | Name of error. |

##### Example

```json
{
  "message": "<string>",
  "name": "<string>"
}
```

