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:
201 - ok
Body
authorized
boolean
client_id
string
created_at
string
id
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/oauth/tickets' --header 'ContentType:
application/json'
200 - ok
Body
authorized
boolean
client_id
string
created_at
string
id
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/oauth/tickets/{ticket_id}' --header 'ContentType:
application/json'
201 - ok
Body
access_token
string
created_at
string
id
string
user_email
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/oauth/tickets/{ticket_id}/exchange' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/user' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/accounts' --header 'ContentType:
application/json'
201 - Created
Body
billing_details
string
billing_email
string
billing_name
string
billing_period
string
capabilities
object
created_at
string
id
string
name
string
owner_ids
array
payment_method_id
string
roles_allowed
array
slug
string
type
string
type_id
string
type_name
string
updated_at
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/accounts' --header 'ContentType:
application/json'
204 - Not Content
Body
default - error
Body
code
integer
message
string
curl --request
DELETE
--url 'api.netlify.com
/accounts/{account_id}' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/accounts/{account_id}' --header 'ContentType:
application/json'
200 - OK
Body
billing_details
string
billing_email
string
billing_name
string
billing_period
string
capabilities
object
created_at
string
id
string
name
string
owner_ids
array
payment_method_id
string
roles_allowed
array
slug
string
type
string
type_id
string
type_name
string
updated_at
string
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/accounts/{account_id}' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/{account_slug}/members' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/{account_slug}/members' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/accounts/types' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/billing/payment_methods' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/accounts/{account_id}/audit' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites' --header 'ContentType:
application/json'
201 - Created
Body
account_name
string
account_slug
string
admin_url
string
build_image
string
build_settings
object
capabilities
object
created_at
string
custom_domain
string
default_hooks_data
object
deploy_hook
string
deploy_url
string
domain_aliases
array
force_ssl
boolean
git_provider
string
id
string
id_domain
string
managed_dns
boolean
name
string
notification_email
string
password
string
plan
string
prerender
string
processing_settings
object
published_deploy
object
screenshot_url
string
session_id
string
ssl
boolean
ssl_url
string
state
string
updated_at
string
url
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites' --header 'ContentType:
application/json'
204 - Deleted
Body
default - error
Body
code
integer
message
string
curl --request
DELETE
--url 'api.netlify.com
/sites/{site_id}' --header 'ContentType:
application/json'
200 - OK
Body
account_name
string
account_slug
string
admin_url
string
build_image
string
build_settings
object
capabilities
object
created_at
string
custom_domain
string
default_hooks_data
object
deploy_hook
string
deploy_url
string
domain_aliases
array
force_ssl
boolean
git_provider
string
id
string
id_domain
string
managed_dns
boolean
name
string
notification_email
string
password
string
plan
string
prerender
string
processing_settings
object
published_deploy
object
screenshot_url
string
session_id
string
ssl
boolean
ssl_url
string
state
string
updated_at
string
url
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}' --header 'ContentType:
application/json'
200 - OK
Body
account_name
string
account_slug
string
admin_url
string
build_image
string
build_settings
object
capabilities
object
created_at
string
custom_domain
string
default_hooks_data
object
deploy_hook
string
deploy_url
string
domain_aliases
array
force_ssl
boolean
git_provider
string
id
string
id_domain
string
managed_dns
boolean
name
string
notification_email
string
password
string
plan
string
prerender
string
processing_settings
object
published_deploy
object
screenshot_url
string
session_id
string
ssl
boolean
ssl_url
string
state
string
updated_at
string
url
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
PATCH
--url 'api.netlify.com
/sites/{site_id}' --header 'ContentType:
application/json'
[Beta] Unlinks the repo from the site.
This action will also:
200 - OK
Body
account_name
string
account_slug
string
admin_url
string
build_image
string
build_settings
object
capabilities
object
created_at
string
custom_domain
string
default_hooks_data
object
deploy_hook
string
deploy_url
string
domain_aliases
array
force_ssl
boolean
git_provider
string
id
string
id_domain
string
managed_dns
boolean
name
string
notification_email
string
password
string
plan
string
prerender
string
processing_settings
object
published_deploy
object
screenshot_url
string
session_id
string
ssl
boolean
ssl_url
string
state
string
updated_at
string
url
string
user_id
string
404 - Site not found
Body
curl --request
PUT
--url 'api.netlify.com
/sites/{site_id}/unlink_repo' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/{account_slug}/sites' --header 'ContentType:
application/json'
201 - Created
Body
account_name
string
account_slug
string
admin_url
string
build_image
string
build_settings
object
capabilities
object
created_at
string
custom_domain
string
default_hooks_data
object
deploy_hook
string
deploy_url
string
domain_aliases
array
force_ssl
boolean
git_provider
string
id
string
id_domain
string
managed_dns
boolean
name
string
notification_email
string
password
string
plan
string
prerender
string
processing_settings
object
published_deploy
object
screenshot_url
string
session_id
string
ssl
boolean
ssl_url
string
state
string
updated_at
string
url
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/{account_slug}/sites' --header 'ContentType:
application/json'
200 - OK
Body
id
string
mime_type
string
path
string
sha
string
size
integer
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/deploys/{deploy_id}/files/{path}' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/files' --header 'ContentType:
application/json'
200 - OK
Body
id
string
mime_type
string
path
string
sha
string
size
integer
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/files/{file_path}' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/metadata' --header 'ContentType:
application/json'
204 - No content
Body
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/sites/{site_id}/metadata' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/snippets' --header 'ContentType:
application/json'
201 - OK
Body
general
string
general_position
string
goal
string
goal_position
string
id
integer
site_id
string
title
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites/{site_id}/snippets' --header 'ContentType:
application/json'
204 - No content
Body
default - error
Body
code
integer
message
string
curl --request
DELETE
--url 'api.netlify.com
/sites/{site_id}/snippets/{snippet_id}' --header 'ContentType:
application/json'
200 - OK
Body
general
string
general_position
string
goal
string
goal_position
string
id
integer
site_id
string
title
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/snippets/{snippet_id}' --header 'ContentType:
application/json'
204 - No content
Body
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/sites/{site_id}/snippets/{snippet_id}' --header 'ContentType:
application/json'
200 - get all DNS zones the user has access to
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/dns_zones' --header 'ContentType:
application/json'
201 - Created
Body
account_id
string
account_name
string
account_slug
string
created_at
string
dedicated
boolean
dns_servers
array
domain
string
errors
array
id
string
ipv6_enabled
boolean
name
string
records
array
site_id
string
supported_record_types
array
updated_at
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/dns_zones' --header 'ContentType:
application/json'
204 - delete a single DNS zone
Body
default - error
Body
code
integer
message
string
curl --request
DELETE
--url 'api.netlify.com
/dns_zones/{zone_id}' --header 'ContentType:
application/json'
200 - get a single DNS zone
Body
account_id
string
account_name
string
account_slug
string
created_at
string
dedicated
boolean
dns_servers
array
domain
string
errors
array
id
string
ipv6_enabled
boolean
name
string
records
array
site_id
string
supported_record_types
array
updated_at
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/dns_zones/{zone_id}' --header 'ContentType:
application/json'
200 - get all DNS records for a single DNS zone
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/dns_zones/{zone_id}/dns_records' --header 'ContentType:
application/json'
201 - Created
Body
dns_zone_id
string
flag
integer
hostname
string
id
string
managed
boolean
priority
integer
site_id
string
tag
string
ttl
integer
type
string
value
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/dns_zones/{zone_id}/dns_records' --header 'ContentType:
application/json'
204 - record deleted
Body
default - error
Body
code
integer
message
string
curl --request
DELETE
--url 'api.netlify.com
/dns_zones/{zone_id}/dns_records/{dns_record_id}' --header 'ContentType:
application/json'
200 - get a single DNS record
Body
dns_zone_id
string
flag
integer
hostname
string
id
string
managed
boolean
priority
integer
site_id
string
tag
string
ttl
integer
type
string
value
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/dns_zones/{zone_id}/dns_records/{dns_record_id}' --header 'ContentType:
application/json'
200 - transfer a DNS zone to another account
Body
account_id
string
account_name
string
account_slug
string
created_at
string
dedicated
boolean
dns_servers
array
domain
string
errors
array
id
string
ipv6_enabled
boolean
name
string
records
array
site_id
string
supported_record_types
array
updated_at
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/dns_zones/{zone_id}/transfer' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/dns' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/sites/{site_id}/dns' --header 'ContentType:
application/json'
200 - OK
Body
created_at
string
domains
array
expires_at
string
state
string
updated_at
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/ssl' --header 'ContentType:
application/json'
200 - OK
Body
created_at
string
domains
array
expires_at
string
state
string
updated_at
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites/{site_id}/ssl' --header 'ContentType:
application/json'
200 - OK
Body
admin_url
string
branch
string
build_id
string
commit_ref
string
commit_url
string
context
string
created_at
string
deploy_ssl_url
string
deploy_url
string
draft
boolean
error_message
string
framework
string
id
string
locked
boolean
name
string
published_at
string
required
array
required_functions
array
review_id
number
review_url
string
screenshot_url
string
site_capabilities
object
site_id
string
skipped
boolean
ssl_url
string
state
string
title
string
updated_at
string
url
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/deploys/{deploy_id}' --header 'ContentType:
application/json'
201 - Cancelled
Body
admin_url
string
branch
string
build_id
string
commit_ref
string
commit_url
string
context
string
created_at
string
deploy_ssl_url
string
deploy_url
string
draft
boolean
error_message
string
framework
string
id
string
locked
boolean
name
string
published_at
string
required
array
required_functions
array
review_id
number
review_url
string
screenshot_url
string
site_capabilities
object
site_id
string
skipped
boolean
ssl_url
string
state
string
title
string
updated_at
string
url
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/deploys/{deploy_id}/cancel' --header 'ContentType:
application/json'
200 - OK
Body
admin_url
string
branch
string
build_id
string
commit_ref
string
commit_url
string
context
string
created_at
string
deploy_ssl_url
string
deploy_url
string
draft
boolean
error_message
string
framework
string
id
string
locked
boolean
name
string
published_at
string
required
array
required_functions
array
review_id
number
review_url
string
screenshot_url
string
site_capabilities
object
site_id
string
skipped
boolean
ssl_url
string
state
string
title
string
updated_at
string
url
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/deploys/{deploy_id}/lock' --header 'ContentType:
application/json'
200 - OK
Body
admin_url
string
branch
string
build_id
string
commit_ref
string
commit_url
string
context
string
created_at
string
deploy_ssl_url
string
deploy_url
string
draft
boolean
error_message
string
framework
string
id
string
locked
boolean
name
string
published_at
string
required
array
required_functions
array
review_id
number
review_url
string
screenshot_url
string
site_capabilities
object
site_id
string
skipped
boolean
ssl_url
string
state
string
title
string
updated_at
string
url
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/deploys/{deploy_id}/unlock' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/deploys' --header 'ContentType:
application/json'
200 - OK
Body
admin_url
string
branch
string
build_id
string
commit_ref
string
commit_url
string
context
string
created_at
string
deploy_ssl_url
string
deploy_url
string
draft
boolean
error_message
string
framework
string
id
string
locked
boolean
name
string
published_at
string
required
array
required_functions
array
review_id
number
review_url
string
screenshot_url
string
site_capabilities
object
site_id
string
skipped
boolean
ssl_url
string
state
string
title
string
updated_at
string
url
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites/{site_id}/deploys' --header 'ContentType:
application/json'
200 - OK
Body
admin_url
string
branch
string
build_id
string
commit_ref
string
commit_url
string
context
string
created_at
string
deploy_ssl_url
string
deploy_url
string
draft
boolean
error_message
string
framework
string
id
string
locked
boolean
name
string
published_at
string
required
array
required_functions
array
review_id
number
review_url
string
screenshot_url
string
site_capabilities
object
site_id
string
skipped
boolean
ssl_url
string
state
string
title
string
updated_at
string
url
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/deploys/{deploy_id}' --header 'ContentType:
application/json'
200 - OK
Body
admin_url
string
branch
string
build_id
string
commit_ref
string
commit_url
string
context
string
created_at
string
deploy_ssl_url
string
deploy_url
string
draft
boolean
error_message
string
framework
string
id
string
locked
boolean
name
string
published_at
string
required
array
required_functions
array
review_id
number
review_url
string
screenshot_url
string
site_capabilities
object
site_id
string
skipped
boolean
ssl_url
string
state
string
title
string
updated_at
string
url
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/sites/{site_id}/deploys/{deploy_id}' --header 'ContentType:
application/json'
201 - Created
Body
admin_url
string
branch
string
build_id
string
commit_ref
string
commit_url
string
context
string
created_at
string
deploy_ssl_url
string
deploy_url
string
draft
boolean
error_message
string
framework
string
id
string
locked
boolean
name
string
published_at
string
required
array
required_functions
array
review_id
number
review_url
string
screenshot_url
string
site_capabilities
object
site_id
string
skipped
boolean
ssl_url
string
state
string
title
string
updated_at
string
url
string
user_id
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites/{site_id}/deploys/{deploy_id}/restore' --header 'ContentType:
application/json'
204 - No content
Body
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites/{site_id}/rollback' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/deployed-branches' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/deploy_keys' --header 'ContentType:
application/json'
201 - Created
Body
created_at
string
id
string
public_key
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/deploy_keys' --header 'ContentType:
application/json'
204 - Not Content
Body
default - error
Body
code
integer
message
string
curl --request
DELETE
--url 'api.netlify.com
/deploy_keys/{key_id}' --header 'ContentType:
application/json'
200 - OK
Body
created_at
string
id
string
public_key
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/deploy_keys/{key_id}' --header 'ContentType:
application/json'
200 - OK
Body
created_at
string
deploy_id
string
done
boolean
error
string
id
string
sha
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/builds/{build_id}' --header 'ContentType:
application/json'
204 - No content
Body
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/builds/{build_id}/start' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/builds' --header 'ContentType:
application/json'
200 - OK
Body
created_at
string
deploy_id
string
done
boolean
error
string
id
string
sha
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites/{site_id}/builds' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/{account_id}/builds/status' --header 'ContentType:
application/json'
204 - No content
Body
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/builds/{build_id}/log' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/hooks' --header 'ContentType:
application/json'
201 - OK
Body
created_at
string
data
object
disabled
boolean
event
string
id
string
site_id
string
type
string
updated_at
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/hooks' --header 'ContentType:
application/json'
204 - No content
Body
curl --request
DELETE
--url 'api.netlify.com
/hooks/{hook_id}' --header 'ContentType:
application/json'
200 - OK
Body
created_at
string
data
object
disabled
boolean
event
string
id
string
site_id
string
type
string
updated_at
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/hooks/{hook_id}' --header 'ContentType:
application/json'
200 - OK
Body
created_at
string
data
object
disabled
boolean
event
string
id
string
site_id
string
type
string
updated_at
string
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/hooks/{hook_id}' --header 'ContentType:
application/json'
200 - OK
Body
created_at
string
data
object
disabled
boolean
event
string
id
string
site_id
string
type
string
updated_at
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/hooks/{hook_id}/enable' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/hooks/types' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/build_hooks' --header 'ContentType:
application/json'
201 - Created
Body
branch
string
created_at
string
id
string
site_id
string
title
string
url
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites/{site_id}/build_hooks' --header 'ContentType:
application/json'
204 - No content
Body
default - error
Body
code
integer
message
string
curl --request
DELETE
--url 'api.netlify.com
/sites/{site_id}/build_hooks/{id}' --header 'ContentType:
application/json'
200 - OK
Body
branch
string
created_at
string
id
string
site_id
string
title
string
url
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/build_hooks/{id}' --header 'ContentType:
application/json'
204 - No content
Body
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/sites/{site_id}/build_hooks/{id}' --header 'ContentType:
application/json'
200 - services
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/services/' --header 'ContentType:
application/json'
200 - services
Body
created_at
string
description
string
environments
array
events
array
icon
string
id
string
long_description
string
manifest_url
string
name
string
service_path
string
slug
string
tags
array
updated_at
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/services/{addonName}' --header 'ContentType:
application/json'
201 - retrieving from provider
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/services/{addonName}/manifest' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/service-instances' --header 'ContentType:
application/json'
201 - Created
Body
auth_url
string
config
object
created_at
string
env
object
external_attributes
object
id
string
service_name
string
service_path
string
service_slug
string
snippets
array
updated_at
string
url
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites/{site_id}/services/{addon}/instances' --header 'ContentType:
application/json'
204 - Deleted
Body
default - error
Body
code
integer
message
string
curl --request
DELETE
--url 'api.netlify.com
/sites/{site_id}/services/{addon}/instances/{instance_id}' --header 'ContentType:
application/json'
200 - OK
Body
auth_url
string
config
object
created_at
string
env
object
external_attributes
object
id
string
service_name
string
service_path
string
service_slug
string
snippets
array
updated_at
string
url
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/services/{addon}/instances/{instance_id}' --header 'ContentType:
application/json'
204 - No Content
Body
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/sites/{site_id}/services/{addon}/instances/{instance_id}' --header 'ContentType:
application/json'
200 - OK
Body
id
string
name
string
sha
string
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/deploys/{deploy_id}/functions/{name}' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/forms' --header 'ContentType:
application/json'
204 - Deleted
Body
default - error
Body
code
integer
message
string
curl --request
DELETE
--url 'api.netlify.com
/sites/{site_id}/forms/{form_id}' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/forms/{form_id}/submissions' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/submissions' --header 'ContentType:
application/json'
204 - Deleted
Body
default - error
Body
code
integer
message
string
curl --request
DELETE
--url 'api.netlify.com
/submissions/{submission_id}' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/submissions/{submission_id}' --header 'ContentType:
application/json'
200 - split_tests
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/traffic_splits' --header 'ContentType:
application/json'
201 - Created
Body
active
boolean
branches
array
created_at
string
id
string
name
string
path
string
site_id
string
unpublished_at
string
updated_at
string
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites/{site_id}/traffic_splits' --header 'ContentType:
application/json'
200 - split_test
Body
active
boolean
branches
array
created_at
string
id
string
name
string
path
string
site_id
string
unpublished_at
string
updated_at
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/traffic_splits/{split_test_id}' --header 'ContentType:
application/json'
201 - Created
Body
active
boolean
branches
array
created_at
string
id
string
name
string
path
string
site_id
string
unpublished_at
string
updated_at
string
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/sites/{site_id}/traffic_splits/{split_test_id}' --header 'ContentType:
application/json'
204 - enable
Body
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites/{site_id}/traffic_splits/{split_test_id}/publish' --header 'ContentType:
application/json'
204 - disabled
Body
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites/{site_id}/traffic_splits/{split_test_id}/unpublish' --header 'ContentType:
application/json'
200 - OK
Body
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/assets' --header 'ContentType:
application/json'
201 - Created
Body
asset
object
form
object
default - error
Body
code
integer
message
string
curl --request
POST
--url 'api.netlify.com
/sites/{site_id}/assets' --header 'ContentType:
application/json'
204 - Deleted
Body
default - error
Body
code
integer
message
string
curl --request
DELETE
--url 'api.netlify.com
/sites/{site_id}/assets/{asset_id}' --header 'ContentType:
application/json'
200 - OK
Body
content_type
string
created_at
string
creator_id
string
id
string
key
string
name
string
site_id
string
size
integer
state
string
updated_at
string
url
string
visibility
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/assets/{asset_id}' --header 'ContentType:
application/json'
200 - Updated
Body
content_type
string
created_at
string
creator_id
string
id
string
key
string
name
string
site_id
string
size
integer
state
string
updated_at
string
url
string
visibility
string
default - error
Body
code
integer
message
string
curl --request
PUT
--url 'api.netlify.com
/sites/{site_id}/assets/{asset_id}' --header 'ContentType:
application/json'
200 - OK
Body
url
string
default - error
Body
code
integer
message
string
curl --request
GET
--url 'api.netlify.com
/sites/{site_id}/assets/{asset_id}/public_signature' --header 'ContentType:
application/json'