Netlify's API documentation (0.12.0)

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:

Authentication

netlifyAuth

Security scheme type: OAuth2
implicit OAuth Flow
Authorization URL: https://app.netlify.com/authorize
Scopes:

    Ticket

    createTicket

    Authorizations:
    query Parameters
    client_id
    required
    string

    Responses

    201

    ok

    default

    error

    post /oauth/tickets
    https://api.netlify.com/api/v1/oauth/tickets

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "client_id": "string",
    • "authorized": true,
    • "created_at": "string"
    }

    showTicket

    Authorizations:
    path Parameters
    ticket_id
    required
    string

    Responses

    200

    ok

    default

    error

    get /oauth/tickets/{ticket_id}
    https://api.netlify.com/api/v1/oauth/tickets/{ticket_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "client_id": "string",
    • "authorized": true,
    • "created_at": "string"
    }

    Access token

    exchangeTicket

    Authorizations:
    path Parameters
    ticket_id
    required
    string

    Responses

    201

    ok

    default

    error

    post /oauth/tickets/{ticket_id}/exchange
    https://api.netlify.com/api/v1/oauth/tickets/{ticket_id}/exchange

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "access_token": "string",
    • "user_id": "string",
    • "user_email": "string",
    • "created_at": "string"
    }

    User

    getCurrentUser

    Authorizations:

    Responses

    200

    OK

    default

    error

    get /user
    https://api.netlify.com/api/v1/user

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    Accounts

    listAccountsForUser

    Authorizations:

    Responses

    200

    OK

    default

    error

    get /accounts
    https://api.netlify.com/api/v1/accounts

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    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

    201

    Created

    default

    error

    post /accounts
    https://api.netlify.com/api/v1/accounts

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "name": "string",
    • "type_id": "string",
    • "payment_method_id": "string",
    • "period": "monthly",
    • "extra_seats_block": 0
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "name": "string",
    • "slug": "string",
    • "type": "string",
    • "capabilities":
      {
      },
    • "billing_name": "string",
    • "billing_email": "string",
    • "billing_details": "string",
    • "billing_period": "string",
    • "payment_method_id": "string",
    • "type_name": "string",
    • "type_id": "string",
    • "owner_ids":
      [
      ],
    • "roles_allowed":
      [
      ],
    • "created_at": "string",
    • "updated_at": "string"
    }

    getAccount

    Authorizations:
    path Parameters
    account_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /accounts/{account_id}
    https://api.netlify.com/api/v1/accounts/{account_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    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

    200

    OK

    default

    error

    put /accounts/{account_id}
    https://api.netlify.com/api/v1/accounts/{account_id}

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "name": "string",
    • "slug": "string",
    • "type_id": "string",
    • "extra_seats_block": 0,
    • "billing_name": "string",
    • "billing_email": "string",
    • "billing_details": "string"
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "name": "string",
    • "slug": "string",
    • "type": "string",
    • "capabilities":
      {
      },
    • "billing_name": "string",
    • "billing_email": "string",
    • "billing_details": "string",
    • "billing_period": "string",
    • "payment_method_id": "string",
    • "type_name": "string",
    • "type_id": "string",
    • "owner_ids":
      [
      ],
    • "roles_allowed":
      [
      ],
    • "created_at": "string",
    • "updated_at": "string"
    }

    cancelAccount

    Authorizations:
    path Parameters
    account_id
    required
    string

    Responses

    204

    Not Content

    default

    error

    delete /accounts/{account_id}
    https://api.netlify.com/api/v1/accounts/{account_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    Member

    listMembersForAccount

    Authorizations:
    path Parameters
    account_slug
    required
    string

    Responses

    200

    OK

    default

    error

    get /{account_slug}/members
    https://api.netlify.com/api/v1/{account_slug}/members

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    addMemberToAccount

    Authorizations:
    path Parameters
    account_slug
    required
    string
    query Parameters
    email
    required
    string
    role
    string
    Enum: "Owner" "Collaborator" "Controller"

    Responses

    200

    OK

    default

    error

    post /{account_slug}/members
    https://api.netlify.com/api/v1/{account_slug}/members

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    Access type

    listAccountTypesForUser

    Authorizations:

    Responses

    200

    OK

    default

    error

    get /accounts/types
    https://api.netlify.com/api/v1/accounts/types

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    Payment method

    listPaymentMethodsForUser

    Authorizations:

    Responses

    200

    OK

    default

    error

    get /billing/payment_methods
    https://api.netlify.com/api/v1/billing/payment_methods

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    Audit log

    listAccountAuditEvents

    Authorizations:
    path Parameters
    account_id
    required
    string
    query Parameters
    query
    string
    log_type
    string

    Responses

    200

    OK

    default

    error

    get /accounts/{account_id}/audit
    https://api.netlify.com/api/v1/accounts/{account_id}/audit

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    Site

    listSites

    Authorizations:
    query Parameters
    name
    string
    filter
    string
    Enum: "all" "owner" "guest"

    Responses

    200

    OK

    default

    error

    get /sites
    https://api.netlify.com/api/v1/sites

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    createSite

    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
    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
    published_deploy
    object (deploy)
    account_name
    string
    account_slug
    string
    git_provider
    string
    deploy_hook
    string
    capabilities
    object
    processing_settings
    object
    build_settings
    object (repoInfo)
    id_domain
    string
    default_hooks_data
    object
    build_image
    string
    repo
    object (repoInfo)

    Responses

    201

    Created

    default

    error

    post /sites
    https://api.netlify.com/api/v1/sites

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "state": "string",
    • "plan": "string",
    • "name": "string",
    • "custom_domain": "string",
    • "domain_aliases":
      [
      ],
    • "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":
      {
      },
    • "account_name": "string",
    • "account_slug": "string",
    • "git_provider": "string",
    • "deploy_hook": "string",
    • "capabilities":
      {
      },
    • "processing_settings":
      {
      },
    • "build_settings":
      {
      },
    • "id_domain": "string",
    • "default_hooks_data":
      {
      },
    • "build_image": "string",
    • "repo":
      {
      }
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "state": "string",
    • "plan": "string",
    • "name": "string",
    • "custom_domain": "string",
    • "domain_aliases":
      [
      ],
    • "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":
      {
      },
    • "account_name": "string",
    • "account_slug": "string",
    • "git_provider": "string",
    • "deploy_hook": "string",
    • "capabilities":
      {
      },
    • "processing_settings":
      {
      },
    • "build_settings":
      {
      },
    • "id_domain": "string",
    • "default_hooks_data":
      {
      },
    • "build_image": "string"
    }

    getSite

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}
    https://api.netlify.com/api/v1/sites/{site_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "state": "string",
    • "plan": "string",
    • "name": "string",
    • "custom_domain": "string",
    • "domain_aliases":
      [
      ],
    • "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":
      {
      },
    • "account_name": "string",
    • "account_slug": "string",
    • "git_provider": "string",
    • "deploy_hook": "string",
    • "capabilities":
      {
      },
    • "processing_settings":
      {
      },
    • "build_settings":
      {
      },
    • "id_domain": "string",
    • "default_hooks_data":
      {
      },
    • "build_image": "string"
    }

    updateSite

    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
    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
    published_deploy
    object (deploy)
    account_name
    string
    account_slug
    string
    git_provider
    string
    deploy_hook
    string
    capabilities
    object
    processing_settings
    object
    build_settings
    object (repoInfo)
    id_domain
    string
    default_hooks_data
    object
    build_image
    string
    repo
    object (repoInfo)

    Responses

    200

    OK

    default

    error

    patch /sites/{site_id}
    https://api.netlify.com/api/v1/sites/{site_id}

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "state": "string",
    • "plan": "string",
    • "name": "string",
    • "custom_domain": "string",
    • "domain_aliases":
      [
      ],
    • "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":
      {
      },
    • "account_name": "string",
    • "account_slug": "string",
    • "git_provider": "string",
    • "deploy_hook": "string",
    • "capabilities":
      {
      },
    • "processing_settings":
      {
      },
    • "build_settings":
      {
      },
    • "id_domain": "string",
    • "default_hooks_data":
      {
      },
    • "build_image": "string",
    • "repo":
      {
      }
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "state": "string",
    • "plan": "string",
    • "name": "string",
    • "custom_domain": "string",
    • "domain_aliases":
      [
      ],
    • "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":
      {
      },
    • "account_name": "string",
    • "account_slug": "string",
    • "git_provider": "string",
    • "deploy_hook": "string",
    • "capabilities":
      {
      },
    • "processing_settings":
      {
      },
    • "build_settings":
      {
      },
    • "id_domain": "string",
    • "default_hooks_data":
      {
      },
    • "build_image": "string"
    }

    deleteSite

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    204

    Deleted

    default

    error

    delete /sites/{site_id}
    https://api.netlify.com/api/v1/sites/{site_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    createSiteInTeam

    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
    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
    published_deploy
    object (deploy)
    account_name
    string
    account_slug
    string
    git_provider
    string
    deploy_hook
    string
    capabilities
    object
    processing_settings
    object
    build_settings
    object (repoInfo)
    id_domain
    string
    default_hooks_data
    object
    build_image
    string
    repo
    object (repoInfo)

    Responses

    201

    Created

    default

    error

    post /{account_slug}/sites
    https://api.netlify.com/api/v1/{account_slug}/sites

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "state": "string",
    • "plan": "string",
    • "name": "string",
    • "custom_domain": "string",
    • "domain_aliases":
      [
      ],
    • "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":
      {
      },
    • "account_name": "string",
    • "account_slug": "string",
    • "git_provider": "string",
    • "deploy_hook": "string",
    • "capabilities":
      {
      },
    • "processing_settings":
      {
      },
    • "build_settings":
      {
      },
    • "id_domain": "string",
    • "default_hooks_data":
      {
      },
    • "build_image": "string",
    • "repo":
      {
      }
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "state": "string",
    • "plan": "string",
    • "name": "string",
    • "custom_domain": "string",
    • "domain_aliases":
      [
      ],
    • "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":
      {
      },
    • "account_name": "string",
    • "account_slug": "string",
    • "git_provider": "string",
    • "deploy_hook": "string",
    • "capabilities":
      {
      },
    • "processing_settings":
      {
      },
    • "build_settings":
      {
      },
    • "id_domain": "string",
    • "default_hooks_data":
      {
      },
    • "build_image": "string"
    }

    listSitesForAccount

    Authorizations:
    path Parameters
    account_slug
    required
    string
    query Parameters
    name
    string

    Responses

    200

    OK

    default

    error

    get /{account_slug}/sites
    https://api.netlify.com/api/v1/{account_slug}/sites

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    File

    listSiteFiles

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/files
    https://api.netlify.com/api/v1/sites/{site_id}/files

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    getSiteFileByPathName

    Authorizations:
    path Parameters
    site_id
    required
    string
    file_path
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/files/{file_path}
    https://api.netlify.com/api/v1/sites/{site_id}/files/{file_path}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "path": "string",
    • "sha": "string",
    • "mime_type": "string",
    • "size": 0
    }

    uploadDeployFile

    Authorizations:
    path Parameters
    deploy_id
    required
    string
    path
    required
    string
    query Parameters
    size
    integer
    Request Body schema: application/octet-stream
    string <binary>

    Responses

    200

    OK

    default

    error

    put /deploys/{deploy_id}/files/{path}
    https://api.netlify.com/api/v1/deploys/{deploy_id}/files/{path}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "path": "string",
    • "sha": "string",
    • "mime_type": "string",
    • "size": 0
    }

    Metadata

    getSiteMetadata

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/metadata
    https://api.netlify.com/api/v1/sites/{site_id}/metadata

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    { }

    updateSiteMetadata

    Authorizations:
    path Parameters
    site_id
    required
    string
    Request Body schema: application/json

    Responses

    204

    No content

    default

    error

    put /sites/{site_id}/metadata
    https://api.netlify.com/api/v1/sites/{site_id}/metadata

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    { }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    Snippet

    listSiteSnippets

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/snippets
    https://api.netlify.com/api/v1/sites/{site_id}/snippets

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    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

    201

    OK

    default

    error

    post /sites/{site_id}/snippets
    https://api.netlify.com/api/v1/sites/{site_id}/snippets

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": 0,
    • "site_id": "string",
    • "title": "string",
    • "general": "string",
    • "general_position": "string",
    • "goal": "string",
    • "goal_position": "string"
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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

    200

    OK

    default

    error

    get /sites/{site_id}/snippets/{snippet_id}
    https://api.netlify.com/api/v1/sites/{site_id}/snippets/{snippet_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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

    204

    No content

    default

    error

    put /sites/{site_id}/snippets/{snippet_id}
    https://api.netlify.com/api/v1/sites/{site_id}/snippets/{snippet_id}

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": 0,
    • "site_id": "string",
    • "title": "string",
    • "general": "string",
    • "general_position": "string",
    • "goal": "string",
    • "goal_position": "string"
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    deleteSiteSnippet

    Authorizations:
    path Parameters
    site_id
    required
    string
    snippet_id
    required
    string

    Responses

    204

    No content

    default

    error

    delete /sites/{site_id}/snippets/{snippet_id}
    https://api.netlify.com/api/v1/sites/{site_id}/snippets/{snippet_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    DNS zone

    getDNSForSite

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/dns
    https://api.netlify.com/api/v1/sites/{site_id}/dns

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    configureDNSForSite

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    put /sites/{site_id}/dns
    https://api.netlify.com/api/v1/sites/{site_id}/dns

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    SNI certificate

    provisionSiteTLSCertificate

    Authorizations:
    path Parameters
    site_id
    required
    string
    query Parameters
    certificate
    string
    key
    string
    ca_certificates
    string

    Responses

    200

    OK

    default

    error

    post /sites/{site_id}/ssl
    https://api.netlify.com/api/v1/sites/{site_id}/ssl

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "state": "string",
    • "domains":
      [
      ],
    • "created_at": "string",
    • "updated_at": "string",
    • "expires_at": "string"
    }

    showSiteTLSCertificate

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/ssl
    https://api.netlify.com/api/v1/sites/{site_id}/ssl

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "state": "string",
    • "domains":
      [
      ],
    • "created_at": "string",
    • "updated_at": "string",
    • "expires_at": "string"
    }

    Deploy

    listSiteDeploys

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/deploys
    https://api.netlify.com/api/v1/sites/{site_id}/deploys

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    createSiteDeploy

    Authorizations:
    path Parameters
    site_id
    required
    string
    query Parameters
    title
    string
    Request Body schema: application/json
    files
    object
    draft
    boolean
    async
    boolean
    functions
    object

    Responses

    200

    OK

    default

    error

    post /sites/{site_id}/deploys
    https://api.netlify.com/api/v1/sites/{site_id}/deploys

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "files": { },
    • "draft": true,
    • "async": true,
    • "functions": { }
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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":
      [
      ],
    • "required_functions":
      [
      ],
    • "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",
    • "site_capabilities":
      {
      }
    }

    getSiteDeploy

    Authorizations:
    path Parameters
    site_id
    required
    string
    deploy_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/deploys/{deploy_id}
    https://api.netlify.com/api/v1/sites/{site_id}/deploys/{deploy_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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":
      [
      ],
    • "required_functions":
      [
      ],
    • "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",
    • "site_capabilities":
      {
      }
    }

    updateSiteDeploy

    Authorizations:
    path Parameters
    site_id
    required
    string
    deploy_id
    required
    string
    Request Body schema: application/json
    files
    object
    draft
    boolean
    async
    boolean
    functions
    object

    Responses

    200

    OK

    default

    error

    put /sites/{site_id}/deploys/{deploy_id}
    https://api.netlify.com/api/v1/sites/{site_id}/deploys/{deploy_id}

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "files": { },
    • "draft": true,
    • "async": true,
    • "functions": { }
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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":
      [
      ],
    • "required_functions":
      [
      ],
    • "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",
    • "site_capabilities":
      {
      }
    }

    restoreSiteDeploy

    Authorizations:
    path Parameters
    site_id
    required
    string
    deploy_id
    required
    string

    Responses

    201

    Created

    default

    error

    post /sites/{site_id}/deploys/{deploy_id}/restore
    https://api.netlify.com/api/v1/sites/{site_id}/deploys/{deploy_id}/restore

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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":
      [
      ],
    • "required_functions":
      [
      ],
    • "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",
    • "site_capabilities":
      {
      }
    }

    getDeploy

    Authorizations:
    path Parameters
    deploy_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /deploys/{deploy_id}
    https://api.netlify.com/api/v1/deploys/{deploy_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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":
      [
      ],
    • "required_functions":
      [
      ],
    • "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",
    • "site_capabilities":
      {
      }
    }

    lockDeploy

    Authorizations:
    path Parameters
    deploy_id
    required
    string

    Responses

    200

    OK

    default

    error

    post /deploys/{deploy_id}/lock
    https://api.netlify.com/api/v1/deploys/{deploy_id}/lock

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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":
      [
      ],
    • "required_functions":
      [
      ],
    • "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",
    • "site_capabilities":
      {
      }
    }

    unlockDeploy

    Authorizations:
    path Parameters
    deploy_id
    required
    string

    Responses

    200

    OK

    default

    error

    post /deploys/{deploy_id}/unlock
    https://api.netlify.com/api/v1/deploys/{deploy_id}/unlock

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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":
      [
      ],
    • "required_functions":
      [
      ],
    • "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",
    • "site_capabilities":
      {
      }
    }

    Deployed branch

    listSiteDeployedBranches

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/deployed-branches
    https://api.netlify.com/api/v1/sites/{site_id}/deployed-branches

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    Deploy key

    listDeployKeys

    Authorizations:

    Responses

    200

    OK

    default

    error

    get /deploy_keys
    https://api.netlify.com/api/v1/deploy_keys

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    createDeployKey

    Authorizations:

    Responses

    201

    Created

    default

    error

    post /deploy_keys
    https://api.netlify.com/api/v1/deploy_keys

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "public_key": "string",
    • "created_at": "string"
    }

    getDeployKey

    Authorizations:
    path Parameters
    key_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /deploy_keys/{key_id}
    https://api.netlify.com/api/v1/deploy_keys/{key_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "public_key": "string",
    • "created_at": "string"
    }

    deleteDeployKey

    Authorizations:
    path Parameters
    key_id
    required
    string

    Responses

    204

    Not Content

    default

    error

    delete /deploy_keys/{key_id}
    https://api.netlify.com/api/v1/deploy_keys/{key_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    Build

    listSiteBuilds

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/builds
    https://api.netlify.com/api/v1/sites/{site_id}/builds

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    createSiteBuild

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    post /sites/{site_id}/builds
    https://api.netlify.com/api/v1/sites/{site_id}/builds

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "deploy_id": "string",
    • "sha": "string",
    • "done": true,
    • "error": "string",
    • "created_at": "string"
    }

    getSiteBuild

    Authorizations:
    path Parameters
    build_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /builds/{build_id}
    https://api.netlify.com/api/v1/builds/{build_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "deploy_id": "string",
    • "sha": "string",
    • "done": true,
    • "error": "string",
    • "created_at": "string"
    }

    notifyBuildStart

    Authorizations:
    path Parameters
    build_id
    required
    string

    Responses

    204

    No content

    default

    error

    post /builds/{build_id}/start
    https://api.netlify.com/api/v1/builds/{build_id}/start

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    Build log message

    updateSiteBuildLog

    Authorizations:
    path Parameters
    build_id
    required
    string

    Responses

    204

    No content

    default

    error

    post /builds/{build_id}/log
    https://api.netlify.com/api/v1/builds/{build_id}/log

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    Hook

    listHooksBySiteId

    Authorizations:
    query Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /hooks
    https://api.netlify.com/api/v1/hooks

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    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

    201

    OK

    default

    error

    post /hooks
    https://api.netlify.com/api/v1/hooks

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "site_id": "string",
    • "type": "string",
    • "event": "string",
    • "data": { },
    • "created_at": "string",
    • "updated_at": "string",
    • "disabled": true
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "site_id": "string",
    • "type": "string",
    • "event": "string",
    • "data": { },
    • "created_at": "string",
    • "updated_at": "string",
    • "disabled": true
    }

    getHook

    Authorizations:
    path Parameters
    hook_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /hooks/{hook_id}
    https://api.netlify.com/api/v1/hooks/{hook_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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

    200

    OK

    default

    error

    put /hooks/{hook_id}
    https://api.netlify.com/api/v1/hooks/{hook_id}

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "site_id": "string",
    • "type": "string",
    • "event": "string",
    • "data": { },
    • "created_at": "string",
    • "updated_at": "string",
    • "disabled": true
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "site_id": "string",
    • "type": "string",
    • "event": "string",
    • "data": { },
    • "created_at": "string",
    • "updated_at": "string",
    • "disabled": true
    }

    deleteHookBySiteId

    Authorizations:
    path Parameters
    hook_id
    required
    string

    Responses

    204

    No content

    delete /hooks/{hook_id}
    https://api.netlify.com/api/v1/hooks/{hook_id}

    enableHook

    Authorizations:
    path Parameters
    hook_id
    required
    string

    Responses

    200

    OK

    default

    error

    post /hooks/{hook_id}/enable
    https://api.netlify.com/api/v1/hooks/{hook_id}/enable

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "site_id": "string",
    • "type": "string",
    • "event": "string",
    • "data": { },
    • "created_at": "string",
    • "updated_at": "string",
    • "disabled": true
    }

    Hook type

    listHookTypes

    Authorizations:

    Responses

    200

    OK

    default

    error

    get /hooks/types
    https://api.netlify.com/api/v1/hooks/types

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    Build hook

    listSiteBuildHooks

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/build_hooks
    https://api.netlify.com/api/v1/sites/{site_id}/build_hooks

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    createSiteBuildHook

    Authorizations:
    path Parameters
    site_id
    required
    string
    Request Body schema: application/json
    id
    string
    title
    string
    branch
    string
    url
    string
    site_id
    string
    created_at
    string <dateTime>

    Responses

    201

    Created

    default

    error

    post /sites/{site_id}/build_hooks
    https://api.netlify.com/api/v1/sites/{site_id}/build_hooks

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "title": "string",
    • "branch": "string",
    • "url": "string",
    • "site_id": "string",
    • "created_at": "string"
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "title": "string",
    • "branch": "string",
    • "url": "string",
    • "site_id": "string",
    • "created_at": "string"
    }

    getSiteBuildHook

    Authorizations:
    path Parameters
    site_id
    required
    string
    id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/build_hooks/{id}
    https://api.netlify.com/api/v1/sites/{site_id}/build_hooks/{id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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
    id
    string
    title
    string
    branch
    string
    url
    string
    site_id
    string
    created_at
    string <dateTime>

    Responses

    204

    No content

    default

    error

    put /sites/{site_id}/build_hooks/{id}
    https://api.netlify.com/api/v1/sites/{site_id}/build_hooks/{id}

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "title": "string",
    • "branch": "string",
    • "url": "string",
    • "site_id": "string",
    • "created_at": "string"
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    deleteSiteBuildHook

    Authorizations:
    path Parameters
    site_id
    required
    string
    id
    required
    string

    Responses

    204

    No content

    default

    error

    delete /sites/{site_id}/build_hooks/{id}
    https://api.netlify.com/api/v1/sites/{site_id}/build_hooks/{id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    Service

    getServices

    Authorizations:
    query Parameters
    search
    string

    Responses

    200

    services

    default

    error

    get /services/
    https://api.netlify.com/api/v1/services/

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    showService

    Authorizations:
    path Parameters
    addonName
    required
    string

    Responses

    200

    services

    default

    error

    get /services/{addonName}
    https://api.netlify.com/api/v1/services/{addonName}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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"
    }

    showServiceManifest

    Authorizations:
    path Parameters
    addonName
    required
    string

    Responses

    201

    retrieving from provider

    default

    error

    get /services/{addonName}/manifest
    https://api.netlify.com/api/v1/services/{addonName}/manifest

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    { }

    Service instance

    createServiceInstance

    Authorizations:
    path Parameters
    site_id
    required
    string
    addon
    required
    string
    Request Body schema: application/json

    Responses

    201

    Created

    default

    error

    post /sites/{site_id}/services/{addon}/instances
    https://api.netlify.com/api/v1/sites/{site_id}/services/{addon}/instances

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    { }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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

    Responses

    201

    Created

    default

    error

    get /sites/{site_id}/services/{addon}/instances
    https://api.netlify.com/api/v1/sites/{site_id}/services/{addon}/instances

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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
    Request Body schema: application/json

    Responses

    204

    Created

    default

    error

    put /sites/{site_id}/services/{addon}/instances
    https://api.netlify.com/api/v1/sites/{site_id}/services/{addon}/instances

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    { }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    deleteServiceInstance

    Authorizations:
    path Parameters
    site_id
    required
    string
    addon
    required
    string

    Responses

    204

    Deleted

    default

    error

    delete /sites/{site_id}/services/{addon}/instances
    https://api.netlify.com/api/v1/sites/{site_id}/services/{addon}/instances

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    Function

    uploadDeployFunction

    Authorizations:
    path Parameters
    deploy_id
    required
    string
    name
    required
    string
    query Parameters
    runtime
    string
    size
    integer
    Request Body schema: application/octet-stream
    string <binary>

    Responses

    200

    OK

    default

    error

    put /deploys/{deploy_id}/functions/{name}
    https://api.netlify.com/api/v1/deploys/{deploy_id}/functions/{name}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "name": "string",
    • "sha": "string"
    }

    Form

    listSiteForms

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/forms
    https://api.netlify.com/api/v1/sites/{site_id}/forms

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    listForms

    Authorizations:
    query Parameters
    site_id
    string

    Responses

    200

    OK

    default

    error

    get /forms
    https://api.netlify.com/api/v1/forms

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    Form submission

    listSiteSubmissions

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/submissions
    https://api.netlify.com/api/v1/sites/{site_id}/submissions

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    listFormSubmissions

    Authorizations:
    path Parameters
    form_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /forms/{form_id}/submissions
    https://api.netlify.com/api/v1/forms/{form_id}/submissions

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    listFormSubmission

    Authorizations:
    path Parameters
    submission_id
    required
    string
    query Parameters
    query
    string

    Responses

    200

    OK

    default

    error

    get /submissions/{submission_id}
    https://api.netlify.com/api/v1/submissions/{submission_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    deleteSubmission

    Authorizations:
    path Parameters
    submission_id
    required
    string

    Responses

    204

    Deleted

    default

    error

    delete /submissions/{submission_id}
    https://api.netlify.com/api/v1/submissions/{submission_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    Split test

    createSplitTest

    Authorizations:
    path Parameters
    site_id
    required
    string
    Request Body schema: application/json
    branch_tests
    object

    Responses

    201

    Created

    default

    error

    post /site/{site_id}/traffic_splits
    https://api.netlify.com/api/v1/site/{site_id}/traffic_splits

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "branch_tests": { }
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "site_id": "string",
    • "name": "string",
    • "path": "string",
    • "branches":
      [
      ],
    • "active": true,
    • "created_at": "string",
    • "updated_at": "string",
    • "unpublished_at": "string"
    }

    getSplitTests

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    split_tests

    default

    error

    get /site/{site_id}/traffic_splits
    https://api.netlify.com/api/v1/site/{site_id}/traffic_splits

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    updateSplitTest

    Authorizations:
    path Parameters
    site_id
    required
    string
    split_test_id
    required
    string
    Request Body schema: application/json
    branch_tests
    object

    Responses

    201

    Created

    default

    error

    put /site/{site_id}/traffic_splits/{split_test_id}
    https://api.netlify.com/api/v1/site/{site_id}/traffic_splits/{split_test_id}

    Request samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "branch_tests": { }
    }

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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

    200

    split_test

    default

    error

    get /site/{site_id}/traffic_splits/{split_test_id}
    https://api.netlify.com/api/v1/site/{site_id}/traffic_splits/{split_test_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "id": "string",
    • "site_id": "string",
    • "name": "string",
    • "path": "string",
    • "branches":
      [
      ],
    • "active": true,
    • "created_at": "string",
    • "updated_at": "string",
    • "unpublished_at": "string"
    }

    enableSplitTest

    Authorizations:
    path Parameters
    site_id
    required
    string
    split_test_id
    required
    string

    Responses

    204

    enable

    default

    error

    post /site/{site_id}/traffic_splits/{split_test_id}/publish
    https://api.netlify.com/api/v1/site/{site_id}/traffic_splits/{split_test_id}/publish

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    disableSplitTest

    Authorizations:
    path Parameters
    site_id
    required
    string
    split_test_id
    required
    string

    Responses

    204

    disabled

    default

    error

    post /site/{site_id}/traffic_splits/{split_test_id}/unpublish
    https://api.netlify.com/api/v1/site/{site_id}/traffic_splits/{split_test_id}/unpublish

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    Asset

    listSiteAssets

    Authorizations:
    path Parameters
    site_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/assets
    https://api.netlify.com/api/v1/sites/{site_id}/assets

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    [
    • {
      }
    ]

    createSiteAsset

    Authorizations:
    path Parameters
    site_id
    required
    string
    query Parameters
    name
    required
    string
    size
    required
    integer <int64>
    content_type
    required
    string
    visibility
    string

    Responses

    201

    Created

    default

    error

    post /sites/{site_id}/assets
    https://api.netlify.com/api/v1/sites/{site_id}/assets

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "form":
      {
      },
    • "asset":
      {
      }
    }

    getSiteAssetInfo

    Authorizations:
    path Parameters
    site_id
    required
    string
    asset_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/assets/{asset_id}
    https://api.netlify.com/api/v1/sites/{site_id}/assets/{asset_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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

    200

    Updated

    default

    error

    put /sites/{site_id}/assets/{asset_id}
    https://api.netlify.com/api/v1/sites/{site_id}/assets/{asset_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "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"
    }

    deleteSiteAsset

    Authorizations:
    path Parameters
    site_id
    required
    string
    asset_id
    required
    string

    Responses

    204

    Deleted

    default

    error

    delete /sites/{site_id}/assets/{asset_id}
    https://api.netlify.com/api/v1/sites/{site_id}/assets/{asset_id}

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "code": 0,
    • "message": "string"
    }

    Asset public signature

    getSiteAssetPublicSignature

    Authorizations:
    path Parameters
    site_id
    required
    string
    asset_id
    required
    string

    Responses

    200

    OK

    default

    error

    get /sites/{site_id}/assets/{asset_id}/public_signature
    https://api.netlify.com/api/v1/sites/{site_id}/assets/{asset_id}/public_signature

    Response samples

    Content type
    application/json
    Copy
    Expand all Collapse all
    {
    • "url": "string"
    }