This method allows you to view an existing server.

**Tip**: You can explore and test this endpoint interactively using our [OpenAPI documentation](https://api.deployhq.com/docs).

## URL

```plaintext
/projects/<project>/servers/<identifier>
```

* Replace `<project>` with either the `permalink` or `identifier` of the project.
* Replace `<identifier>` with the `identifier` of the server.

## HTTP Method

```http
GET
```

## Supported Parameters

None

## Example cURL Request

```bash
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user user@example.com:your-api-key \
https://test.deployhq.com/projects/my-project/servers/12341234-5678-5678-12341234
```

## Example Response

```json
{
  "id":884734,
  "identifier":"12341234-5678-5678-12341234",
  "name":"server",
  "protocol_type":"ssh",
  "server_path":"/home/adam/myserver",
  "last_revision":"eef3b8abaf7a4d63be748d763076dfda6a5d784f",
  "preferred_branch":"master",
  "branch":"",
  "notify_email":"",
  "server_group_identifier":nil,
  "auto_deploy":false, 
  "hostname":"my.server.io",
  "username":"adam",
  "port":"22",
  "use_ssh_keys":true,
"host_key":"AAAAB3NzaC1yc2EAAAADAQABAAABAQDMPBryafyuTgm1NTY+iTWahUin4DtYB4pudphJdRvkVmpwL06VlYqupHh0CGjagicTbSie8bA/ekPvIgROST212um3W2hlP2YqQjoulucT0l0cONN8dXZRN87AqNo4nP2sgodt2HhSqfShFkryHpFQK53vOJOGalBj6hxGvFA0XLjZl7FqbWFYwYcW5egeeSYaY+07YYPHyyhBklYQ/sSQtT/Q4E9sPs4yr/zDkouhzSYHaVrxRnA2tQYglBqvHJ2Jph+e5ylgTJh4BgFwnKGMxLYuxmGOJ6F3LTvanNvu1qFL40oZ61T7WY5gdu85bp06b+NUI4no35PiNyK89vkB",
  "unlink_before_upload":false,
  "environment": "staging",
  "url": "https://test.deployhq.com/projects/my-project/servers/12341234-5678-5678-12341234"
}
```