API Reference
GHEXIT provides REST APIs for SMS, voice, email, and verification. All responses are JSON.
Authentication
Pass your API key in the Authorization header:
Authorization: Bearer ghexit_live_your_api_key
Generate API keys in Settings → API Keys. Use test keys (ghexit_test_) for development — they won't send real messages.
Messages
https://ghexit.com/api/v1/messagesList all messages for your organization.
Response
{ "data": [...], "pagination": { "limit": 20, "offset": 0, "total": 100 } }https://ghexit.com/api/v1/messagesSend an SMS or MMS message.
Request body
{ "to": "+15559876543", "body": "Hello!", "from": "+15551234567" }Response
{ "data": { "id": "uuid", "sid": "SM...", "status": "queued", "to": "...", "body": "..." } }Voice Calls
https://ghexit.com/api/v1/callsList all calls for your organization.
Response
{ "data": [...], "pagination": { ... } }https://ghexit.com/api/v1/callsInitiate an outbound call. Omit url to use a default greeting.
Request body
{ "to": "+15559876543", "from": "+15551234567", "url": "https://example.com/twiml" }Response
{ "data": { "id": "uuid", "sid": "CA...", "status": "queued", "to": "..." } }Phone Numbers
https://ghexit.com/api/v1/phone-numbersList all phone numbers in your account.
Response
{ "data": [...] }https://ghexit.com/api/v1/phone-numbersSearch and provision a new phone number.
Request body
{ "country": "US", "area_code": "415" }Response
{ "data": { "id": "uuid", "phone_number": "+14155551234", "status": "active" } }https://ghexit.com/api/v1/emailsSend a transactional email via Resend.
Request body
{ "to": "[email protected]", "subject": "Hello", "html": "<p>World</p>" }Response
{ "data": { "id": "uuid", "status": "sent" } }Verifications
https://ghexit.com/api/v1/verificationsStart a phone verification (OTP via SMS).
Request body
{ "to": "+15559876543", "channel": "sms" }Response
{ "data": { "id": "uuid", "status": "pending" } }https://ghexit.com/api/v1/verifications/{id}/verifyCheck a verification code.
Request body
{ "code": "123456" }Response
{ "data": { "status": "approved" } }Webhooks
https://ghexit.com/api/v1/webhook-endpointsList registered webhook endpoints.
Response
{ "data": [...] }https://ghexit.com/api/v1/webhook-endpointsRegister a new webhook endpoint.
Request body
{ "url": "https://yourapp.com/webhooks", "events": ["message.delivered", "call.completed"] }Response
{ "data": { "id": "uuid", "url": "...", "secret": "whsec_..." } }Quick Start — Send your first SMS
curl -X POST https://ghexit.com/api/v1/messages \
-H "Authorization: Bearer ghexit_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+15559876543",
"body": "Hello from GHEXIT!"
}'