Retrieve a site
Returns a single site by its identifier.
get/sites/{id}/
Authorizations
AuthorizationstringRequired
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
Path parameters
idintegerRequired
The unique identifier of the site.
Responses
200
The requested site.
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.
401
Authentication credentials were not provided or are invalid.
application/json
403
The authenticated user does not have administrator privileges.
application/json
404
The requested site does not exist.
application/json
get/sites/{id}/
GET /api/v1/remote/1/sites/{id}/ 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?

