Authentication

Every request carries one of your Account's API keys as a Bearer token:

Authorization: Bearer gsk_live_8sY2mQ4rT6vX0zB3dF5hJ7kL9nP1qS3uW5yA7cE9

A request without a valid key is refused with 401 unauthenticated.

API keys

Manage keys under Developers, on the API keys tab. Only members whose role lets them manage API keys see it.

  • Create a key with a name, such as "Order system", and its scopes. GioSMS shows the key once. It keeps only a fingerprint, so a lost key cannot be shown again: rotate it instead.
  • The list shows each key's name, its scopes, the last four characters and when it was last used.
  • You must enter your password again to create or rotate a key, and confirm what the key will be allowed to do.

Scopes

A key may do only what its scopes allow. Any other request is refused with 403 forbidden.

Scope Lets a key
messages.send Send messages
messages.view Read message status
billing.view Read the balance

You can grant only scopes your own role holds. Give each system its own key with the fewest scopes it needs. A system that only sends needs only messages.send.

IP allowlist

Add IP addresses or ranges (CIDR, such as 203.0.113.0/24) to a key, up to 50 of them, and it works only from there. A request from anywhere else is refused with 403 ip_not_allowed. Leave the list empty to allow any address.

Rotate a key

Rotating makes a new key with the same name, scopes and allowlist. The old key keeps working until you revoke it, so you can deploy the new one first and then revoke the old one.

Revoke a key

Revoking a key is permanent. The next request made with it is refused. Revoke a key straight away if it may have leaked.

Rate limits

Each key may make 600 requests a minute, and your Account 1,200 across all its keys. Every response reports the tighter of the two:

Header Means
X-RateLimit-Limit requests allowed this minute
X-RateLimit-Remaining requests left this minute

Over the limit, GioSMS answers 429 rate_limited with a Retry-After header: wait that many seconds before trying again. These limits are separate from how fast GioSMS hands your Messages to its Providers.