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.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The site this installation is configured to serve.
A site registered on the installation — a domain name together with the display name it is known by.
Identifier of the site, assigned when it is registered.
Display name of the site.
Domain name the site is served on.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
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?

