Deactivation of unused API keys

How to prevent your API key from being deactivated through regular use

API keys are deactivated by default after one year of inactivity. This can lead to unexpected interruptions if the key no longer works after very sporadic use and SMS messages can no longer be sent. To prevent this, the API key must be used regularly. A simple way to ensure this is to regularly check the SMS balance.

By checking the credit, the API key is registered as "in use" and remains active. You can use the corresponding API endpoint to query the current balance. Even if you do not send an SMS via the API, this simple query means that the key is considered to be in use and will not expire.

Check the last use

To check whether the key is still active and when it was last used, navigate to Developer > API Access. The list shows all API keys with a Last Use column.

API Access page with the Last Use column

Query the balance via API

To keep the key active, query the balance regularly:

Browser

https://gateway.seven.io/api/balance?p=YOUR_API_KEY

Bash

curl https://gateway.seven.io/api/balance \
  -H "X-API-Key: YOUR_API_KEY"

That single request is enough to keep the key active and prevent deactivation, ensuring uninterrupted SMS delivery.

Last updated: March 25, 2026

Did this answer your question?

Related articles