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

Read the current site

Returns the site this installation is configured to serve, without requiring its identifier. Which site that is comes from the SITE_ID server configuration value described under Dynamic Settings & Environment Variables, and the site it points to must exist.

This is the site whose domain is used when the platform builds absolute links.

get
/sites/current/
Authorizations
AuthorizationstringRequired

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

Responses
200

The site this installation is configured to serve.

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.

get/sites/current/
GET /api/v1/remote/1/sites/current/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "pk": 1,
  "name": "Example Store",
  "domain": "www.example.com"
}

Last updated

Was this helpful?