Authentication
User authentication
To use all API of OnCaller, you need to authenticate with your user credentials or contact us to get API secret key.
Login with User/ Password
POST
https://{yoursubdomain}.oncaller.asia/api/v1/auth/login
Path Parameters
{
"token":{
"token_type":"Bearer",
"access_token":"eyJ0eXBiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiNTlhZDQ2YzA5MzJhODhmNDk0MzJiMzM0NGI4ZTdlM2Y4YjMzZTk1ZTVmOGNiOWYyZmMzM2IwZjk3YWU2MmNiMTc1ZmE4OTcyYjNhZjE4MzQiLCJpYXQiOjE2MTAwNzc5ODcsIm5iZiI6MTYxMDA3Nzk4NywiZXhwIjoxNjQxNjEzOTg3LZJzdWIiOiIxIiwic2NvcGVzIjpbXXA.P79fMuOAFhxGnYi2Sb_x3tOjRMeCd9e6vwIVL83wo5UnvZwu0SFE9du4H8HXLgjsVCI2S0Vatog9DGRkwOqHVz_e9bgS9Kr9mcsEtYnQOXErI3oO_5DOtVyFExPb6rAw2zuSePxYrVHgWrI2Qpymp8mj40tWSXJlnyKrioBak6NLrugdEYhJTBB8K6p5pLzvH-HJqcbtDwi0tbqRutBorxISt4ufE8SrwGgR4bJhqtM0adlvkxZ2lPD_zwm2GLAydcz8BVXKFR9rI0olkJzeytsTN4eE5RsLGetBDQJs1wCL0Gz8WGS5Ra6eeuE-_wVHiYR_d-5_ITA0ZlHc2tzMXHclDL1LxlKZLsr3EHbFSogZznbtZXW6iqhUdPFSJ6rPcSQG0xmrUSr8EBmCVx9fia3Ou7tAzI-arOZtLe64PtXQA_HhEmf0TBt0c7Y13KnwzsA0pEoqiT8X1eSGsFF1CwyAzORkGSS5_oJrTF_fJIn7J51gtr2ONLN4pUl4MVL1ZslQLHkPdGG7rumFrBmr1dRo41kp04NVjAQ0tQXrmeH5VGpzzjxOKSEd3iTBcEB1afHJ2-bYYJxiqckwBLVZ4As7sE8sGlVdmo6g6tFxczOcono5RtiItbUZwScFtQUjfhlvrZ-GQFce7_jT-umX2PsfeCsYLVIXy8Un_OId9bU",
"expires_at":"2022-01-08T03:53:07.000000Z"
},
"permissions":[
]
}
Client Authentication
POST
https://{yoursubdomain}.oncaller.asia/api/v1/oauth/token
Authenticate with Client credentials
Request Body
{
"token_type": "Bearer",
"expires_in": 31536000,
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGc231I1NiJ9.eyJhdWQiOiIxIi123123FmNGI2OTk0ZTJhNDc1NTliOTE1ZDMwYmM3OTViNWJiNzBkODgxOGMyNGNkYzI3NDNkYTA5ZGM0MmE0Mzk1OGQzYmEwM2QwMjEiLCJpYXQiOjE2MDE2MDcwNDMsIm5iZiI6MTYwMTYwNzA0MywiZXhwIjoxNjMzMTQzMDQzLCJzdWIiOiIiLCJzY29wZXMiOltdfQ.YQ77Nv2W74wppITXMLLRc2SdvyVAqduzR0gsHJUPQrXlzGnZDJdWAMKxUUz0bNCeqcLuqKU2FMimptd7sB9l3k-5dyTHr2lHwho16AbMBEMmCg37xOYTNvGJnDIRFDQf5YmM-i-nmTmhdGHzzH2Kush7mspUBXClxcCMN917oMqDjVoIhZxOJNsLBLHGNwTrK_Aj7eWM63AbC8B0dgW4_M9MVA6k7bn07HzISpdJwQLejJYtPQOO2N1BnLQ0Y8Fd5BlZgq9OV6FFavsBlb70auOKWmoSlLFg9zidrTNclcO2lIYeDX17dsvBgAHU8aE3abk8_suLGf0p4eMjz_0oO3B8XjAyL9zeKxVf-9cGfR8d1-URBE-QRFxRbdzTBhAwhze03AjGydFR6NOu0snsaLP9TTZCwekUjC7dXFQPCkbihPfjhwLzK5vQAlGOBHgPI7qzV0x50JQqwdeLq-fNdiedqZCVYLouA51YFda_SzxbRRUQEuUsDDTQA-blesY_mTtvQg8RbA1-5JpcxjhGtO1Txoo0xWtJGcC6MaszNw0btnnS_E71ihMRDYGcR2nVrCFj-w1EUGmBfvnvrkYdZFyVDHQPAp4TJMByeoFIueQ1QgY8XRcGiR0obtp1pjaZ6mUWmbuEDfNfgRFR6fPtqBtaZoo2blAuKetSE0ZZ6aA"
}