Authenticate yourself with our API.
To use any of the Snapi SMS API endpoints, you'll need to authenticate yourself on each request. This is done via a
Bearer token as a header.
BearerAuthorization header API key.
|Authorization|| ||Your API key||Yes|
You can find your API keys under API keys within your account.
To authenticate requests you'll need an API key. Here's how to generate one:
Here's a quick example of how the API key can be applied to check the remaining credit balance on your account.
curl -X "GET" "https://api.snapisms.io/api/v1/balance/1|FGsT3x8EHxLKO3jmDxxjEDGV8Opy8UmQKaaIQxwr" \ --header 'Authorization: Bearer 1|FGsT3x8EHxLKO3jmDxxjEDGV8Opy8UmQKaaIQxwr'