GET
/
static-sites
/
{id}
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
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Example:

"54fb80af-576c-4fdc-ba4f-b596c83f15a1"

Response

200
application/json

Successfully found static site

The response is of type object.