Create Site
Create a site that links a headless storefront to a sales channel.
Authentication
X-Auth-Tokenstring
OAuth scopes
Authentication header
Further reading
For example requests and more information about authenticating BigCommerce APIs, see Authentication and Example Requests.
For more about BigCommerce OAuth scopes, see our Guide to API Accounts.
For a list of API status codes, see API Status Codes.
Path parameters
store_hash
Permanent ID of the BigCommerce store.
Headers
Accept
The MIME type of the response body.
Request
This endpoint expects an object.
url
The Fully Qualified URL (including host and scheme) where this site is hosted. All URLs generated for this site will be appended to this.
channel_id
The channel this site is attached to. Each site belongs to a single channel, and each channel can have either zero or one sites.
certificate
Response
The requested site.
data
meta
Response metadata.
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
502
Bad Gateway Error
504
Gateway Timeout Error