Developers / Tools & Resources

Access

This API module allows you to control access and provide security for your application.

Access Tokens
Request and refresh access tokens to allow control access to your application.
#Sample cURL command -- Request access token
curl -X 'POST' \
'https://zas-dev.zanibal.com/api/v1/security/request/access-token' \
-H 'accept: application/json; charset=UTF-8' \
-H 'Content-Type: multipart/form-data' \
-F 'username=test' \
-F 'password=*****'

#Sample cURL command -- Referesh access token
curl -X 'POST' \
'https://zas-dev.zanibal.com/api/v1/security/refresh/access-token' \
-H 'accept: application/json; charset=UTF-8' \
-H 'Content-Type: multipart/form-data' \
-F 'refresh_token=[REFERESH_TOKEN]'

Grant access to users using tokens for more security

#Sample cURL command
curl -X 'POST' \
'https://zas-dev.zanibal.com/api/v1/security/login/customer' \
-H 'accept: application/json; charset=UTF-8' \
-H 'Content-Type: multipart/form-data' \
-F 'username=test' \
-F 'password=*****'