Header

View an existing project via API

This method allows you to view an existing project.

URL

/projects/<project>

Replace <project> with the permalink 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://atech.deployhq.com/projects/hgtest

Example Response

[
  {
    "name":"hgtest",
    "permalink":"hgtest",
    "zone":"us_east",
    "public_key":"ssh-rsa AAAB3NzaC1yc2EAAAADAQAN DeployHQ.com Key for hgtest",
    "repository":
      {
        "scm_type":"mercurial",
        "url":"ssh://hg@codebasehq.com/adamw/test/hgtest.hg",
        "port":null,
        "username":null,
        "branch":"default",
        "cached":true,
        "hosting_service":
          {
            "name":"Codebase",
            "url":"http://www.codebasehq.com",
            "tree_url":"https://adamw.codebasehq.com/projects/test/repositories/hgtest/tree/default",
            "commits_url":"https://adamw.codebasehq.com/projects/test/repositories/hgtest/commits/default"
          }
      },
      "last_deployed_at": null,
      "auto_deploy_url": "https://adamw.deployhq.com/projects/test/auto-deploy-url"
  }
]
Tree

Proudly powered by Katapult. Running on 100% renewable energy.