Sign in

Create site

documented

Create a new Netlify site and obtain its ID.

POST /api/v1/sitesSitesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.netlify.com/api/v1/sites" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"name": "{{$name}}", "custom_domain": "{{$custom_domain}}", "password": "{{$password}}", "force_ssl": {{$force_ssl}}, "processing_settings": {"html": {"pretty_urls": {{$pretty_urls}}}} }'
Create site · netlify · OpenIntegrations