Skip to content
Ted Benson edited this page Jan 11, 2017 · 2 revisions

API

Auth

To auth an request, include the header

Authorization: Bearer tokenvalue

Login

Request

POST https://cloudstitch.com/api/1/login

Headers:

  • User-Agent=cloudstitch-cli Body:
  • username|email and password

Response

On succsess

{ "token": "XXX" }

On failure

{ "error": true, "message": "Some reason here." }

The message will be appropriate for displaying to user.

Sign Up

POST https://cloudstitch.com/api/1/signup

Headers:

  • User-Agent=cloudstitch-cli Body:
  • username, email, and password

Response

On succsess

{ "token": "XXX" }

On failure

{ "error": true, "message": "Some reason here." }

The message will be appropriate for displaying to user.

Clone this wiki locally