# Retrieve WoT Thing Directory headers

`HEAD /.well-known/wot`

Returns headers for the WoT Thing Directory endpoint without a response body.
Supports the same authentication and configuration as the GET method.

Authentication (security requirement alternatives):

```json
[
  {
    "OpenIDConnect": []
  },
  {
    "NginxBasic": []
  },
  {
    "Bearer": []
  }
]
```

- OpenIDConnect: openIdConnect. OpenID Connect Discovery URL. The placeholder is replaced by Swagger UI when configured.
- NginxBasic: http (basic). Eclipse Ditto sandbox demo user (demo1 ... demo9) + password (demo)
- Bearer: http (bearer). A JSON Web Token issued by a supported OAuth 2.0 Identity Provider.

Responses:

- 200: The WoT Thing Directory headers were successfully retrieved.

- 401: The request could not be completed due to missing authentication (when authentication is required).

## Examples

### cURL

```bash
curl -X HEAD 'https://ditto.eclipseprojects.io/.well-known/wot' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('https://ditto.eclipseprojects.io/.well-known/wot', {
  method: 'HEAD',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.request(
    'HEAD',
    'https://ditto.eclipseprojects.io/.well-known/wot',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
    },
)
print(response.text)
```
