*Cloud*

# The endpoint object

One way into a service: a generated public HTTPS address, a public TCP port, a private address only the project's services can reach, or a custom domain.

## Attributes

- `id` (string): The endpoint's id.
- `type` (string): public_http, public_tcp or private.
- `scope` (string): service (load balanced) or replica (one replica).
- `address` (string): The host name.
- `url` (string): The full address, for HTTP endpoints.
- `port` (number): The container port it forwards to.
- `public_port` (number): For public_tcp: the port on the public address, else null.
- `custom` (boolean): True for a custom domain.

## Example

```json
{
  "data": {
    "id": "dom_01jdk5t3y5u7i9o1p3a5s7d9fg",
    "type": "public_http",
    "scope": "service",
    "address": "api-x8ca.dispracloud.app",
    "url": "https://api-x8ca.dispracloud.app",
    "port": 3000,
    "public_port": 24117,
    "custom": false
  }
}
```

## Endpoints

- `PATCH` [Change an endpoint's port](https://docs.dispralabs.com/api/change-an-endpoint-s-port.md)
- `POST` [Create an endpoint](https://docs.dispralabs.com/api/create-an-endpoint.md)
- `DELETE` [Delete an endpoint](https://docs.dispralabs.com/api/delete-an-endpoint.md)
- `GET` [List endpoints](https://docs.dispralabs.com/api/list-endpoints.md)
- `POST` [Regenerate an endpoint](https://docs.dispralabs.com/api/regenerate-an-endpoint.md)
