curl --request GET \
--url https://api.sevalla.com/v2/static-sites/{id} \
--header 'Authorization: Bearer <token>'{
"static_site": {
"id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
"name": "first-static-site",
"display_name": "First static site",
"status": "deploymentSuccess",
"repo_url": "https://github.com/user/project",
"default_branch": "main",
"auto_deploy": false,
"remote_repository_id": "012345678",
"git_repository_id": "4978765082",
"git_type": "github",
"hostname": "http://example.com",
"build_command": "make build",
"created_at": 1667489138845,
"updated_at": 1667489138845,
"deployments": [
{
"id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
"status": "success",
"repo_url": "https://github.com/user/project",
"branch": "main",
"commit_message": "Merge pull request #123",
"created_at": 1665382600770
}
]
}
}Retrieve detailed information about a specific static site.
curl --request GET \
--url https://api.sevalla.com/v2/static-sites/{id} \
--header 'Authorization: Bearer <token>'{
"static_site": {
"id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
"name": "first-static-site",
"display_name": "First static site",
"status": "deploymentSuccess",
"repo_url": "https://github.com/user/project",
"default_branch": "main",
"auto_deploy": false,
"remote_repository_id": "012345678",
"git_repository_id": "4978765082",
"git_type": "github",
"hostname": "http://example.com",
"build_command": "make build",
"created_at": 1667489138845,
"updated_at": 1667489138845,
"deployments": [
{
"id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
"status": "success",
"repo_url": "https://github.com/user/project",
"branch": "main",
"commit_message": "Merge pull request #123",
"created_at": 1665382600770
}
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
"54fb80af-576c-4fdc-ba4f-b596c83f15a1"
Successfully found static site
Show child attributes
"54fb80af-576c-4fdc-ba4f-b596c83f15a1"
"first-static-site"
"First static site"
deploymentInProgress, deploymentSuccess, deploymentFailed, deploymentCancelled, deleting, deletionFailed "deploymentSuccess"
"https://github.com/user/project"
"main"
false
"012345678"
"4978765082"
"github"
"http://example.com"
"make build"
1667489138845
1667489138845
Show child attributes
"54fb80af-576c-4fdc-ba4f-b596c83f15a1"
"success"
"https://github.com/user/project"
"main"
"Merge pull request #123"
1665382600770
Was this page helpful?