Docs Navigation

Projects

User's projects

List all projects that user has access to and their current status.

GET /api/v1/projects

Response

Status: 200 OK

[
   {
      "id": 61,
      "hash_id": "3f1004b8343faabda63d441734526c854380ab89",
      "name": "testapp-sphinx",
      "owner": "renderedtext",
      "html_url": "https://semaphoreci.com/darkofabijan/testapp-sphinx",
      "created_at": "2012-09-04T11:53:22Z",
      "updated_at": "2012-09-04T12:01:17Z",
      "branches": [
         {
            "branch_name": "master",
            "branch_url": "https://semaphoreci.com/projects/61/branches/85",
            "branch_status_url": "https://semaphoreci.com/api/v1/projects/3f1004b8343faabda63d441734526c854380ab89/85/status?auth_token=Yds3w6o26FLfJTnVK2y9",
            "branch_history_url": "https://semaphoreci.com/api/v1/projects/3f1004b8343faabda63d441734526c854380ab89/85?auth_token=Yds3w6o26FLfJTnVK2y9",
            "project_name": "testapp-sphinx",
            "build_url": "https://semaphoreci.com/projects/61/branches/85/builds/1",
            "build_info_url": "https://semaphoreci.com/api/v1/projects/3f1004b8343faabda63d441734526c854380ab89/85/builds/1?auth_token=Yds3w6o26FLfJTnVK2y9",
            "build_number": 1,
            "result": "passed",
            "started_at": "2012-09-04T11:55:07Z",
            "finished_at": "2012-09-04T12:01:16Z"
         }
      ],
      "servers": [
         {
            "project_name": "heroku-deploy-test",
            "server_name": "server-heroku-master-automatic-1",
            "number": 1,
            "result": "passed",
            "created_at": "2013-07-19T14:57:18+02:00",
            "updated_at": "2013-07-19T14:58:49+02:00",
            "started_at": "2013-07-19T14:57:24+02:00",
            "finished_at": "2013-07-19T14:58:49+02:00",
            "html_url": "https://semaphoreci.com/projects/2420/servers/80/deploys/1",
            "deploy_url": "https://semaphoreci.com/api/v1/projects/dccc4ab03f2b47167cac51553d58e468c6750c2c/servers/80/deploys/1?auth_token=qH36J7zzMfAGG8xmF72f",
            "deploy_log_url": "https://semaphoreci.com/api/v1/projects/dccc4ab03f2b47167cac51553d58e468c6750c2c/servers/80/deploys/1/log?auth_token=qH36J7zzMfAGG8xmF72f",
            "build_url": "https://semaphoreci.com/api/v1/projects/dccc4ab03f2b47167cac51553d58e468c6750c2c/58394/builds/5?auth_token=qH36J7zzMfAGG8xmF72f",
            "build_html_url": "https://semaphoreci.com/projects/2420/branches/58394/builds/5",
            "commit": {
               "id": "43ddb7516ecc743f0563abd7418f0bd3617348c4",
               "url": "https://github.com/rastasheep/heroku-deploy-test/commit/43ddb7516ecc743f0563abd7418f0bd3617348c4",
               "author_name": "Aleksandar Diklic",
               "author_email": "rastasheep3@gmail.com",
               "message": "One more time",
               "timestamp": "2013-07-19T14:56:25+02:00"
            }
         }
      ]
   },
   {
      "id": 63,
      "hash_id": "649e584dc507ca4b73e1374d3125ef0b567a949c",
      "name": "testapp-mongodb",
      "owner": "renderedtext",
      "html_url": "https://semaphoreci.com/darkofabijan/testapp-mongodb",
      "created_at": "2012-09-14T10:53:38Z",
      "updated_at": "2012-09-14T11:16:51Z",
      "branches": [
         {
            "branch_name": "mongoid3",
            "branch_url": "https://semaphoreci.com/projects/63/branches/89",
            "branch_status_url": "https://semaphoreci.com/api/v1/projects/3f1004b8343faabda63d441734526c854380ab89/85/status?auth_token=Yds3w6o26FLfJTnVK2y9",
            "branch_history_url": "https://semaphoreci.com/api/v1/projects/3f1004b8343faabda63d441734526c854380ab89/85?auth_token=Yds3w6o26FLfJTnVK2y9",
            "project_name": "testapp-mongodb",
            "build_url": "https://semaphoreci.com/projects/63/branches/89/builds/3",
            "build_info_url": "https://semaphoreci.com/api/v1/projects/3f1004b8343faabda63d441734526c854380ab89/85/builds/1?auth_token=Yds3w6o26FLfJTnVK2y9",
            "build_number": 3,
            "result": "passed",
            "started_at": "2012-09-14T11:11:39Z",
            "finished_at": "2012-09-14T11:16:51Z"
         }
      ],
      "servers": []
   }
]

A build's result can be either "passed", "failed", "stopped" or "pending".

Semaphore Docs are open source — Edit on GitHub

Newsletter

Occasional lightweight product and blog updates. Unsubscribe at any time.

2009-2017 © Rendered Text. All rights reserved. Terms of Service, Privacy policy, Security.