Babelway Help Center home page

| Help center

Sign in
  1. Babelway
  2. Babelway User Guide
  3. Chapter 6. API

6.1.2.7. gateways

Search and list gateways for a given environment.

Parameters

 name 

 A string search on the channel name 

 description 

 a string search on the channel description 

 since 

 Returns only gateways created after the given timestamp. 

 before 

 Returns only gateways created before the given timestamp. 

 direction 

 Returns only the gateways with the specified direction : IN or OUT. 

 type 

 Returns only the gateways with the specified type. 

 start 

 An integer to set the first result. By default, the value is at 0. The API returns 25 results per query. To get the 25 following ones, it should be 25, then 50,   then 75, ... 

 

Examples

  • List all the gateways of environment 26112 in XML format

    https://www.babelway.net/SelfService3/rest/v2/hub-26112/gateways.xml

    <collection>
    	<gateway>
    		<id>106825</id>
    		<type>GATEWAY_OUT_OFTP2_SERVER_OUT</type>
    		<creationMoment>1337329988000</creationMoment>
    		<lastUpdateMoment>1342613179000</lastUpdateMoment>
    		<name>dfg</name><description/>
    		<hub>26112</hub>
    	</gateway>
    	<gateway>
    		<id>66292</id>
    		<type>GATEWAY_IN_SMTP_IN</type>
    		<creationMoment>1308584779000</creationMoment>
    		<lastUpdateMoment>1342613179000</lastUpdateMoment>
    		<name>EmailBertrand2</name>
    		<description>Emails from bertrand2@babelway.net.</description
    		><hub>26112</hub>
    	</gateway>
    </collection>
    		
  • List all the OUT gateways of environment 26112 in JSON format

    https://www.babelway.net/SelfService3/rest/v2/hub-26112/gateways.json?direction=IN

    [
    	{
    		"id":66292,
    		"type":"GATEWAY_IN_SMTP_IN",
    		"creationMoment":1308584779000,
    		"lastUpdateMoment":1342613179000,
    		"name":"EmailBertrand2",
    		"description":"Emails from bertrand2@babelway.net.",
    		"hub":26112
    	}
    ]
Babelway Terms of use