# Zilfu — Accounts

3 operations. Schemas referenced below are documented at https://zilfu.app/docs/api/schemas.md.

## Servers

- `https://zilfu.app/api`

## Operations

### List accounts

- **Method:** `GET`
- **Path:** `/spaces/{space}/accounts`
- **Tags:** Account

#### Parameters

##### `space` required

- **In:** `path`

The space ID

`integer`

#### Responses

##### Status: 200 Array of \`AccountResource\`

###### Content-Type: application/json

- **`data` (required)**

  `array`

  **Items:**

  - **`avatar` (required)**

    `string | null`

  - **`disconnected_at` (required)**

    `string`

  - **`display_name` (required)**

    `string`

  - **`handler` (required)**

    `string`

  - **`id` (required)**

    `integer`

  - **`is_active` (required)**

    `boolean`

  - **`profile_url` (required)**

    `string`

  - **`social` (required)**

    `string`

**Example:**

```json
{
  "data": [
    {
      "id": 1,
      "social": "",
      "display_name": "",
      "handler": "",
      "profile_url": "",
      "avatar": null,
      "is_active": true,
      "disconnected_at": ""
    }
  ]
}
```

##### Status: 401 Unauthenticated

###### Content-Type: application/json

- **`message` (required)**

  `string` — Error overview.

**Example:**

```json
{
  "message": ""
}
```

##### Status: 403 Authorization error

###### Content-Type: application/json

- **`message` (required)**

  `string` — Error overview.

**Example:**

```json
{
  "message": ""
}
```

##### Status: 404 Not found

###### Content-Type: application/json

- **`message` (required)**

  `string` — Error overview.

**Example:**

```json
{
  "message": ""
}
```

### List Pinterest boards

- **Method:** `GET`
- **Path:** `/spaces/{space}/accounts/{account}/boards`
- **Tags:** Account

#### Parameters

##### `space` required

- **In:** `path`

The space ID

`integer`

##### `account` required

- **In:** `path`

The account ID

`integer`

#### Responses

##### Status: 200

###### Content-Type: application/json

- **`data` (required)**

  `array`

  **Items:**

  - **`description` (required)**

    `string | null`

  - **`id` (required)**

    `string`

  - **`image` (required)**

    `string | null`

  - **`name` (required)**

    `string`

**Example:**

```json
{
  "data": [
    {
      "id": "",
      "name": "",
      "description": null,
      "image": null
    }
  ]
}
```

##### Status: 401 Unauthenticated

###### Content-Type: application/json

- **`message` (required)**

  `string` — Error overview.

**Example:**

```json
{
  "message": ""
}
```

##### Status: 403 Authorization error

###### Content-Type: application/json

- **`message` (required)**

  `string` — Error overview.

**Example:**

```json
{
  "message": ""
}
```

##### Status: 404 Not found

###### Content-Type: application/json

- **`message` (required)**

  `string` — Error overview.

**Example:**

```json
{
  "message": ""
}
```

### Disconnect an account

- **Method:** `DELETE`
- **Path:** `/spaces/{space}/accounts/{account}`
- **Tags:** Account

#### Parameters

##### `space` required

- **In:** `path`

The space ID

`integer`

##### `account` required

- **In:** `path`

The account ID

`integer`

#### Responses

##### Status: 200

###### Content-Type: application/json

**Example:**

```json
{}
```

##### Status: 401 Unauthenticated

###### Content-Type: application/json

- **`message` (required)**

  `string` — Error overview.

**Example:**

```json
{
  "message": ""
}
```

##### Status: 403 Authorization error

###### Content-Type: application/json

- **`message` (required)**

  `string` — Error overview.

**Example:**

```json
{
  "message": ""
}
```

##### Status: 404 Not found

###### Content-Type: application/json

- **`message` (required)**

  `string` — Error overview.

**Example:**

```json
{
  "message": ""
}
```
