Note: Application, Database, and Static Site Hosting will be removed from both MyKinsta and the MyKinsta API on 31 January 2026. Your existing services will continue to run without interruption; however, you will need to manage them through the Sevalla dashboard using your MyKinsta credentials.
After this date, all API endpoints related to Application, Database, and Static Site Hosting will be provided exclusively through the Sevalla API. For more details about this transition, see Sevalla.
You can use the static sites endpoint to:
PUT request to update details within the site settings, such as the build command, display name, default branch, and more.You can obtain the company_id from MyKinsta > username > Company settings > Billing details.
The company_id is also shown in the URL in MyKinsta, for example in the URL https://my.kinsta.com/?idCompany=bdd25d71-5706-4890-870f-1adda17c505d the company_id is bdd25d71-5706-4890-870f-1adda17c505d.
Successfully found static sites
No or invalid API key provided to the request
Could not find the static sites or the user does not have permissions to retrieve data
Error occurred while retrieving static sites
{- "company": {
- "static_sites": {
- "items": [
- {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "name": "first-static-site",
- "display_name": "First static site",
- "status": "deploymentSuccess"
}
]
}
}
}Successfully found static site
No or invalid API key provided to the request
Could not find the static site or the user does not have permissions to retrieve data
Error occurred while retrieving static site by ID
{- "static_site": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "name": "first-static-site",
- "display_name": "First static site",
- "status": "deploymentSuccess",
- "default_branch": "main",
- "auto_deploy": false,
- "remote_repository_id": "012345678",
- "git_repository_id": "4978765082",
- "git_type": "github",
- "build_command": "make build",
- "created_at": 1667489138845,
- "updated_at": 1667489138845,
- "deployments": [
- {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "status": "success",
- "branch": "main",
- "commit_message": "Merge pull request #123",
- "created_at": 1665382600770
}
]
}
}Static site updated successfully
No or invalid API key provided to the request
Error occurred while updating static site
{- "display_name": "My static site",
- "auto_deploy": true,
- "default_branch": "main",
- "build_command": "npm run build",
- "node_version": "18.16.0",
- "published_directory": "dist"
}{- "static_site": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "display_name": "My static site",
- "auto_deploy": true,
- "default_branch": "main",
- "build_command": "npm run build",
- "node_version": "20.2.0",
- "published_directory": "dist",
- "updated_at": 1695300630620,
- "status": "deploymentInProgress"
}
}Response object of static site requests
No or invalid API key provided to the request
Could not find the static site or the user does not have required permissions
Error occurred while deleting static site
{- "transaction_id": "8097788359944597"
}