API Access

Retrieve API Access

GET /v1/{access-token}/apiaccess
                            
use \FormSynergy\Init as FS;

$api = FS::Api()->Load($profileid);

$api->Get('apiaccess')
    ->Where([
        'profileid' => $profileid,
    ])->As('GetApiAccess');
 
 
 
                            
                            
{
    "profileid": "profile-3be1fa342a520cbdf28aa43ab8edefee",
    "apikey": "key-56062a3997755671bc1f6f0044f5e78a",
    "secretkey": "secret-98e5dc58aa0855c91f33f063d749ec84"
}
                            

Renew API Access

PUT /v1/{access-token}/apiaccess
                            
use \FormSynergy\Init as FS;

$api = FS::Api()->Load($profileid);

$api->Get('apiaccess')
    ->Where([
        'profileid' => $profileid,
    ])
    ->Renew()
    ->As('RenewApiAccess');
 
                            
                            
{
    "apikey": "key-3a98ce855fcb295ba096a48c2a623e59",
    "secretkey": "secret-70e9d6beb19c4545237ed37e38cbe45f"
}