Auto
EN

Authenticate and read your account

Before you start

Create a server-side API key. Reading the account verifies authentication without sending a message.

Required. Send the account API key in the X-API-Key header. Never expose the key in a public browser or git repository.

cURL

curl --request GET 'https://raselsms.com/api/v2/account' \  -H "X-API-Key: $RASEL_API_KEY"

Test locally with a mock response first. Confirm the recipient and cost before sending a live request.