UNA
|
Public API for getting secure token for API Private calls and other calls which don't require user authentication
Test method to check public API
HTTP Method: GET
Request params: n/a
Response (success):
Get page with cells and blocks as array
HTTP Method: GET
Request params:
uri
- page URIResponse (success):
Response (error):
Send email with reset password code
Scopes: api
HTTP Method: POST
Request params:
email
- email addressRequest header:
Response (success):
Response (error):
Check validation code & set new password
Scopes: api
HTTP Method: POST
Request params:
code
- validation codeemail
- email addressRequest header:
Response (success):
Response (error):
Create account
Scopes: api
HTTP Method: POST
Request params:
name
- account nameemail
- email addresspassword
- passwordRequest header:
Response (success):
Response (error):
API service call (com is for command). The call should be look this: /m/oauth2/api/com/[metod-name-here]
Scopes: api
Everything is equivalent to /m/oauth2/api/service, only module name parameter can be ommited and method is passed as method parameter instead of GET/POST variable
Get the token for the future communication with API Private
HTTP Method: POST
Request params:
grant_type
- for API it's better to use 'password' grant typeusername
- login emailpassword
- login passwordclient_id
- client ID from bx_oauth_clients tableResponse (success):
Response (error):
Revoke token
HTTP Method: POST
Request params:
token
- token to revokeRequest header:
Response (success):
Response (error):