Format of Data Sent via Webhooks

The content sent varies depending on the Event Type.

When the Event Type is Artifact:Created

When the Method is POST

Data is passed in JSON format.

Example of Sent Data

{
    "site_id":"Site ID",
    "artifact_id":"Artifact ID",
    "download_url":"Base64-encoded artifact download URL"
}

When the Method is GET

The data is passed as query parameters.

Example of Sent Data

?site_id=Site ID&artifact_id=Artifact ID&download_url=Base64-encoded artifact download URL

When the Event Type is Artifact:Published

When the Method is POST

Pass the data in JSON

Example of data to send

{
  "creator": "User who created the artifact",
  "last_deployed_at": "Date and time published YYYY-MM-DDHH:MM:SS",
  "site_id": "Site ID",
  "created_at": "Date and time created YYYY-MM-DDHH:MM:SS",
  "deployed_by": "User who deployed",
  "artifact_id": "Artifact ID"
}

When the method is GET

Pass the parameters as query parameters.

Example of data to send

?site_id=creator=User who created the artifact&last_deployed_at=Date and time publishedYYYY-MM-DDHH=MM=SS&site_id=Site ID&created_at=Date and time createdYYYY-MM-DDHH=MM=SS&deployed_by=User who deployed&artifact_id=Artifact ID

If the Event Type is Artifact:Published, the artifact download URL is not included