Accounts¶
Note
See RFC 2616 for more details on HTTP methods semantics
General¶
The accounts API supports the following actions
Create account¶
- POST /accounts/action/?do=create¶
- Create an account on the system.
Status Codes: - 200 – no error
Parameters: - email – The email of the account to be created
Login/Logout¶
- POST /accounts/action/?do=login¶
Login to the system using cookie auth
Status Codes: - 200 – no error
- 401 – unauthorized
Example request:
POST /accounts/action/?do=login HTTP/1.1 Host: api.cloudsigma.com Accept: application/json
Request body
{ 'username':'123@asd.com', 'password':'parola' }
- Response:
- Empty
- POST /accounts/action/?do=logout¶
Logout from the system when using cookie auth
Status Codes: - 200 – no error
- Example request:
POST /accounts/action/?do=logout HTTP/1.1 Host: api.cloudsigma.com Accept: application/json
Request body
{}
- Response:
- Empty
- POST /accounts/action/?do=check_login¶
Check if you are logged in the system
Status Codes: - 200 – no error
Example request:
POST /accounts/action/?do=check_login HTTP/1.1 Host: api.cloudsigma.com Accept: application/json
Request body
{}
- Response:
- Empty