For the complete documentation index, see llms.txt. This page is also available as Markdown.

Register a site

Registers a new site. Both the display name and the domain are required, and the domain must not already be registered to another site.

The identifier of the new site is assigned automatically and returned in the response.

post
/sites/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Body

The display name and domain of a site. Both fields are required.

namestring · max: 50Required

Display name of the site. Cannot be empty.

domainstring · max: 100Required

Domain name the site is served on, given as a bare host name without a scheme or a trailing path. Must be unique across all sites and cannot contain spaces or tabs.

Responses
201

The site was registered successfully.

application/json

A site registered on the installation — a domain name together with the display name it is known by.

pkintegerRead-onlyOptional

Identifier of the site, assigned when it is registered.

namestring · max: 50Optional

Display name of the site.

domainstring · max: 100Optional

Domain name the site is served on.

post/sites/
POST /api/v1/remote/1/sites/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 51

{
  "name": "Example Store",
  "domain": "www.example.com"
}
{
  "pk": 1,
  "name": "Example Store",
  "domain": "www.example.com"
}

Last updated

Was this helpful?