Languages
Laravel
Prerequisites
A Laravel app with Http facade available. Store VELOBOTIX_EMAIL and VELOBOTIX_API_KEY in .env — never commit secrets.
Authentication
Use ->withBasicAuth($email, $apiKey) on the HTTP client.
SEND_SINGLE example
Equivalent to the documented curl POST:
use Illuminate\Support\Facades\Http;
$response = Http::withBasicAuth(
env('VELOBOTIX_EMAIL'),
env('VELOBOTIX_API_KEY')
)
->acceptJson()
->post('https://portal.velobotix.app/api.php?FUN=SEND_SINGLE', [
'senderID' => 'VeloBotix',
'to' => '0701234567',
'msg' => 'Your OTP is 483920. Valid for 5 minutes.',
]);
$status = $response->status();
$body = $response->body();Common mistakes
Calling the gateway from a public controller without auth on your own route.
Missing FUN=SEND_SINGLE on the URL.
Using config values that were never loaded after .env changes (run config:clear in local).
Create account
Sign up in the portal and get your API key — username is your email, password is the key.
Open portal — get API key