Shifter API lets you handle your any resources like sites, archives, generator, apps.

Basic information

How to call Shifter API

Get AccessToken through login API

Firstly, access to/login get AccessToken. You can get it through POST request with your Shifter account ID (email address) and password.

$ curl -X POST -d '{"username":"", "password":""}'

Send request with API

You can handle each resource with sending API request including AccessToken which you have gotten, into Authorization header.
An example is the below:

$ curl -X GET -H 'Authorization: '

Test API on the Document

You can call any Shifter API on the API Document.

STEP1: "Try it out" on the login API

STEP2: Enter your Shifter account ID and password in the request. Then, Click "Execute"

You will see "AccessToken" and "RefreshToken" on the response body when the request succeeded. Copy the AccessToken.

STEP3: Click "Authorize" on the top of document. And enter AccessToken which is copied at previous step. 

STEP4: Call any API in the document
(This example is GET /sites API.  You can get all of your sites just clicking "Execute" )

Did this answer your question?