# WHEP

```
POST 
/api/whep/:streamAccountId/:streamName
```

WHEP endpoint for subscribers. Request body is SDP Offer. Response body will contain SDP Answer. Location header contains remote WHEP endpoint url.

All errors are returned as plain text. If you send a request with the Accept header you must allow both mime types `application/sdp, text/plain`.

## Request

## Responses

**201**

Success

**400**

Bad Request

**401**

Unauthorized

**409**

Conflict

**500**

Server Error
