티스토리 수익 글 보기
Netlify's API documentation (2.43.1)
Download OpenAPI specification:Download
Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.
This document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the online documentation. Visit our Community forum to join the conversation about understanding and using Netlify's API.
Additionally, we have two API clients for your convenience:
Response samples
- 200
- default
{- "id": "string",
- "uid": "string",
- "full_name": "string",
- "avatar_url": "string",
- "email": "string",
- "affiliate_id": "string",
- "site_count": 0,
- "created_at": "string",
- "last_login": "string",
- "login_providers": [
- "string"
], - "onboarding_progress": {
- "slides": "string"
}
}createAccount
Authorizations:
Request Body schema: application/json
| name required | string |
| type_id required | string |
| payment_method_id | string |
| period | string Enum: "monthly" "yearly" |
| extra_seats_block | integer |
Responses
Request samples
- Payload
{- "name": "string",
- "type_id": "string",
- "payment_method_id": "string",
- "period": "monthly",
- "extra_seats_block": 0
}Response samples
- 201
- default
{- "id": "string",
- "name": "string",
- "slug": "string",
- "type": "string",
- "capabilities": {
- "sites": {
- "included": 0,
- "used": 0
}, - "collaborators": {
- "included": 0,
- "used": 0
}
}, - "billing_name": "string",
- "billing_email": "string",
- "billing_details": "string",
- "billing_period": "string",
- "payment_method_id": "string",
- "type_name": "string",
- "type_id": "string",
- "owner_ids": [
- "string"
], - "roles_allowed": [
- "string"
], - "created_at": "string",
- "updated_at": "string"
}Response samples
- 200
- default
{- "id": "string",
- "name": "string",
- "slug": "string",
- "type": "string",
- "capabilities": {
- "sites": {
- "included": 0,
- "used": 0
}, - "collaborators": {
- "included": 0,
- "used": 0
}
}, - "billing_name": "string",
- "billing_email": "string",
- "billing_details": "string",
- "billing_period": "string",
- "payment_method_id": "string",
- "type_name": "string",
- "type_id": "string",
- "owner_ids": [
- "string"
], - "roles_allowed": [
- "string"
], - "created_at": "string",
- "updated_at": "string"
}Response samples
- 200
- default
[- {
- "id": "string",
- "name": "string",
- "slug": "string",
- "type": "string",
- "capabilities": {
- "sites": {
- "included": 0,
- "used": 0
}, - "collaborators": {
- "included": 0,
- "used": 0
}
}, - "billing_name": "string",
- "billing_email": "string",
- "billing_details": "string",
- "billing_period": "string",
- "payment_method_id": "string",
- "type_name": "string",
- "type_id": "string",
- "owner_ids": [
- "string"
], - "roles_allowed": [
- "string"
], - "created_at": "string",
- "updated_at": "string"
}
]updateAccount
Authorizations:
path Parameters
| account_id required | string |
Request Body schema: application/json
| name | string |
| slug | string |
| type_id | string |
| extra_seats_block | integer |
| billing_name | string |
| billing_email | string |
| billing_details | string |
Responses
Request samples
- Payload
{- "name": "string",
- "slug": "string",
- "type_id": "string",
- "extra_seats_block": 0,
- "billing_name": "string",
- "billing_email": "string",
- "billing_details": "string"
}Response samples
- 200
- default
{- "id": "string",
- "name": "string",
- "slug": "string",
- "type": "string",
- "capabilities": {
- "sites": {
- "included": 0,
- "used": 0
}, - "collaborators": {
- "included": 0,
- "used": 0
}
}, - "billing_name": "string",
- "billing_email": "string",
- "billing_details": "string",
- "billing_period": "string",
- "payment_method_id": "string",
- "type_name": "string",
- "type_id": "string",
- "owner_ids": [
- "string"
], - "roles_allowed": [
- "string"
], - "created_at": "string",
- "updated_at": "string"
}addMemberToAccount
Authorizations:
path Parameters
| account_slug required | string |
Request Body schema: application/json
| role | string Enum: "Owner" "Developer" "Billing Admin" "Reviewer" |
string |
Responses
Request samples
- Payload
{- "role": "Owner",
- "email": "string"
}Response samples
- 200
- default
[- {
- "id": "string",
- "full_name": "string",
- "email": "string",
- "avatar": "string",
- "role": "string"
}
]updateAccountMember
Authorizations:
path Parameters
| account_slug required | string |
| member_id required | string |
Request Body schema: application/json
| role | string Enum: "Owner" "Developer" "Billing Admin" "Reviewer" |
| site_access | string Enum: "all" "none" "selected" |
| site_ids | Array of strings |
Responses
Request samples
- Payload
{- "role": "Owner",
- "site_access": "all",
- "site_ids": [
- "string"
]
}Response samples
- 200
- default
{- "id": "string",
- "full_name": "string",
- "email": "string",
- "avatar": "string",
- "role": "string"
}Response samples
- 200
- default
[- {
- "id": "string",
- "name": "string",
- "description": "string",
- "capabilities": { },
- "monthly_dollar_price": 0,
- "yearly_dollar_price": 0,
- "monthly_seats_addon_dollar_price": 0,
- "yearly_seats_addon_dollar_price": 0
}
]Response samples
- 200
- default
[- {
- "id": "string",
- "method_name": "string",
- "type": "string",
- "state": "string",
- "data": {
- "card_type": "string",
- "last4": "string",
- "email": "string"
}, - "created_at": "string",
- "updated_at": "string"
}
]listAccountAuditEvents
Authorizations:
path Parameters
| account_id required | string |
query Parameters
| query | string |
| log_type | string |
| page | integer <int32> |
| per_page | integer <int32> |
Responses
Response samples
- 200
- default
[- {
- "id": "string",
- "account_id": "string",
- "payload": {
- "actor_id": "string",
- "actor_name": "string",
- "actor_email": "string",
- "action": "string",
- "timestamp": "string",
- "log_type": "string",
- "property1": { },
- "property2": { }
}
}
]createSite
Note: Environment variable keys and values have moved from build_settings.env and repo.env to a new endpoint. Please use createEnvVars to create environment variables for a site.
Authorizations:
query Parameters
| configure_dns | boolean |
Request Body schema: application/json
| id | string |
| state | string |
| plan | string |
| name | string |
| custom_domain | string |
| domain_aliases | Array of strings |
| branch_deploy_custom_domain | string |
| deploy_preview_custom_domain | string |
| password | string |
| notification_email | string |
| url | string |
| ssl_url | string |
| admin_url | string |
| screenshot_url | string |
| created_at | string <dateTime> |
| updated_at | string <dateTime> |
| user_id | string |
| session_id | string |
| ssl | boolean |
| force_ssl | boolean |
| managed_dns | boolean |
| deploy_url | string |
object (deploy) | |
| account_id | string |
| account_name | string |
| account_slug | string |
| git_provider | string |
| deploy_hook | string |
object | |
object | |
object (repoInfo) | |
| id_domain | string |
object | |
| build_image | string |
| prerender | string |
| functions_region | string |
| prevent_non_git_prod_deploys | boolean Default: false |
object (repoInfo) |
Responses
Request samples
- Payload
{- "id": "string",
- "state": "string",
- "plan": "string",
- "name": "string",
- "custom_domain": "string",
- "domain_aliases": [
- "string"
], - "branch_deploy_custom_domain": "string",
- "deploy_preview_custom_domain": "string",
- "password": "string",
- "notification_email": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "screenshot_url": "string",
- "created_at": "string",
- "updated_at": "string",
- "user_id": "string",
- "session_id": "string",
- "ssl": true,
- "force_ssl": true,
- "managed_dns": true,
- "deploy_url": "string",
- "published_deploy": {
- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}, - "account_id": "string",
- "account_name": "string",
- "account_slug": "string",
- "git_provider": "string",
- "deploy_hook": "string",
- "capabilities": {
- "property1": { },
- "property2": { }
}, - "processing_settings": {
- "html": {
- "pretty_urls": true
}
}, - "build_settings": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}, - "id_domain": "string",
- "default_hooks_data": {
- "access_token": "string"
}, - "build_image": "string",
- "prerender": "string",
- "functions_region": "string",
- "prevent_non_git_prod_deploys": false,
- "repo": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}
}Response samples
- 201
- default
{- "id": "string",
- "state": "string",
- "plan": "string",
- "name": "string",
- "custom_domain": "string",
- "domain_aliases": [
- "string"
], - "branch_deploy_custom_domain": "string",
- "deploy_preview_custom_domain": "string",
- "password": "string",
- "notification_email": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "screenshot_url": "string",
- "created_at": "string",
- "updated_at": "string",
- "user_id": "string",
- "session_id": "string",
- "ssl": true,
- "force_ssl": true,
- "managed_dns": true,
- "deploy_url": "string",
- "published_deploy": {
- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}, - "account_id": "string",
- "account_name": "string",
- "account_slug": "string",
- "git_provider": "string",
- "deploy_hook": "string",
- "capabilities": {
- "property1": { },
- "property2": { }
}, - "processing_settings": {
- "html": {
- "pretty_urls": true
}
}, - "build_settings": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}, - "id_domain": "string",
- "default_hooks_data": {
- "access_token": "string"
}, - "build_image": "string",
- "prerender": "string",
- "functions_region": "string",
- "prevent_non_git_prod_deploys": false
}createSiteInTeam
Note: Environment variable keys and values have moved from build_settings.env and repo.env to a new endpoint. Please use createEnvVars to create environment variables for a site.
Authorizations:
path Parameters
| account_slug required | string |
query Parameters
| configure_dns | boolean |
Request Body schema: application/json
| id | string |
| state | string |
| plan | string |
| name | string |
| custom_domain | string |
| domain_aliases | Array of strings |
| branch_deploy_custom_domain | string |
| deploy_preview_custom_domain | string |
| password | string |
| notification_email | string |
| url | string |
| ssl_url | string |
| admin_url | string |
| screenshot_url | string |
| created_at | string <dateTime> |
| updated_at | string <dateTime> |
| user_id | string |
| session_id | string |
| ssl | boolean |
| force_ssl | boolean |
| managed_dns | boolean |
| deploy_url | string |
object (deploy) | |
| account_id | string |
| account_name | string |
| account_slug | string |
| git_provider | string |
| deploy_hook | string |
object | |
object | |
object (repoInfo) | |
| id_domain | string |
object | |
| build_image | string |
| prerender | string |
| functions_region | string |
| prevent_non_git_prod_deploys | boolean Default: false |
object (repoInfo) |
Responses
Request samples
- Payload
{- "id": "string",
- "state": "string",
- "plan": "string",
- "name": "string",
- "custom_domain": "string",
- "domain_aliases": [
- "string"
], - "branch_deploy_custom_domain": "string",
- "deploy_preview_custom_domain": "string",
- "password": "string",
- "notification_email": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "screenshot_url": "string",
- "created_at": "string",
- "updated_at": "string",
- "user_id": "string",
- "session_id": "string",
- "ssl": true,
- "force_ssl": true,
- "managed_dns": true,
- "deploy_url": "string",
- "published_deploy": {
- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}, - "account_id": "string",
- "account_name": "string",
- "account_slug": "string",
- "git_provider": "string",
- "deploy_hook": "string",
- "capabilities": {
- "property1": { },
- "property2": { }
}, - "processing_settings": {
- "html": {
- "pretty_urls": true
}
}, - "build_settings": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}, - "id_domain": "string",
- "default_hooks_data": {
- "access_token": "string"
}, - "build_image": "string",
- "prerender": "string",
- "functions_region": "string",
- "prevent_non_git_prod_deploys": false,
- "repo": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}
}Response samples
- 201
- default
{- "id": "string",
- "state": "string",
- "plan": "string",
- "name": "string",
- "custom_domain": "string",
- "domain_aliases": [
- "string"
], - "branch_deploy_custom_domain": "string",
- "deploy_preview_custom_domain": "string",
- "password": "string",
- "notification_email": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "screenshot_url": "string",
- "created_at": "string",
- "updated_at": "string",
- "user_id": "string",
- "session_id": "string",
- "ssl": true,
- "force_ssl": true,
- "managed_dns": true,
- "deploy_url": "string",
- "published_deploy": {
- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}, - "account_id": "string",
- "account_name": "string",
- "account_slug": "string",
- "git_provider": "string",
- "deploy_hook": "string",
- "capabilities": {
- "property1": { },
- "property2": { }
}, - "processing_settings": {
- "html": {
- "pretty_urls": true
}
}, - "build_settings": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}, - "id_domain": "string",
- "default_hooks_data": {
- "access_token": "string"
}, - "build_image": "string",
- "prerender": "string",
- "functions_region": "string",
- "prevent_non_git_prod_deploys": false
}getSite
Note: Environment variable keys and values have moved from build_settings.env and repo.env to a new endpoint. Please use getEnvVars to retrieve site environment variables.
Authorizations:
path Parameters
| site_id required | string |
Responses
Response samples
- 200
- default
{- "id": "string",
- "state": "string",
- "plan": "string",
- "name": "string",
- "custom_domain": "string",
- "domain_aliases": [
- "string"
], - "branch_deploy_custom_domain": "string",
- "deploy_preview_custom_domain": "string",
- "password": "string",
- "notification_email": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "screenshot_url": "string",
- "created_at": "string",
- "updated_at": "string",
- "user_id": "string",
- "session_id": "string",
- "ssl": true,
- "force_ssl": true,
- "managed_dns": true,
- "deploy_url": "string",
- "published_deploy": {
- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}, - "account_id": "string",
- "account_name": "string",
- "account_slug": "string",
- "git_provider": "string",
- "deploy_hook": "string",
- "capabilities": {
- "property1": { },
- "property2": { }
}, - "processing_settings": {
- "html": {
- "pretty_urls": true
}
}, - "build_settings": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}, - "id_domain": "string",
- "default_hooks_data": {
- "access_token": "string"
}, - "build_image": "string",
- "prerender": "string",
- "functions_region": "string",
- "prevent_non_git_prod_deploys": false
}listSites
Note: Environment variable keys and values have moved from build_settings.env and repo.env to a new endpoint. Please use getEnvVars to retrieve site environment variables.
Authorizations:
query Parameters
| name | string |
| filter | string Enum: "all" "owner" "guest" |
| page | integer <int32> |
| per_page | integer <int32> |
Responses
Response samples
- 200
- default
[- {
- "id": "string",
- "state": "string",
- "plan": "string",
- "name": "string",
- "custom_domain": "string",
- "domain_aliases": [
- "string"
], - "branch_deploy_custom_domain": "string",
- "deploy_preview_custom_domain": "string",
- "password": "string",
- "notification_email": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "screenshot_url": "string",
- "created_at": "string",
- "updated_at": "string",
- "user_id": "string",
- "session_id": "string",
- "ssl": true,
- "force_ssl": true,
- "managed_dns": true,
- "deploy_url": "string",
- "published_deploy": {
- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}, - "account_id": "string",
- "account_name": "string",
- "account_slug": "string",
- "git_provider": "string",
- "deploy_hook": "string",
- "capabilities": {
- "property1": { },
- "property2": { }
}, - "processing_settings": {
- "html": {
- "pretty_urls": true
}
}, - "build_settings": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}, - "id_domain": "string",
- "default_hooks_data": {
- "access_token": "string"
}, - "build_image": "string",
- "prerender": "string",
- "functions_region": "string",
- "prevent_non_git_prod_deploys": false
}
]listSitesForAccount
Note: Environment variable keys and values have moved from build_settings.env and repo.env to a new endpoint. Please use getEnvVars to retrieve site environment variables.
Authorizations:
path Parameters
| account_slug required | string |
query Parameters
| name | string |
| page | integer <int32> |
| per_page | integer <int32> |
Responses
Response samples
- 200
- default
[- {
- "id": "string",
- "state": "string",
- "plan": "string",
- "name": "string",
- "custom_domain": "string",
- "domain_aliases": [
- "string"
], - "branch_deploy_custom_domain": "string",
- "deploy_preview_custom_domain": "string",
- "password": "string",
- "notification_email": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "screenshot_url": "string",
- "created_at": "string",
- "updated_at": "string",
- "user_id": "string",
- "session_id": "string",
- "ssl": true,
- "force_ssl": true,
- "managed_dns": true,
- "deploy_url": "string",
- "published_deploy": {
- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}, - "account_id": "string",
- "account_name": "string",
- "account_slug": "string",
- "git_provider": "string",
- "deploy_hook": "string",
- "capabilities": {
- "property1": { },
- "property2": { }
}, - "processing_settings": {
- "html": {
- "pretty_urls": true
}
}, - "build_settings": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}, - "id_domain": "string",
- "default_hooks_data": {
- "access_token": "string"
}, - "build_image": "string",
- "prerender": "string",
- "functions_region": "string",
- "prevent_non_git_prod_deploys": false
}
]unlinkSiteRepo
[Beta] Unlinks the repo from the site.
This action will also:
- Delete associated deploy keys
- Delete outgoing webhooks for the repo
- Delete the site's build hooks
Authorizations:
path Parameters
| site_id required | string |
Responses
Response samples
- 200
{- "id": "string",
- "state": "string",
- "plan": "string",
- "name": "string",
- "custom_domain": "string",
- "domain_aliases": [
- "string"
], - "branch_deploy_custom_domain": "string",
- "deploy_preview_custom_domain": "string",
- "password": "string",
- "notification_email": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "screenshot_url": "string",
- "created_at": "string",
- "updated_at": "string",
- "user_id": "string",
- "session_id": "string",
- "ssl": true,
- "force_ssl": true,
- "managed_dns": true,
- "deploy_url": "string",
- "published_deploy": {
- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}, - "account_id": "string",
- "account_name": "string",
- "account_slug": "string",
- "git_provider": "string",
- "deploy_hook": "string",
- "capabilities": {
- "property1": { },
- "property2": { }
}, - "processing_settings": {
- "html": {
- "pretty_urls": true
}
}, - "build_settings": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}, - "id_domain": "string",
- "default_hooks_data": {
- "access_token": "string"
}, - "build_image": "string",
- "prerender": "string",
- "functions_region": "string",
- "prevent_non_git_prod_deploys": false
}updateSite
Note: Environment variable keys and values have moved from build_settings.env and repo.env to a new endpoint. Please use updateEnvVar to update a site's environment variables.
Authorizations:
path Parameters
| site_id required | string |
Request Body schema: application/json
| id | string |
| state | string |
| plan | string |
| name | string |
| custom_domain | string |
| domain_aliases | Array of strings |
| branch_deploy_custom_domain | string |
| deploy_preview_custom_domain | string |
| password | string |
| notification_email | string |
| url | string |
| ssl_url | string |
| admin_url | string |
| screenshot_url | string |
| created_at | string <dateTime> |
| updated_at | string <dateTime> |
| user_id | string |
| session_id | string |
| ssl | boolean |
| force_ssl | boolean |
| managed_dns | boolean |
| deploy_url | string |
object (deploy) | |
| account_id | string |
| account_name | string |
| account_slug | string |
| git_provider | string |
| deploy_hook | string |
object | |
object | |
object (repoInfo) | |
| id_domain | string |
object | |
| build_image | string |
| prerender | string |
| functions_region | string |
| prevent_non_git_prod_deploys | boolean Default: false |
object (repoInfo) |
Responses
Request samples
- Payload
{- "id": "string",
- "state": "string",
- "plan": "string",
- "name": "string",
- "custom_domain": "string",
- "domain_aliases": [
- "string"
], - "branch_deploy_custom_domain": "string",
- "deploy_preview_custom_domain": "string",
- "password": "string",
- "notification_email": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "screenshot_url": "string",
- "created_at": "string",
- "updated_at": "string",
- "user_id": "string",
- "session_id": "string",
- "ssl": true,
- "force_ssl": true,
- "managed_dns": true,
- "deploy_url": "string",
- "published_deploy": {
- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}, - "account_id": "string",
- "account_name": "string",
- "account_slug": "string",
- "git_provider": "string",
- "deploy_hook": "string",
- "capabilities": {
- "property1": { },
- "property2": { }
}, - "processing_settings": {
- "html": {
- "pretty_urls": true
}
}, - "build_settings": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}, - "id_domain": "string",
- "default_hooks_data": {
- "access_token": "string"
}, - "build_image": "string",
- "prerender": "string",
- "functions_region": "string",
- "prevent_non_git_prod_deploys": false,
- "repo": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}
}Response samples
- 200
- default
{- "id": "string",
- "state": "string",
- "plan": "string",
- "name": "string",
- "custom_domain": "string",
- "domain_aliases": [
- "string"
], - "branch_deploy_custom_domain": "string",
- "deploy_preview_custom_domain": "string",
- "password": "string",
- "notification_email": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "screenshot_url": "string",
- "created_at": "string",
- "updated_at": "string",
- "user_id": "string",
- "session_id": "string",
- "ssl": true,
- "force_ssl": true,
- "managed_dns": true,
- "deploy_url": "string",
- "published_deploy": {
- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}, - "account_id": "string",
- "account_name": "string",
- "account_slug": "string",
- "git_provider": "string",
- "deploy_hook": "string",
- "capabilities": {
- "property1": { },
- "property2": { }
}, - "processing_settings": {
- "html": {
- "pretty_urls": true
}
}, - "build_settings": {
- "id": 0,
- "provider": "string",
- "deploy_key_id": "string",
- "repo_path": "string",
- "repo_branch": "string",
- "dir": "string",
- "functions_dir": "string",
- "cmd": "string",
- "allowed_branches": [
- "string"
], - "public_repo": true,
- "private_logs": true,
- "repo_url": "string",
- "env": {
- "property1": "string",
- "property2": "string"
}, - "installation_id": 0,
- "stop_builds": true
}, - "id_domain": "string",
- "default_hooks_data": {
- "access_token": "string"
}, - "build_image": "string",
- "prerender": "string",
- "functions_region": "string",
- "prevent_non_git_prod_deploys": false
}createEnvVars
Creates new environment variables. Granular scopes are available on Pro plans and above.
Authorizations:
path Parameters
| account_id required | string Scope response to account_id |
query Parameters
| site_id | string If provided, create an environment variable on the site level, not the account level |
Request Body schema: application/json
| key | string The existing or new name of the key, if you wish to rename it (case-sensitive) |
| scopes | Array of strings Items Enum: "builds" "functions" "runtime" "post-processing" The scopes that this environment variable is set to (Pro plans and above) |
Array of objects (envVarValue) | |
| is_secret | boolean Secret values are only readable by code running on Netlify's systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. |
Responses
Request samples
- Payload
[- {
- "key": "string",
- "scopes": [
- "builds"
], - "values": [
- {
- "id": "string",
- "value": "string",
- "context": "all",
- "context_parameter": "string"
}
], - "is_secret": true
}
]Response samples
- 201
- default
[- {
- "key": "string",
- "scopes": [
- "builds"
], - "values": [
- {
- "id": "string",
- "value": "string",
- "context": "all",
- "context_parameter": "string"
}
], - "is_secret": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "updated_by": {
- "id": "string",
- "full_name": "string",
- "email": "string",
- "avatar_url": "string"
}
}
]deleteEnvVar
Deletes an environment variable
Authorizations:
path Parameters
| account_id required | string Scope response to account_id |
| key required | string The environment variable key (case-sensitive) |
query Parameters
| site_id | string If provided, delete the environment variable from this site |
Responses
Response samples
- default
{- "code": 0,
- "message": "string"
}deleteEnvVarValue
Deletes a specific environment variable value.
Authorizations:
path Parameters
| account_id required | string Scope response to account_id |
| id required | string The environment variable value's ID |
| key required | string The environment variable key name (case-sensitive) |
query Parameters
| site_id | string If provided, delete the value from an environment variable on this site |
Responses
Response samples
- default
{- "code": 0,
- "message": "string"
}getEnvVar
Returns an individual environment variable.
Authorizations:
path Parameters
| account_id required | string Scope response to account_id |
| key required | string The environment variable key (case-sensitive) |
query Parameters
| site_id | string If provided, return the environment variable for a specific site (no merging is performed) |
Responses
Response samples
- 200
- default
{- "key": "string",
- "scopes": [
- "builds"
], - "values": [
- {
- "id": "string",
- "value": "string",
- "context": "all",
- "context_parameter": "string"
}
], - "is_secret": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "updated_by": {
- "id": "string",
- "full_name": "string",
- "email": "string",
- "avatar_url": "string"
}
}getEnvVars
Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI.
Authorizations:
path Parameters
| account_id required | string Scope response to account_id |
query Parameters
| context_name | string Enum: "all" "dev" "branch-deploy" "deploy-preview" "production" Filter by deploy context |
| scope | string Enum: "builds" "functions" "runtime" "post-processing" Filter by scope |
| site_id | string If specified, only return environment variables set on this site |
Responses
Response samples
- 200
- default
[- {
- "key": "string",
- "scopes": [
- "builds"
], - "values": [
- {
- "id": "string",
- "value": "string",
- "context": "all",
- "context_parameter": "string"
}
], - "is_secret": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "updated_by": {
- "id": "string",
- "full_name": "string",
- "email": "string",
- "avatar_url": "string"
}
}
]getSiteEnvVars
Returns all environment variables for a site. This convenience method behaves the same as getEnvVars but doesn't require an account_id as input.
Authorizations:
path Parameters
| site_id required | string Scope response to site_id |
query Parameters
| context_name | string Enum: "all" "dev" "branch-deploy" "deploy-preview" "production" Filter by deploy context |
| scope | string Enum: "builds" "functions" "runtime" "post_processing" Filter by scope |
Responses
Response samples
- 200
- default
[- {
- "key": "string",
- "scopes": [
- "builds"
], - "values": [
- {
- "id": "string",
- "value": "string",
- "context": "all",
- "context_parameter": "string"
}
], - "is_secret": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "updated_by": {
- "id": "string",
- "full_name": "string",
- "email": "string",
- "avatar_url": "string"
}
}
]setEnvVarValue
Updates or creates a new value for an existing environment variable.
Authorizations:
path Parameters
| account_id required | string Scope response to account_id |
| key required | string The existing environment variable key name (case-sensitive) |
query Parameters
| site_id | string If provided, update an environment variable set on this site |
Request Body schema: application/json
| context | string Enum: "all" "dev" "branch-deploy" "deploy-preview" "production" "branch" The deploy context in which this value will be used. |
| context_parameter | string An additional parameter for custom branches. Currently, this is used for providing a branch name when |
| value | string The environment variable's unencrypted value |
Responses
Request samples
- Payload
{- "context": "all",
- "context_parameter": "string",
- "value": "string"
}Response samples
- 201
- default
{- "key": "string",
- "scopes": [
- "builds"
], - "values": [
- {
- "id": "string",
- "value": "string",
- "context": "all",
- "context_parameter": "string"
}
], - "is_secret": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "updated_by": {
- "id": "string",
- "full_name": "string",
- "email": "string",
- "avatar_url": "string"
}
}updateEnvVar
Updates an existing environment variable and all of its values. Existing values will be replaced by values provided.
Authorizations:
path Parameters
| account_id required | string Scope response to account_id |
| key required | string The existing environment variable key name (case-sensitive) |
query Parameters
| site_id | string If provided, update an environment variable set on this site |
Request Body schema: application/json
| key | string The existing or new name of the key, if you wish to rename it (case-sensitive) |
| scopes | Array of strings Items Enum: "builds" "functions" "runtime" "post-processing" The scopes that this environment variable is set to (Pro plans and above) |
Array of objects (envVarValue) | |
| is_secret | boolean Secret values are only readable by code running on Netlify's systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. |
Responses
Request samples
- Payload
{- "key": "string",
- "scopes": [
- "builds"
], - "values": [
- {
- "id": "string",
- "value": "string",
- "context": "all",
- "context_parameter": "string"
}
], - "is_secret": true
}Response samples
- 200
- default
{- "key": "string",
- "scopes": [
- "builds"
], - "values": [
- {
- "id": "string",
- "value": "string",
- "context": "all",
- "context_parameter": "string"
}
], - "is_secret": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "updated_by": {
- "id": "string",
- "full_name": "string",
- "email": "string",
- "avatar_url": "string"
}
}uploadDeployFile
Authorizations:
path Parameters
| deploy_id required | string |
| path required | string |
query Parameters
| size | integer |
Request Body schema: application/octet-stream
Responses
Response samples
- 200
- default
{- "id": "string",
- "path": "string",
- "sha": "string",
- "mime_type": "string",
- "size": 0
}purgeCache
Purges cached content from Netlify's CDN. Supports purging by Cache-Tag.
Authorizations:
Request Body schema: application/json
| site_id | string |
| site_slug | string |
| cache_tags | Array of strings |
Responses
Request samples
- Payload
{- "site_id": "string",
- "site_slug": "string",
- "cache_tags": [
- "string"
]
}createSiteSnippet
Authorizations:
path Parameters
| site_id required | string |
Request Body schema: application/json
| id | integer <int32> |
| site_id | string |
| title | string |
| general | string |
| general_position | string |
| goal | string |
| goal_position | string |
Responses
Request samples
- Payload
{- "id": 0,
- "site_id": "string",
- "title": "string",
- "general": "string",
- "general_position": "string",
- "goal": "string",
- "goal_position": "string"
}Response samples
- 201
- default
{- "id": 0,
- "site_id": "string",
- "title": "string",
- "general": "string",
- "general_position": "string",
- "goal": "string",
- "goal_position": "string"
}getSiteSnippet
Authorizations:
path Parameters
| site_id required | string |
| snippet_id required | string |
Responses
Response samples
- 200
- default
{- "id": 0,
- "site_id": "string",
- "title": "string",
- "general": "string",
- "general_position": "string",
- "goal": "string",
- "goal_position": "string"
}updateSiteSnippet
Authorizations:
path Parameters
| site_id required | string |
| snippet_id required | string |
Request Body schema: application/json
| id | integer <int32> |
| site_id | string |
| title | string |
| general | string |
| general_position | string |
| goal | string |
| goal_position | string |
Responses
Request samples
- Payload
{- "id": 0,
- "site_id": "string",
- "title": "string",
- "general": "string",
- "general_position": "string",
- "goal": "string",
- "goal_position": "string"
}Response samples
- default
{- "code": 0,
- "message": "string"
}Response samples
- 200
- default
[- {
- "id": "string",
- "name": "string",
- "errors": [
- "string"
], - "supported_record_types": [
- "string"
], - "user_id": "string",
- "created_at": "string",
- "updated_at": "string",
- "records": [
- {
- "id": "string",
- "hostname": "string",
- "type": "string",
- "value": "string",
- "ttl": 0,
- "priority": 0,
- "dns_zone_id": "string",
- "site_id": "string",
- "flag": 0,
- "tag": "string",
- "managed": true
}
], - "dns_servers": [
- "string"
], - "account_id": "string",
- "site_id": "string",
- "account_slug": "string",
- "account_name": "string",
- "domain": "string",
- "ipv6_enabled": true,
- "dedicated": true
}
]createDnsRecord
Authorizations:
path Parameters
| zone_id required | string |
Request Body schema: application/json
| type | string |
| hostname | string |
| value | string |
| ttl | integer <int64> |
| priority | integer <int64> |
| weight | integer <int64> |
| port | integer <int64> |
| flag | integer <int64> |
| tag | string |
Responses
Request samples
- Payload
{- "type": "string",
- "hostname": "string",
- "value": "string",
- "ttl": 0,
- "priority": 0,
- "weight": 0,
- "port": 0,
- "flag": 0,
- "tag": "string"
}Response samples
- 201
- default
{- "id": "string",
- "hostname": "string",
- "type": "string",
- "value": "string",
- "ttl": 0,
- "priority": 0,
- "dns_zone_id": "string",
- "site_id": "string",
- "flag": 0,
- "tag": "string",
- "managed": true
}createDnsZone
Authorizations:
Request Body schema: application/json
| account_slug | string |
| site_id | string |
| name | string |
Responses
Request samples
- Payload
{- "account_slug": "string",
- "site_id": "string",
- "name": "string"
}Response samples
- 201
- default
{- "id": "string",
- "name": "string",
- "errors": [
- "string"
], - "supported_record_types": [
- "string"
], - "user_id": "string",
- "created_at": "string",
- "updated_at": "string",
- "records": [
- {
- "id": "string",
- "hostname": "string",
- "type": "string",
- "value": "string",
- "ttl": 0,
- "priority": 0,
- "dns_zone_id": "string",
- "site_id": "string",
- "flag": 0,
- "tag": "string",
- "managed": true
}
], - "dns_servers": [
- "string"
], - "account_id": "string",
- "site_id": "string",
- "account_slug": "string",
- "account_name": "string",
- "domain": "string",
- "ipv6_enabled": true,
- "dedicated": true
}Response samples
- 200
- default
[- {
- "id": "string",
- "name": "string",
- "errors": [
- "string"
], - "supported_record_types": [
- "string"
], - "user_id": "string",
- "created_at": "string",
- "updated_at": "string",
- "records": [
- {
- "id": "string",
- "hostname": "string",
- "type": "string",
- "value": "string",
- "ttl": 0,
- "priority": 0,
- "dns_zone_id": "string",
- "site_id": "string",
- "flag": 0,
- "tag": "string",
- "managed": true
}
], - "dns_servers": [
- "string"
], - "account_id": "string",
- "site_id": "string",
- "account_slug": "string",
- "account_name": "string",
- "domain": "string",
- "ipv6_enabled": true,
- "dedicated": true
}
]Response samples
- 200
- default
[- {
- "id": "string",
- "hostname": "string",
- "type": "string",
- "value": "string",
- "ttl": 0,
- "priority": 0,
- "dns_zone_id": "string",
- "site_id": "string",
- "flag": 0,
- "tag": "string",
- "managed": true
}
]Response samples
- 200
- default
{- "id": "string",
- "name": "string",
- "errors": [
- "string"
], - "supported_record_types": [
- "string"
], - "user_id": "string",
- "created_at": "string",
- "updated_at": "string",
- "records": [
- {
- "id": "string",
- "hostname": "string",
- "type": "string",
- "value": "string",
- "ttl": 0,
- "priority": 0,
- "dns_zone_id": "string",
- "site_id": "string",
- "flag": 0,
- "tag": "string",
- "managed": true
}
], - "dns_servers": [
- "string"
], - "account_id": "string",
- "site_id": "string",
- "account_slug": "string",
- "account_name": "string",
- "domain": "string",
- "ipv6_enabled": true,
- "dedicated": true
}Response samples
- 200
- default
[- {
- "id": "string",
- "name": "string",
- "errors": [
- "string"
], - "supported_record_types": [
- "string"
], - "user_id": "string",
- "created_at": "string",
- "updated_at": "string",
- "records": [
- {
- "id": "string",
- "hostname": "string",
- "type": "string",
- "value": "string",
- "ttl": 0,
- "priority": 0,
- "dns_zone_id": "string",
- "site_id": "string",
- "flag": 0,
- "tag": "string",
- "managed": true
}
], - "dns_servers": [
- "string"
], - "account_id": "string",
- "site_id": "string",
- "account_slug": "string",
- "account_name": "string",
- "domain": "string",
- "ipv6_enabled": true,
- "dedicated": true
}
]getIndividualDnsRecord
Authorizations:
path Parameters
| zone_id required | string |
| dns_record_id required | string |
Responses
Response samples
- 200
- default
{- "id": "string",
- "hostname": "string",
- "type": "string",
- "value": "string",
- "ttl": 0,
- "priority": 0,
- "dns_zone_id": "string",
- "site_id": "string",
- "flag": 0,
- "tag": "string",
- "managed": true
}transferDnsZone
Authorizations:
path Parameters
| zone_id required | string |
query Parameters
| account_id required | string the account of the dns zone |
| transfer_account_id required | string the account you want to transfer the dns zone to |
| transfer_user_id required | string the user you want to transfer the dns zone to |
Responses
Response samples
- 200
- default
{- "id": "string",
- "name": "string",
- "errors": [
- "string"
], - "supported_record_types": [
- "string"
], - "user_id": "string",
- "created_at": "string",
- "updated_at": "string",
- "records": [
- {
- "id": "string",
- "hostname": "string",
- "type": "string",
- "value": "string",
- "ttl": 0,
- "priority": 0,
- "dns_zone_id": "string",
- "site_id": "string",
- "flag": 0,
- "tag": "string",
- "managed": true
}
], - "dns_servers": [
- "string"
], - "account_id": "string",
- "site_id": "string",
- "account_slug": "string",
- "account_name": "string",
- "domain": "string",
- "ipv6_enabled": true,
- "dedicated": true
}provisionSiteTLSCertificate
Provisions or updates a TLS certificate for the site.
Creating a certificate (site has no certificate):
- Omit certificate params to initiate Let's Encrypt provisioning
- Provide certificate, key, and ca_certificates to upload a custom certificate
Updating a certificate (site already has a certificate):
- REQUIRES certificate, key, and ca_certificates to replace with a new custom certificate
- Use POST /api/v1/sites/{site_id}/ssl/renew to renew an existing Let's Encrypt certificate
Authorizations:
path Parameters
| site_id required | string |
query Parameters
| certificate | string PEM-encoded certificate. Required when updating an existing certificate. |
| key | string PEM-encoded private key. Required when updating an existing certificate. |
| ca_certificates | string PEM-encoded CA certificate chain. Required when updating an existing certificate. |
Responses
Response samples
- 200
- default
{- "state": "string",
- "domains": [
- "string"
], - "created_at": "string",
- "updated_at": "string",
- "expires_at": "string"
}Response samples
- 201
- default
{- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}createSiteDeploy
Authorizations:
path Parameters
| site_id required | string |
query Parameters
| deploy-previews | boolean |
| production | boolean |
| state | string Enum: "new" "pending_review" "accepted" "rejected" "enqueued" "building" "uploading" "uploaded" "preparing" "prepared" "processing" "processed" "ready" "error" "retrying" |
| branch | string |
| latest-published | boolean |
| title | string |
Request Body schema: application/json
| files | object |
| draft | boolean |
| async | boolean |
| functions | object |
Array of objects (functionSchedule) | |
object | |
| branch | string |
| framework | string |
| framework_version | string |
Responses
Request samples
- Payload
{- "files": { },
- "draft": true,
- "async": true,
- "functions": { },
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
], - "functions_config": {
- "property1": {
- "display_name": "string",
- "generator": "string",
- "build_data": { },
- "routes": [
- {
- "pattern": "string",
- "literal": "string",
- "expression": "string",
- "methods": [
- "GET"
], - "prefer_static": true
}
], - "excluded_routes": [
- {
- "pattern": "string",
- "literal": "string",
- "expression": "string"
}
], - "priority": 0,
- "traffic_rules": {
- "action": {
- "type": "string",
- "config": {
- "to": "string",
- "rate_limit_config": {
- "algorithm": "sliding_window",
- "window_size": 0,
- "window_limit": 0
}, - "aggregate": {
- "keys": [
- {
- "type": "ip"
}
]
}
}
}
}
}, - "property2": {
- "display_name": "string",
- "generator": "string",
- "build_data": { },
- "routes": [
- {
- "pattern": "string",
- "literal": "string",
- "expression": "string",
- "methods": [
- "GET"
], - "prefer_static": true
}
], - "excluded_routes": [
- {
- "pattern": "string",
- "literal": "string",
- "expression": "string"
}
], - "priority": 0,
- "traffic_rules": {
- "action": {
- "type": "string",
- "config": {
- "to": "string",
- "rate_limit_config": {
- "algorithm": "sliding_window",
- "window_size": 0,
- "window_limit": 0
}, - "aggregate": {
- "keys": [
- {
- "type": "ip"
}
]
}
}
}
}
}
}, - "branch": "string",
- "framework": "string",
- "framework_version": "string"
}Response samples
- 200
- default
{- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}Response samples
- 200
- default
{- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}getSiteDeploy
Authorizations:
path Parameters
| site_id required | string |
| deploy_id required | string |
Responses
Response samples
- 200
- default
{- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}listSiteDeploys
Authorizations:
path Parameters
| site_id required | string |
query Parameters
| deploy-previews | boolean |
| production | boolean |
| state | string Enum: "new" "pending_review" "accepted" "rejected" "enqueued" "building" "uploading" "uploaded" "preparing" "prepared" "processing" "processed" "ready" "error" "retrying" |
| branch | string |
| latest-published | boolean |
| page | integer <int32> |
| per_page | integer <int32> |
Responses
Response samples
- 200
- default
[- {
- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}
]Response samples
- 200
- default
{- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}restoreSiteDeploy
Authorizations:
path Parameters
| site_id required | string |
| deploy_id required | string |
Responses
Response samples
- 201
- default
{- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}Response samples
- 200
- default
{- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}updateSiteDeploy
Authorizations:
path Parameters
| site_id required | string |
| deploy_id required | string |
query Parameters
| commit_ref | string |
Request Body schema: application/json
| files | object |
| draft | boolean |
| async | boolean |
| functions | object |
Array of objects (functionSchedule) | |
object | |
| branch | string |
| framework | string |
| framework_version | string |
Responses
Request samples
- Payload
{- "files": { },
- "draft": true,
- "async": true,
- "functions": { },
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
], - "functions_config": {
- "property1": {
- "display_name": "string",
- "generator": "string",
- "build_data": { },
- "routes": [
- {
- "pattern": "string",
- "literal": "string",
- "expression": "string",
- "methods": [
- "GET"
], - "prefer_static": true
}
], - "excluded_routes": [
- {
- "pattern": "string",
- "literal": "string",
- "expression": "string"
}
], - "priority": 0,
- "traffic_rules": {
- "action": {
- "type": "string",
- "config": {
- "to": "string",
- "rate_limit_config": {
- "algorithm": "sliding_window",
- "window_size": 0,
- "window_limit": 0
}, - "aggregate": {
- "keys": [
- {
- "type": "ip"
}
]
}
}
}
}
}, - "property2": {
- "display_name": "string",
- "generator": "string",
- "build_data": { },
- "routes": [
- {
- "pattern": "string",
- "literal": "string",
- "expression": "string",
- "methods": [
- "GET"
], - "prefer_static": true
}
], - "excluded_routes": [
- {
- "pattern": "string",
- "literal": "string",
- "expression": "string"
}
], - "priority": 0,
- "traffic_rules": {
- "action": {
- "type": "string",
- "config": {
- "to": "string",
- "rate_limit_config": {
- "algorithm": "sliding_window",
- "window_size": 0,
- "window_limit": 0
}, - "aggregate": {
- "keys": [
- {
- "type": "ip"
}
]
}
}
}
}
}
}, - "branch": "string",
- "framework": "string",
- "framework_version": "string"
}Response samples
- 200
- default
{- "id": "string",
- "site_id": "string",
- "user_id": "string",
- "build_id": "string",
- "state": "string",
- "name": "string",
- "url": "string",
- "ssl_url": "string",
- "admin_url": "string",
- "deploy_url": "string",
- "deploy_ssl_url": "string",
- "screenshot_url": "string",
- "review_id": 0,
- "draft": true,
- "required": [
- "string"
], - "required_functions": [
- "string"
], - "error_message": "string",
- "branch": "string",
- "commit_ref": "string",
- "commit_url": "string",
- "skipped": true,
- "created_at": "string",
- "updated_at": "string",
- "published_at": "string",
- "title": "string",
- "context": "string",
- "locked": true,
- "review_url": "string",
- "framework": "string",
- "function_schedules": [
- {
- "name": "string",
- "cron": "string"
}
]
}createSiteBuild
Runs a build for a site. The build will be scheduled to run at the first opportunity, but it might not start immediately if insufficient account build capacity is available. Files for build could be also uploaded as a zipped site.
Authorizations:
path Parameters
| site_id required | string |
query Parameters
| branch | string The branch to build; defaults to main branch |
| clear_cache | boolean Whether to clear the build cache before building |
| image | string The build image tag to use for the build |
| template_id | string The build template to use for the build |
| title | string The title of the build |
Responses
Response samples
- 200
- default
{- "id": "string",
- "deploy_id": "string",
- "sha": "string",
- "done": true,
- "error": "string",
- "created_at": "string"
}Response samples
- 200
- default
[- {
- "active": 0,
- "pending_concurrency": 0,
- "enqueued": 0,
- "build_count": 0,
- "minutes": {
- "current": 0,
- "current_average_sec": 0,
- "previous": 0,
- "period_start_date": "string",
- "period_end_date": "string",
- "last_updated_at": "string",
- "included_minutes": "string",
- "included_minutes_with_packs": "string"
}
}
]listSiteBuilds
Authorizations:
path Parameters
| site_id required | string |
query Parameters
| page | integer <int32> |
| per_page | integer <int32> |
Responses
Response samples
- 200
- default
[- {
- "id": "string",
- "deploy_id": "string",
- "sha": "string",
- "done": true,
- "error": "string",
- "created_at": "string"
}
]createSiteDevServer
Authorizations:
path Parameters
| site_id required | string |
query Parameters
| branch | string |
Responses
Response samples
- 200
- default
[- {
- "id": "string",
- "site_id": "string",
- "branch": "string",
- "url": "string",
- "state": "string",
- "created_at": "string",
- "updated_at": "string",
- "starting_at": "string",
- "error_at": "string",
- "live_at": "string",
- "done_at": "string",
- "title": "string"
}
]getSiteDevServer
Authorizations:
path Parameters
| site_id required | string |
| dev_server_id required | string |
Responses
Response samples
- 200
{- "id": "string",
- "site_id": "string",
- "branch": "string",
- "url": "string",
- "state": "string",
- "created_at": "string",
- "updated_at": "string",
- "starting_at": "string",
- "error_at": "string",
- "live_at": "string",
- "done_at": "string",
- "title": "string"
}listSiteDevServers
Authorizations:
path Parameters
| site_id required | string |
query Parameters
| page | integer <int32> |
| per_page | integer <int32> |
Responses
Response samples
- 200
- default
[- {
- "id": "string",
- "site_id": "string",
- "branch": "string",
- "url": "string",
- "state": "string",
- "created_at": "string",
- "updated_at": "string",
- "starting_at": "string",
- "error_at": "string",
- "live_at": "string",
- "done_at": "string",
- "title": "string"
}
]updateDevServerState
Authorizations:
path Parameters
| site_id required | string |
| dev_server_id required | string |
Request Body schema: application/json
| state required | string Enum: "starting" "live" "error" "done" |
| task_id | string |
| error | string |
Responses
Request samples
- Payload
{- "state": "starting",
- "task_id": "string",
- "error": "string"
}Response samples
- 200
{- "id": "string",
- "site_id": "string",
- "branch": "string",
- "url": "string",
- "state": "string",
- "created_at": "string",
- "updated_at": "string",
- "starting_at": "string",
- "error_at": "string",
- "live_at": "string",
- "done_at": "string",
- "title": "string"
}createHookBySiteId
Authorizations:
query Parameters
| site_id required | string |
Request Body schema: application/json
| id | string |
| site_id | string |
| type | string |
| event | string |
| data | object |
| created_at | string <dateTime> |
| updated_at | string <dateTime> |
| disabled | boolean |
Responses
Request samples
- Payload
{- "id": "string",
- "site_id": "string",
- "type": "string",
- "event": "string",
- "data": { },
- "created_at": "string",
- "updated_at": "string",
- "disabled": true
}Response samples
- 201
- default
{- "id": "string",
- "site_id": "string",
- "type": "string",
- "event": "string",
- "data": { },
- "created_at": "string",
- "updated_at": "string",
- "disabled": true
}updateHook
Authorizations:
path Parameters
| hook_id required | string |
Request Body schema: application/json
| id | string |
| site_id | string |
| type | string |
| event | string |
| data | object |
| created_at | string <dateTime> |
| updated_at | string <dateTime> |
| disabled | boolean |
Responses
Request samples
- Payload
{- "id": "string",
- "site_id": "string",
- "type": "string",
- "event": "string",
- "data": { },
- "created_at": "string",
- "updated_at": "string",
- "disabled": true
}Response samples
- 200
- default
{- "id": "string",
- "site_id": "string",
- "type": "string",
- "event": "string",
- "data": { },
- "created_at": "string",
- "updated_at": "string",
- "disabled": true
}createSiteBuildHook
Authorizations:
path Parameters
| site_id required | string |
Request Body schema: application/json
| title | string |
| branch | string |
Responses
Request samples
- Payload
{- "title": "string",
- "branch": "string"
}Response samples
- 201
- default
{- "id": "string",
- "title": "string",
- "branch": "string",
- "url": "string",
- "site_id": "string",
- "created_at": "string"
}updateSiteBuildHook
Authorizations:
path Parameters
| site_id required | string |
| id required | string |
Request Body schema: application/json
| title | string |
| branch | string |
Responses
Request samples
- Payload
{- "title": "string",
- "branch": "string"
}Response samples
- default
{- "code": 0,
- "message": "string"
}createSiteDevServerHook
Authorizations:
path Parameters
| site_id required | string |
Request Body schema: application/json
| title | string |
| branch | string |
| type | string Enum: "new_dev_server" "content_refresh" |
Responses
Request samples
- Payload
{- "title": "string",
- "branch": "string",
- "type": "new_dev_server"
}Response samples
- 201
- default
{- "id": "string",
- "title": "string",
- "branch": "string",
- "url": "string",
- "site_id": "string",
- "created_at": "string",
- "type": "new_dev_server"
}getSiteDevServerHook
Authorizations:
path Parameters
| site_id required | string |
| id required | string |
Responses
Response samples
- 200
- default
{- "id": "string",
- "title": "string",
- "branch": "string",
- "url": "string",
- "site_id": "string",
- "created_at": "string",
- "type": "new_dev_server"
}updateSiteDevServerHook
Authorizations:
path Parameters
| site_id required | string |
| id required | string |
Request Body schema: application/json
| title | string |
| branch | string |
| type | string Enum: "new_dev_server" "content_refresh" |
Responses
Request samples
- Payload
{- "title": "string",
- "branch": "string",
- "type": "new_dev_server"
}Response samples
- default
{- "code": 0,
- "message": "string"
}Response samples
- 200
- default
[- {
- "id": "string",
- "name": "string",
- "slug": "string",
- "service_path": "string",
- "long_description": "string",
- "description": "string",
- "events": [
- { }
], - "tags": [
- "string"
], - "icon": "string",
- "manifest_url": "string",
- "environments": [
- "string"
], - "created_at": "string",
- "updated_at": "string"
}
]Response samples
- 200
- default
{- "id": "string",
- "name": "string",
- "slug": "string",
- "service_path": "string",
- "long_description": "string",
- "description": "string",
- "events": [
- { }
], - "tags": [
- "string"
], - "icon": "string",
- "manifest_url": "string",
- "environments": [
- "string"
], - "created_at": "string",
- "updated_at": "string"
}createServiceInstance
Authorizations:
path Parameters
| site_id required | string |
| addon required | string |
Request Body schema: application/json
Responses
Request samples
- Payload
{ }Response samples
- 201
- default
{- "id": "string",
- "url": "string",
- "config": { },
- "external_attributes": { },
- "service_slug": "string",
- "service_path": "string",
- "service_name": "string",
- "env": { },
- "snippets": [
- { }
], - "auth_url": "string",
- "created_at": "string",
- "updated_at": "string"
}listServiceInstancesForSite
Authorizations:
path Parameters
| site_id required | string |
Responses
Response samples
- 200
- default
[- {
- "id": "string",
- "url": "string",
- "config": { },
- "external_attributes": { },
- "service_slug": "string",
- "service_path": "string",
- "service_name": "string",
- "env": { },
- "snippets": [
- { }
], - "auth_url": "string",
- "created_at": "string",
- "updated_at": "string"
}
]showServiceInstance
Authorizations:
path Parameters
| site_id required | string |
| addon required | string |
| instance_id required | string |
Responses
Response samples
- 200
- default
{- "id": "string",
- "url": "string",
- "config": { },
- "external_attributes": { },
- "service_slug": "string",
- "service_path": "string",
- "service_name": "string",
- "env": { },
- "snippets": [
- { }
], - "auth_url": "string",
- "created_at": "string",
- "updated_at": "string"
}updateServiceInstance
Authorizations:
path Parameters
| site_id required | string |
| addon required | string |
| instance_id required | string |
Request Body schema: application/json
Responses
Request samples
- Payload
{ }Response samples
- default
{- "code": 0,
- "message": "string"
}uploadDeployFunction
Authorizations:
path Parameters
| deploy_id required | string |
| name required | string |
query Parameters
| runtime | string |
| invocation_mode | string |
| timeout | integer |
| size | integer |
header Parameters
| X-Nf-Retry-Count | integer |
Request Body schema: application/octet-stream
Responses
Response samples
- 200
- default
{- "id": "string",
- "name": "string",
- "sha": "string"
}listFormSubmission
Authorizations:
path Parameters
| submission_id required | string |
query Parameters
| query | string |
| page | integer <int32> |
| per_page | integer <int32> |
Responses
Response samples
- 200
- default
[- {
- "id": "string",
- "number": 0,
- "email": "string",
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "company": "string",
- "summary": "string",
- "body": "string",
- "data": { },
- "created_at": "string",
- "site_url": "string"
}
]listFormSubmissions
Authorizations:
path Parameters
| form_id required | string |
query Parameters
| page | integer <int32> |
| per_page | integer <int32> |
Responses
Response samples
- 200
- default
[- {
- "id": "string",
- "number": 0,
- "email": "string",
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "company": "string",
- "summary": "string",
- "body": "string",
- "data": { },
- "created_at": "string",
- "site_url": "string"
}
]listSiteSubmissions
Authorizations:
path Parameters
| site_id required | string |
query Parameters
| page | integer <int32> |
| per_page | integer <int32> |
Responses
Response samples
- 200
- default
[- {
- "id": "string",
- "number": 0,
- "email": "string",
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "company": "string",
- "summary": "string",
- "body": "string",
- "data": { },
- "created_at": "string",
- "site_url": "string"
}
]createSplitTest
Authorizations:
path Parameters
| site_id required | string |
Request Body schema: application/json
| branch_tests | object |
Responses
Request samples
- Payload
{- "branch_tests": { }
}Response samples
- 201
- default
{- "id": "string",
- "site_id": "string",
- "name": "string",
- "path": "string",
- "branches": [
- { }
], - "active": true,
- "created_at": "string",
- "updated_at": "string",
- "unpublished_at": "string"
}getSplitTest
Authorizations:
path Parameters
| site_id required | string |
| split_test_id required | string |
Responses
Response samples
- 200
- default
{- "id": "string",
- "site_id": "string",
- "name": "string",
- "path": "string",
- "branches": [
- { }
], - "active": true,
- "created_at": "string",
- "updated_at": "string",
- "unpublished_at": "string"
}Response samples
- 200
- default
[- {
- "id": "string",
- "site_id": "string",
- "name": "string",
- "path": "string",
- "branches": [
- { }
], - "active": true,
- "created_at": "string",
- "updated_at": "string",
- "unpublished_at": "string"
}
]updateSplitTest
Authorizations:
path Parameters
| site_id required | string |
| split_test_id required | string |
Request Body schema: application/json
| branch_tests | object |
Responses
Request samples
- Payload
{- "branch_tests": { }
}Response samples
- 201
- default
{- "id": "string",
- "site_id": "string",
- "name": "string",
- "path": "string",
- "branches": [
- { }
], - "active": true,
- "created_at": "string",
- "updated_at": "string",
- "unpublished_at": "string"
}createSiteAsset
Authorizations:
path Parameters
| site_id required | string |
query Parameters
| name required | string |
| size required | integer <int64> |
| content_type required | string |
| visibility | string |
Responses
Response samples
- 201
- default
{- "form": {
- "url": "string",
- "fields": {
- "property1": "string",
- "property2": "string"
}
}, - "asset": {
- "id": "string",
- "site_id": "string",
- "creator_id": "string",
- "name": "string",
- "state": "string",
- "content_type": "string",
- "url": "string",
- "key": "string",
- "visibility": "string",
- "size": 0,
- "created_at": "string",
- "updated_at": "string"
}
}getSiteAssetInfo
Authorizations:
path Parameters
| site_id required | string |
| asset_id required | string |
Responses
Response samples
- 200
- default
{- "id": "string",
- "site_id": "string",
- "creator_id": "string",
- "name": "string",
- "state": "string",
- "content_type": "string",
- "url": "string",
- "key": "string",
- "visibility": "string",
- "size": 0,
- "created_at": "string",
- "updated_at": "string"
}Response samples
- 200
- default
[- {
- "id": "string",
- "site_id": "string",
- "creator_id": "string",
- "name": "string",
- "state": "string",
- "content_type": "string",
- "url": "string",
- "key": "string",
- "visibility": "string",
- "size": 0,
- "created_at": "string",
- "updated_at": "string"
}
]updateSiteAsset
Authorizations:
path Parameters
| site_id required | string |
| asset_id required | string |
query Parameters
| state required | string |
Responses
Response samples
- 200
- default
{- "id": "string",
- "site_id": "string",
- "creator_id": "string",
- "name": "string",
- "state": "string",
- "content_type": "string",
- "url": "string",
- "key": "string",
- "visibility": "string",
- "size": 0,
- "created_at": "string",
- "updated_at": "string"
}