This method allows you to view your repository details.

**Tip**: You can explore and test this endpoint interactively using our [OpenAPI documentation](https://api.deployhq.com/docs).

## URL

```plaintext
/projects/<project>/repository
```

Replace `<project>` with either the `permalink` or `identifier` of the project.

## HTTP Method

```
GET
```

## Supported Parameters

None

## Example cURL Request

```
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
https://test.deployhq.com/projects/project/repository
```

## Example Response

```json
{
    "scm_type": "git",
    "url": "git@github.com:danquinney/test.git",
    "port": null,
    "username": null,
    "branch": "master",
    "cached": false,
    "hosting_service": {
        "name": "GitHub",
        "url": "http://github.com",
        "tree_url": "https://github.com/danquinney/test/tree/master",
        "commits_url": "https://github.com/danquinney/test/commits/master"
    }
}
```