# API-Referenz: Support

Support: jede Operation der API v1 mit Scope, Parametern, Beispielen in curl, JavaScript und Python sowie Antworten. Authentifizierung, Fehler, Paginierung, Ratenlimits und Idempotenz stehen in der [Übersicht der API-Referenz](/docs/api-reference); siehe auch [SDKs](/docs/sdks) und die [Kommandozeile](/docs/cli).

> Mit deinem Schlüssel ausprobieren: Lege in der Konsole einen API-Schlüssel an, führe `export APIDLY_API_KEY=...` im Terminal aus und füge dann ein curl-Beispiel unten ein. Die Beispielwerte sind nur Illustrationen. Auf dieser Seite gibt es kein Feld für einen Schlüssel.

Die Beschreibungen der Operationen und Felder stammen aus der API-Definition und sind auf Englisch.

| Operation | Erforderlicher Scope | Kurzbeschreibung |
| --- | --- | --- |
| `GET /support/tickets` | `read` | Support-Tickets der Organisation, neueste Aktivität zuerst |
| `POST /support/tickets` | `servers` | Ein Support-Ticket eröffnen |
| `GET /support/tickets/{id}` | `read` | Ein Ticket mit seinen Nachrichten, älteste zuerst |
| `POST /support/tickets/{id}/messages` | `servers` | Auf ein Ticket antworten |
| `POST /support/tickets/{id}/close` | `servers` | Ein Ticket schließen |

### GET /support/tickets

Support-Tickets der Organisation, neueste Aktivität zuerst

**Erforderlicher Scope:** `read`

**Parameter**

| Name | In | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | nein |  |
| `cursor` | query | string | nein |  |
| `status` | query | `open` \| `pending` \| `closed` | nein |  |

**Beispielanfrage (curl)**

```bash
curl "https://apidly.com/api/v1/support/tickets?limit=20" \
  -H "Authorization: Bearer $APIDLY_API_KEY"
```

**JavaScript (SDK)**

```js
await apidly.support.listTickets({ limit: 20 });
```

**Python (SDK)**

```python
client.support.list_tickets()
```

**Kommandozeilenwerkzeug:** `apidly support` ([CLI-Referenz](/docs/cli))

**Beispielantwort** (200)

```json
{
  "tickets": [
    {
      "id": "example",
      "subject": "example",
      "category": "example",
      "status": "open",
      "priority": "example",
      "openedBy": "example",
      "createdAt": "2026-11-21T10:00:00.000Z",
      "updatedAt": "2026-11-21T10:00:00.000Z"
    }
  ],
  "nextCursor": "example"
}
```

Fehlerstatus: `400`, `401`, `403`, `429`.

### POST /support/tickets

Ein Support-Ticket eröffnen

Staff answer by e-mail and in the console. `priority` is `low`, `normal` or `high`. `serverId` is added to the text as the related server.

**Erforderlicher Scope:** `servers`

**Anfragekörper**

| Name | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `subject` | string | ja |  |
| `category` | string | nein |  |
| `priority` | `low` \| `normal` \| `high` | nein |  |
| `message` | string | ja |  |
| `serverId` | string | nein |  |

**Beispielanfrage (curl)**

```bash
curl -X POST "https://apidly.com/api/v1/support/tickets" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subject":"example","message":"example"}'
```

**JavaScript (SDK)**

```js
await apidly.support.createTicket({
  subject: "example",
  message: "example"
});
```

**Python (SDK)**

```python
client.support.create_ticket(subject="example", message="example")
```

**Kommandozeilenwerkzeug:** `apidly support` ([CLI-Referenz](/docs/cli))

**Beispielantwort** (201)

```json
{
  "ticket": {
    "id": "example",
    "subject": "example",
    "category": "example",
    "status": "open",
    "priority": "example",
    "openedBy": "example",
    "createdAt": "2026-11-21T10:00:00.000Z",
    "updatedAt": "2026-11-21T10:00:00.000Z"
  }
}
```

Fehlerstatus: `400`, `401`, `403`, `429`.

### GET /support/tickets/{id}

Ein Ticket mit seinen Nachrichten, älteste zuerst

**Erforderlicher Scope:** `read`

**Parameter**

| Name | In | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- | --- |
| `id` | path | string | ja |  |

**Beispielanfrage (curl)**

```bash
curl "https://apidly.com/api/v1/support/tickets/support_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY"
```

**JavaScript (SDK)**

```js
await apidly.support.getTicket("support_example");
```

**Python (SDK)**

```python
client.support.get_ticket("support_example")
```

**Kommandozeilenwerkzeug:** `apidly support` ([CLI-Referenz](/docs/cli))

**Beispielantwort** (200)

```json
{
  "ticket": {
    "key": null
  }
}
```

Fehlerstatus: `401`, `403`, `404`, `429`.

### POST /support/tickets/{id}/messages

Auf ein Ticket antworten

Reopens the ticket. 409 `ticket_closed` on a closed ticket.

**Erforderlicher Scope:** `servers`

**Parameter**

| Name | In | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- | --- |
| `id` | path | string | ja |  |

**Anfragekörper**

| Name | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja |  |

**Beispielanfrage (curl)**

```bash
curl -X POST "https://apidly.com/api/v1/support/tickets/support_example/messages" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message":"example"}'
```

**JavaScript (SDK)**

```js
await apidly.support.reply("support_example", "example");
```

**Python (SDK)**

```python
client.support.reply("support_example", message="example")
```

**Kommandozeilenwerkzeug:** `apidly support` ([CLI-Referenz](/docs/cli))

**Beispielantwort** (201)

```json
{
  "message": {
    "key": null
  }
}
```

Fehlerstatus: `400`, `401`, `403`, `404`, `409`, `429`.

### POST /support/tickets/{id}/close

Ein Ticket schließen

**Erforderlicher Scope:** `servers`

**Parameter**

| Name | In | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- | --- |
| `id` | path | string | ja |  |

**Beispielanfrage (curl)**

```bash
curl -X POST "https://apidly.com/api/v1/support/tickets/support_example/close" \
  -H "Authorization: Bearer $APIDLY_API_KEY"
```

**JavaScript (SDK)**

```js
await apidly.support.close("support_example");
```

**Python (SDK)**

```python
client.support.close("support_example")
```

**Kommandozeilenwerkzeug:** `apidly support` ([CLI-Referenz](/docs/cli))

**Beispielantwort** (200)

```json
{
  "ok": false
}
```

Fehlerstatus: `401`, `403`, `404`, `429`.
