Get Access Token
https://viscountmfb.app/public/api/app/corporate-api/v1/get-access-token
Body
| Field | Type | Notes |
|---|---|---|
| secret_key | string | Your corporate secret key. Server-side only — never ship it to a browser. |
| api_key | string | Your corporate API key, issued alongside the secret key. |
| grant_type | string | Always client_credentials. |
curl -X POST https://viscountmfb.app/public/api/app/corporate-api/v1/get-access-token \ -H "Content-Type: application/json" \ -d '{ "secret_key": "07714571175724834950", "api_key": "0C24C27391204354A5FC39772C9BDECEA058F6066BFF5E6C8B2242CBF3AD7762", "grant_type": "client_credentials" }'
$response = $client->request('POST', 'https://viscountmfb.app/public/api/app/corporate-api/v1/get-access-token', [
'headers' => [
'Content-Type' => 'application/json',
],
'json' => [
"secret_key" => "07714571175724834950",
"api_key" => "0C24C27391204354A5FC39772C9BDECEA058F6066BFF5E6C8B2242CBF3AD7762",
"grant_type" => "client_credentials"
]
]);
$data = json_decode($response->getBody(), true);const res = await fetch('https://viscountmfb.app/public/api/app/corporate-api/v1/get-access-token', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
"secret_key": "07714571175724834950",
"api_key": "0C24C27391204354A5FC39772C9BDECEA058F6066BFF5E6C8B2242CBF3AD7762",
"grant_type": "client_credentials"
})
});
const data = await res.json();r = requests.post(
"https://viscountmfb.app/public/api/app/corporate-api/v1/get-access-token",
headers={
"Content-Type": "application/json",
},
json={
"secret_key": "07714571175724834950",
"api_key": "0C24C27391204354A5FC39772C9BDECEA058F6066BFF5E6C8B2242CBF3AD7762",
"grant_type": "client_credentials"
}
)
data = r.json(){
"data": {
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3Zpc2NvdW50bWZiLmFwcC9wdWJsaWMvYXBpL2FwcC9jb3Jwb3JhdGUtYXBpL3YxL2dldC1hY2Nlc3MtdG9rZW4iLCJpYXQiOjE3NzY4MDA0OTEsImV4cCI6MTc3NjgwNDA5MSwibmJmIjoxNzc2ODAwNDkxLCJqdGkiOiJGTzdMUnp0cEVobmQ3S284Iiwic3ViIjoiNCIsInBydiI6IjI1OTYyZDYxMmU0ZTE4ZTVjZDI4YzNlYjRiMTFiMGJhNDZlZmI0MWQifQ.USXwTvIEUl7yAOayi6hNusEMfdaNygeBgLd5qcKfoyQ"
},
"status": "success",
"message": "Successful"
}{
"status": "error",
"message": "Invalid Key"
}