Docs

Gateways and keys

Every message goes out through a Gateway. Your key decides which one.

Gateway

A Gateway is a saved send setup. You make and edit Gateways in Messaging → Gateways. Each one has:

  • a name: your own label;
  • a Use case: OTP, Notification or Marketing (the dashboard calls it Message purpose);
  • a Channel and a Route: how the message is delivered, and at what price;
  • a Sender ID, or none: then each request gives one in from, on a Channel that takes one;
  • a Purpose: a free label such as Production or Testing. It changes neither price nor delivery.

Each Gateway has an ID, shown in the dashboard. Pass it as gateway in POST /messages or POST /otp to send through it. A Gateway with the OTP Use case sends only through POST /otp.

A Gateway is active or paused. A request that names a paused or deleted Gateway, or that uses its Gateway key, answers 400 invalid_request with gateway: unknown or paused. Only a Gateway paused while a request is in flight gives no_gateway: in rejected[] for POST /messages, and 422 for POST /otp. Deleting a Gateway hides it and stops its Gateway key at once; its messages stay in your log.

Default Gateway

A request made with an API key and no gateway goes through your Default Gateway. A new account starts with one, called Notifications. You can make any active Gateway the default. The Default Gateway, and a Gateway that an SMPP login sends through, cannot be paused or deleted.

API key and Gateway key

Both go in the same header: Authorization: Bearer <key>. See Authentication for the errors a key can get.

API keyGateway key
Starts withtlz_tlzg_
Sends throughAny of your Gateways: the one named in gateway, else the Default GatewayIts own Gateway only. Leave gateway out, or give that Gateway's ID
WhereDevelopers → Credentials (Super Admin only), which also shows when and from which address each key was last usedThe Gateway's Gateway key tab. Telrioz makes it when the Gateway is created
How manyAs many as you need, each with a nameOne per Gateway
ShownOne time, when it is made. Telrioz keeps only a hash
ExpiryThe last day (WIB) the key works; by default one year after it is made, or never. From the next day it answers key_expired
On/offA key that is switched off answers key_disabled. An API key can also be deleted; then it answers unauthorized
Allowed IPsThe addresses and networks the key may be used from. None means any address. Any other address answers ip_not_allowedNone
RegenerateMake a new key and switch the old one offRegenerating shows the new key one time and keeps its Expiry and switch. The old key stops working

Use an API key when one server sends for several Gateways. Use a Gateway key when a system should send through one Gateway and nothing else.

SMPP login

An SMPP login is a system_id and password that bind over SMPP. Each login is linked to one Gateway, and everything it sends goes through that Gateway. An account can have several logins. Telrioz staff create and change them: ask Support or your Account Manager. You can see your logins in Developers → Credentials, where your account's Super Admin also sees each password. Telrioz never emails it. A new login has no Allowed IPs and cannot bind until you ask for yours in Settings → Security → Request a change; see Connect.