Payload Information

When any of the following events occur, the Appery.io platform will perform a POST data request to the Webhook URL. In this document, you’ll find the payload examples for every Webhook call.

App version created

Invoked when a new app version is created.

Event ID: PROJECT_VERSION_CREATE.

{
    "project": {
        "guid": "372f4a93-e8ce-46ac-a111-44b6c3f476f4",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2013-11-27T05:08:26-08:00",
        "edited_at": "2013-11-29T08:06:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "version": {
        "name": "v1.0.0",
        "created_at": "2014-01-20T05:08:26-08:00",
        "author": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "created_at": "2014-01-20T05:08:26-08:00",
    "created_by": {
        "name": "Someone's name",
        "email": "[email protected]"
    }
}

The RequestBin shows the following Webhook:

RequestBin information.RequestBin information.

RequestBin information.

App Version Restored

Invoked when an app version is restored.

Event ID: PROJECT_VERSION_RESTORE

{
    "project": {
        "guid": "372f4a93-e8ce-46ac-a111-44b6c3f476f4",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2013-11-27T05:08:26-08:00",
        "edited_at": "2013-11-29T08:06:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "version": {
        "name": "v1.0.0",
        "created_at": "2014-01-20T05:08:26-08:00",
        "author": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "removed_at": "2014-02-20T05:08:26-08:00",
    "removed_by": {
        "name": "Someone's name",
        "email": "[email protected]"
    }
}

You will then receive as similar RequestBin as that of the above Webhook.

Published on Appery.io success

Invoked when an app is published as HTML app to a URL.

Event ID: PROJECT_PUBLISH_APPERY_SUCCESS.

{
    "project": {
        "guid": "04018fec-ba49-4776-bf2e-60ac046f1683",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2014-01-15T05:08:26-08:00",
        "edited_at": "2014-01-17T08:06:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "hosting": {
        "published_at": "2013-11-30T05:08:26-08:00",
        "type": "appery.io",
        "url": "http://abc8821.app.appery.io",
        "publisher": {
            "name": "My Name",
            "email": "[email protected]"
        }
    }
}

Android Binary Build Start

Invoked when a binary build for Android starts.

Event ID: PROJECT_BUILD_ANDROID_START.

{
    "project": {
        "guid": "372f4a93-e8ce-46ac-a111-44b6c3f476f4",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2013-11-27T05:08:26-08:00",
        "edited_at": "2013-11-29T08:26:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "build": {
        "started_at": "2013-11-30T05:08:26-08:00",
        "finished_at": null,
        "status": "started",
        "platform": "android",
        "file_url": null,
        "initiator": {
            "name": "My Name",
            "email": "[email protected]"
        }
    }
}

Android Binary Build Success

Invoked when a binary build for Android is finished.

Event ID: PROJECT_BUILD_ANDROID_SUCCESS.

{
    "project": {
        "guid": "04018fec-ba49-4776-bf2e-60ac046f1683",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2014-01-15T05:08:26-08:00",
        "edited_at": "2014-01-17T08:06:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "build": {
        "finished_at": "2014-01-17T05:09:29-08:00",
        "status": "success",
        "platform": "android",
        "file_url": "https://appery.io/app/rest/build/result/127137-android/1/My_project-1.1.apk",
        "initiator": {
            "name": "My Name",
            "email": "[email protected]"
        }
    }
}

Android Binary Build Abort

Invoked when a binary build for Android was cancelled.

Event ID: PROJECT_BUILD_ANDROID_ABORT.

{
    "project": {
        "guid": "372f4a93-e8ce-46ac-a111-44b6c3f476f4",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2013-11-27T05:08:26-08:00",
        "edited_at": "2013-11-29T08:26:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "build": {
        "started_at": "2013-11-30T05:08:26-08:00",
        "finished_at": "2013-11-30T05:09:29-08:00",
        "status": "aborted",
        "platform": "android",
        "file_url": null,
        "initiator": {
            "name": "My Name",
            "email": "[email protected]"
        }
    }
}

Android Binary Build Fail

Invoked when binary build for Android fails.

Event ID: PROJECT_BUILD_ANDROID_FAIL.

{
    "project": {
        "guid": "372f4a93-e8ce-46ac-a111-44b6c3f476f4",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2013-11-27T05:08:26-08:00",
        "edited_at": "2013-11-29T08:26:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "build": {
        "started_at": "2013-11-30T05:08:26-08:00",
        "finished_at": "2013-11-30T05:09:29-08:00",
        "status": "failed",
        "platform": "android",
        "file_url": null,
        "initiator": {
            "name": "My Name",
            "email": "[email protected]"
        }
    }
}

iOS Binary Build Start

Invoked when binary build for iOS starts.

Event ID: PROJECT_BUILD_IOS_START.

{
    "project": {
        "guid": "372f4a93-e8ce-46ac-a111-44b6c3f476f4",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2013-11-27T05:08:26-08:00",
        "edited_at": "2013-11-29T08:26:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "build": {
        "started_at": "2013-11-30T05:07:26-08:00",
        "finished_at": null,
        "status": "started",
        "platform": "ios",
        "file_url": null,
        "initiator": {
            "name": "My Name",
            "email": "[email protected]"
        }
    }
}

iOS Binary Build Success

Invoked when a binary build for iOS finishes.

Event ID: PROJECT_BUILD_IOS_SUCCESS.

{
    "project": {
        "guid": "04018fec-ba49-4776-bf2e-60ac046f1683",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2014-01-15T05:08:26-08:00",
        "edited_at": "2014-01-17T08:06:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "build": {
        "finished_at": "2014-01-17T05:09:29-08:00",
        "status": "success",
        "platform": "ios",
        "file_url": "https://appery.io/app/rest/build/result/127137-android/1/My_project.ipa",
        "initiator": {
            "name": "My Name",
            "email": "[email protected]"
        }
    }
}

iOS Binary Build Fail

Invoked when a binary build for iOS fails.

Event ID: PROJECT_BUILD_IOS_FAIL.

{
    "project": {
        "guid": "372f4a93-e8ce-46ac-a111-44b6c3f476f4",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2013-11-27T05:08:26-08:00",
        "edited_at": "2013-11-29T08:26:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "build": {
        "started_at": "2013-11-30T05:07:26-08:00",
        "finished_at": "2013-11-30T05:08:06-08:00",
        "status": "failed",
        "platform": "ios",
        "file_url": null,
        "initiator": {
            "name": "My Name",
            "email": "[email protected]"
        }
    }
}

App Test (in the browser)

Invoked when an app is tested in the browser (via the Test button inside the App Builder)

Event ID: PROJECT_PREVIEW_TEST.

{
    "project": {
        "guid": "372f4a93-e8ce-46ac-a111-44b6c3f476f4",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2013-11-27T05:08:26-08:00",
        "edited_at": "2013-11-29T08:26:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "preview": {
        "tested_at": "2013-11-30T05:07:26-08:00",
        "tested_by": {
            "name": "My Name",
            "email": "[email protected]"
        }
    }
}

App created (account Webhook)

Invoked when a new app version is created.

Event ID: APPLICATION_VERSION_CREATE.

{
    "project": {
        "guid": "372f4a93-e8ce-46ac-a111-44b6c3f476f4",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2013-11-27T05:08:26-08:00",
        "edited_at": "2013-11-29T08:06:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "version": {
        "name": "v1.0.0",
        "created_at": "2014-01-20T05:08:26-08:00",
        "author": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "created_at": "2014-01-20T05:08:26-08:00",
    "created_by": {
        "name": "Someone's name",
        "email": "[email protected]"
    }
}

Application version removed

App removed (account Webhook)

Invoked when a new app version is removed.

Event ID: APPLICATION_VERSION_REMOVE.

{
    "project": {
        "guid": "372f4a93-e8ce-46ac-a111-44b6c3f476f4",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2013-11-27T05:08:26-08:00",
        "edited_at": "2013-11-29T08:06:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "version": {
        "name": "v1.0.0",
        "created_at": "2014-01-20T05:08:26-08:00",
        "author": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "removed_at": "2014-02-20T05:08:26-08:00",
    "removed_by": {
        "name": "Someone's name",
        "email": "[email protected]"
    }
}

App renamed (account Webhook)

Invoked when a new app version is renamed.

Event ID: APPLICATION_VERSION_RENAME.

{
    "project": {
        "guid": "372f4a93-e8ce-46ac-a111-44b6c3f476f4",
        "name": "My project",
        "description": "My one and only project for testing hooks",
        "created_at": "2013-11-27T05:08:26-08:00",
        "edited_at": "2013-11-29T08:06:46-08:00",
        "owner": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "version": {
        "name": "v1.0.0",
        "created_at": "2014-01-20T05:08:26-08:00",
        "author": {
            "name": "My Name",
            "email": "[email protected]"
        }
    },
    "renamed_at": "2014-01-20T05:08:26-08:00",
    "renamed_by": {
        "name": "Someone's name",
        "email": "[email protected]"
    }
}