Applications

APIs for managing applications are currently available for developers to preview. During the preview period, the API may change without advance notice.

Retrieve an application

GET /apps/:id

Returns an application information based upon the application id supplied.

Curl request

curl -H "Content-Type: application/json" -H "x-auth-token: <API Token>" --request GET https://api.codemagic.io/apps/<app_id>

Response

{
   "application":{
      "_id":"5d85eaa0e941e00019e81bc2",
      "appName":"counter_flutter",
      "branches":[
         "master"
      ],
      "workflowIds":[
         "5d85f242e941e00019e81bd2"
      ],
      "workflows":{
         "5d85f242e941e00019e81bd2":{
            "name":"Android Workflow"
         }
      }
   }
}

Add a new application

POST /apps

Adds a Git repository to the applications list.

Parameters

NameTypeDescription
repositoryUrlstringRequired. SSH or HTTPS URL for cloning the repository.

Example

{
    "repositoryUrl": "git@github.com:my-organization/my-repo.git"
}

Response

{
    "_id": "5c9c064185dd2310123b8e96",
    "appName": "my-repo"
}