# Web service (HTTP API)

> A system you call over the web: its address and how to sign in. Flows can call it with the Call an API step.

Source: https://docs.go-lumen.ai/de/reference/connections/http

## Auf einen Blick

| Eigenschaft | Wert |
| --- | --- |
| **Class name** | `http` |
| **Resource** | ConnectorClass (`lumen.ai/v1alpha1`); a workspace creates a Connector with `classRef: {name: http}` |
| **Driver** | `http` |
| **Provides** | `http` |
| **Mode** | pull (Lumen reaches out to the system) |
| **Credential keys** | `token`, `username`, `password`, `key` (kept in a Secret, never in config) |

A workspace adds this connection on the Connections page or with `lumen connect`; credentials are kept in a Secret, never in the flow.

## Einstellungen

Wird unter `config:` im Connector gesetzt.

| Einstellung | Typ | Standardwert | Beschreibung |
| --- | --- | --- | --- |
| `auth` | string | `"none"` | The key or password is kept out of sight, apart from the connection. (one of none, bearer, basic, apiKeyHeader, apiKeyQuery) |
| `authName` | string |  | For an API key, the header (X-Api-Key) or the address parameter (api\_key) it goes in. (maxLength 64) |
| `baseURL` (erforderlich) | string |  | Where the API lives, for example https://api.example.com/v1. Calls add their path to it. (minLength 8) |
| `defaultHeaders` | map of string |  | One per line, as Name: value. Never put a key or a password here. |

Das vollständige JSON Schema dieser Einstellungen: [http.schema.json](https://docs.go-lumen.ai/schemas/connections/http.schema.json).

## Verwendung

```yaml title="connector.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
  name: my-http
  namespace: tenant-acme
spec:
  classRef: {name: http}
  config: {}
```
